I’ve written code to automatically create a vendor from an employee.
Problem I’m getting is that when I create the vendor, it is creating a new entry in the Global Address Book. Instead I want it to use the Global Address Name of the employee (so if then employee name gets updated, so does the vendor).
At the moment my code simply says : vendor.name = employee.name. This is what creates a new line in the GAB.
Does anybody know how to (in X++) say “use the employee name, don’t create a new one”. The entry is stored in the DirPartyTable.