Interesting find. We have external system that in...
# integrations
d
Interesting find. We have external system that invokes a RESTlet. We follow all of NetSuite's best practice with regards to Integration Records, Access Tokens, etc. The use case is "We attempting to apply a Payment to a VendorBill" from this external system. So, we transform the Vendor into a Bill payment, loop through the available payments to apply and save. Easy right? Ok, now the NetSuite Employee, who is tied to the Access Token, customizes the Bill Payment screen to add a Date Filter to the list of Payments and applies a filter that excludes a bunch of payments. Now when the external system does the transform, that same user-based filter is applied and the integration can no longer see all the available payments.
👏 1
I one regard, this makes sense. But, this means that when a customer hooks up this integration, they need to chose a NetSuite Employee that will NOT being doing this sort of customization?!?
b
use the bill or vendorbills default values to choose which bills appear in the apply sublist
d
Ya, I think you're missing the point. IF the user introduces a filter, we're screwed
(Its a SuiteApp with hundreds of installs, so we can't say "Please Don't").
b
the vendorbills default values bypass filters
d
Right, but the user-added custom filters stick
b
if you are trying to search for vendor bills to apply your payment to, and you cant find them because of the filters, then you want to use the vendorbills default value to choose which vendor bills show up in the apply list
e
Got it
s
it's also generally not a best practice to share a human user account with an application (unless acting as that user is a core feature of the application)?
I mean, there are other changes that could be made to that user that would bonk your suiteapp, right?
d
@Shawn Talbert, so would you ask a Customer to create an integration-only Employee record? Not unreasonable I guess
s
it is costly
d
Seems like NetSuite should handle this differently then.
s
agreed