Announcements
Hello,
Is there a way to default assigned user ID to the Users Windows login for BC on Prem so that users do not have to select it from the list?
If not is there a way to not have the domain in the assigned user ID field?
For that u have to create new codeunit and along with call event subsriber
Try below code
Codeunit codeunitno codeunitname
Begin
EventSubscriber[(ObjectType::Table,36,'OnAfterInsertEvent','',FALSE,FAE)]
Procedure OnAfterInsertEvent(VAR Rec:"SalesHeader";RunTrigger:TRUE)
Begin
Rec. "Assigned User ID" := USERID;
End;
End;
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator