Hello,
I am trying to develop code to automatically populate a salesperson code based on the signed in user.
We can make use of SystemCreatedBy field in business central as it is present as a base functionality in there.
CalcFormula = lookup(User./User Name/ where(/User Security ID/ = field(SystemCreatedBy)));
i am thinking of linking this to Salespeople/purchaser table . To get the exact Salesperson code I was thinking of using email field from this table to get the current logged in user.
But unable to figure how to like these two now.
Your help will be much appreciated