I am trying to place the <Telephone2> field in AR_CustomerContact on the SO_SalesOrder Header. I am placing it over the Fax Number Field as we don't use fax numbers much. I have created a UDF in SO_SalesOrder Header file to hold the value, and have placed it on the panel.
I am assuming I need to write a script to accomplish this.
Post validate column "Confirm to" on SO Header.
Get <Confirm To> Value.
Use that Value to look up <Telephone2> from the AP_CustomerContact file.
Set value to the UDF field.
I don't know how to script the part where you use the value to find the correct telephone field.
Here is what i have so far:
MobileNo = ""
ConfirmTo = ""
ContactMobile = ""
RetVal=oBusObj.GetValue("ConfirmTo$",ConfirmTo)
<<<<<use ConfirmTo to retrieve Telephone2 and set as ContactMobile >>>>
RetVal=oBusObj.SetValue("UDF_CONFIRM_CELL$",MobileNo)
Any help is appreciated.