A sweet girl helped me with this so I'll pass it on and help you. Here is a script I use in Sales Order to write out the user's first and last name to a UDF. sFirst="":sLast="":sKey="":sCKey="" retVal=oBusObj.GetValue("UserCreatedKey",sCKey) SetoUser=oBusObj.AsObject(oBusObj.GetChildHandle("UserCreatedKey")) retVal=oUser.getvalue("UserKey$",sKey) retVal=oUser.getvalue("FirstName$",sFirst) retVal=oUser.getvalue("LastName$",sLast) If sKey=sCKey then retVal=oBusObj.SetValue("UDF_FIRST$",sFirst) retVal=oBusObj.SetValue("UDF_LAST$",sLast) end if
↧