Reference UD Column in a Function

Good morning all,
I need to use a UD column stored in our Customer table, but the following service call returns an error.

CustomerTableset custTS = customerSvc.GetByCustID(custID, true);
string poRef = custTS.Customer[0].CustPO_c;

image

I thought to check the REST API to confirm the output contains the UD column:


Which it does.

Is there a separate using statement or service reference needed to access UD columns?

Thanks

2 Likes

Thanks, didn’t manage to stumble upon this one while searching!