cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TesDA
Continued Contributor
Continued Contributor

CDS Entity Auto-Generated Fields

I noticed when I create an entity that it auto-generates the following fields:

Created By

Modified By

 

Do you know if there is a way to change the user based data being pulled into those fields? I would like it to pull the MailNickname since that's the employee ID for my firm.

 

1 ACCEPTED SOLUTION

Accepted Solutions
HSheild
Super User
Super User

Hi @TesDA 

 

The Created By and Modified By fields are lookups to the User entity and show the Full Name from the User entity (as defined in Active Directory when the user is created in CDS).  You can't change which field from the User entity that is shown in the lookup.  However, you could change the Full Name on the User record if you wanted to.  This would change the Users display name throughout the entire system though so you'd want to think carefully about that.

 

Annotation 2020-03-04 054338.png

 

I hope that helps.

 

-----
 
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

View solution in original post

3 REPLIES 3
HSheild
Super User
Super User

Hi @TesDA 

 

The Created By and Modified By fields are lookups to the User entity and show the Full Name from the User entity (as defined in Active Directory when the user is created in CDS).  You can't change which field from the User entity that is shown in the lookup.  However, you could change the Full Name on the User record if you wanted to.  This would change the Users display name throughout the entire system though so you'd want to think carefully about that.

 

Annotation 2020-03-04 054338.png

 

I hope that helps.

 

-----
 
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

To add to the previous post, you could create a workflow on the User entity to automatically overwrite the Full Name with the MailNickname when the user is created and/or updated. However, as per the previous post, this will affect any lookup field on the User entity throughout the system (for example the Owner)

TesDA
Continued Contributor
Continued Contributor

I dont want to change it for everything so looks like I need to go in a different direction. Appreciate the expertise.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,143)