Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Assigned User ID

(0) ShareShare
ReportReport
Posted on by 249

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?

pastedimage1569630319808v1.png

Categories:
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Assigned User ID

    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;

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans