I have an event for checking if an XPartNum (Customer part number in Order Detail) exists.
The event is using rest-erp component calling CustXPrtSvc.GetRows like this:
I’ve tried every variation I can think of on the where clause syntax but it’s either return me records because the payload is showing an empty where clause or I get a correlation id error because the where clause syntax is invalid.
With the rest helper api, it executes just fine with:
I have not been able to find any syntax examples for the where clause here in the forum or the application studio documentation
How do you find things like this syntax: %AA_OFB_CustXPrt.hasRow% ?
Is there a list of these type of things ?
There was no intellisense for after the period…
Or are you using, “Try and see how epicor does it” (like by looking at the predefined events) that you mentioned in you session at Insights ?
btw…
I did get everything working with %AA_OFB_CustXPrt.hasRow% for the condition
but for some reason {AA_OFB_CustXPrt} != undefined gives me an error saying the AA_OFB_CustXPart IS undefined (even though a valid record was returned)
no worries, just testing/learning as I go thru this ‘adventure’
Also note that there has been a lot of fixes and improvements to Application Studio between your version and the more current 2023 versions. It’s very likely that this is one of the things fixed to get it working as expected.