Epicor 10 BPM: Calling in a UD table into Custom Code

,

Hello all :slight_smile:

Does anyone know of an easy way to call in a UD table/field into Custom Code of a BPM please? I’ve highlighted below the issue we are seeing, its not recognizing a UD field maybe because it’s in the ShipHead_UD table but I’ve tried ttShiphead_UD_Row and it doesn’t like that either… :confused:

Many thanks for your help !

You have to use the UDField extension of the object

2 Likes

Hi Josec,

Thank you so much, I’ve checked and it tallys up to what is listed in the UD maintenance

image

Or do I need to call in the UDField extension

See @andrew.johnson 'sresponse here:

3 Likes

Based on the above

Try

ttShiphead_Row.UDField<System.String>(“IntPackComments_c”)

Updated part after post

or

ttShiphead_Row.SetUDField<System.String>(“IntPackComments_c”)

6 Likes

Thank you both!! The below worked a charm! :grin:

ttShiphead_Row.UDField<System.String>(“IntPackComments_c”)

I just had to switch the variable around so it was on the left.

1 Like

left side is being set by the right side. is that what you want?

Oh no… we want the Order Comments to update the IntShipComment field

But when I switch them back around, it asks for a variable

There should be a SetUDField I think to do the reverse.

1 Like

ttShiphead_Row.SetUDField<System.String>(“IntPackComments_c”)

2 Likes

this is the syntax

myTTRecord.SetUDField<string>("MyField",myValue); // Will Set it
4 Likes

Thank you so much for your help! This worked for me :smile: