Function code update UD field

I am trying to update a UD field on the company in a function. I get an error that the row does not contain customerID_c which it does. I can update non UD fields just not UD fields.

image

Try this:

companyTS.Company[0]["customerID_c"] = custID;
2 Likes