jdtrent
(Joe D Trent)
1
In a UD01 form (2025.1.16), I’m trying to get a customer record, so I set up this event with these arguments:
And I’m calling the event with these parameters:
I’m triggering the event with:
I can verify that UD01.CustID_c = the customer ID I enter.
But when it hits the GetByCustID event, I get this error:
I’ve entered the withShipTo value in the JSON different ways, with and without quotes, etc., with the same resulting error message.
Wonder where I’m messing up?
Thanks,
Joe
TDray
(Todd Dray)
2
What happens if you set withShipTo to 0?
jdtrent
(Joe D Trent)
3
Good idea. But same result. :-/
dcamlin
(David Camlin)
4
I don’t think you want quotes around “false”.
jdtrent
(Joe D Trent)
5
And I can add the field TransView.FalseValue and set to false (or true), and send the parameters as:
{
“custID”: “{UD01.CustID_c}”,
“withShipTo”: “{TransView.FalseValue}”
}
I get the same null error message. If I take the quotes off of {TransView.FalseValue} Epicor puts them right back.
Reckon I’d be better off changing to GetRows instead of GetByCustID?
dcamlin
(David Camlin)
6
Can’t you just set the false value here, instead of trying to pass it from the event-next json?:
jdtrent
(Joe D Trent)
7
Yep, that works a lot better. Simpler that I was doing, too.
I ended up using the GetCustomer instead of GetByCustID because it doesn’t need the ship to flag.
Thanks!
Joe
1 Like