Application Studio event GetByCustID -- Null error in arguments

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

What happens if you set withShipTo to 0?

Good idea. But same result. :-/

I don’t think you want quotes around “false”.

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?

Can’t you just set the false value here, instead of trying to pass it from the event-next json?:

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