I have an automation script code problem.
Client has requested their vendors be able to log in and create/submit their own invoices. Restrictions are they can only select from POs issued by their company, only create invoices to sites they are authorized to.
I have this taken care of by data restrictions in their security groups and this also hides POs not from their company. What I need to do is autopopulate the invoice.vendor field with maxuser.company and have it be read-only as some of this selection restriction is based on invoice.vendor.
I have created an automation script with and object launch point that launches 'on add' but am having trouble with the code for the script.
Can anyone help?