Hi @Jason_Woods, I did what you wrote but now I need to 'Assign the out parameters ‘country’ ‘state’ and ‘zip’ before control leaves the current method. I tried to move all the declaration of the strings (in the afterfieldchange) in the main function but that didn’t work.
So i tried to add an else statement on the if(result) of the GetUD18Data in which i set my strings to “”.
The code now compiles but I’m not sure if the correct thing to do.
I tried to change Customer.City and everytime it throws a “Record not found”.
Do you have other values in your key fields? If so, you can’t use a GetByID…
Also, I see in the code you used ShortChar01-03 if that is the case (instead of Country_c, etc), the InvokeSearch is better.
In the end, it sounds like you may need more individual help with the data and code.