web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Get User-Information out of SID

(0) ShareShare
ReportReport
Posted on by

I'm using the relatively new fields SystemCreatedBy and SystemModifiedBy, but I do not want to display the ID but the users-name instead - can it be linked directly to the user's table (which would be which?).

Thanks!

I have the same question (0)
  • Suggested answer
    vishal bagadia_crm Profile Picture
    490 on at

    Can you please explain your requirement in bit detail.

    If you access those fields in Front end. You will see a lookup of the user/team entity with name.

    In the backend when you will retrieve these value in coding, you will get this value as EntityReference under which you can get 3 details.. 1. entityName 2. RecordId..3. Name.. based on the 3rd value you can identitfy the name.

    If the 3rd value is empty in EntityReference. Then you need to make an extra service call to retrieve the desired data by using the RecordId and entity name.

  • Community Member Profile Picture
    on at

    Sorry -I'm simply trying to display the values of these fields (like here) on a page; for the datetime-fields the display-value is fine, for the SystemCreatedBy/SystemModifiedBy (which are SID's) I want to display the corresponding user's full-name (as stored in table user).

    For now I have this peace of code:

        procedure GetFullName(userID: Guid)Text
        var
            UserInfo: Record User;
        begin
            if not UserInfo.Get(userIDthen
                exit('');
            exit(UserInfo."Full Name");
        end;
    That is called by
       field("appSystemCreatedBy"; GetFullName(Rec.SystemCreatedBy))
       {
          ApplicationArea = All;
       }
    But there is no value displayed (even on newly created records).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans