cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rajasimman
Regular Visitor

Can't get the value of CreatedBy column from CDS table using PowerAutomate

In my flow, I'm accessing the list of rows from the CDS table and I have tried to get the value of CreatedBy column (which is username who created the record) but I'm getting the GUID of the user instead of the username. It would be helpful if anyone gives a solution for this.

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi  , 

Try this.  Paste this into the value of your variable

 

@outputs('Get_a_row_by_ID')?['body/_createdby_value@OData.Community.Display.V1.FormattedValue']
 
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn
 

@rajasimman

View solution in original post

5 REPLIES 5
eric-cheng
Solution Sage
Solution Sage

Hi @rajasimman ,

 

Can you share which table you are querying and what you are getting?  Please share a sceeenshot of the flow if possible

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Hi @eric-cheng , thanks for your reply

Here is my flow...
rajasimman_0-1629720538223.png


rajasimman_1-1629720714076.png

Output :
1) Body of Get a row by ID 

{
..........,
..........,

"_createdby_value@OData.Community.Display.V1.FormattedValue""Rajasimman R",
"_createdby_value@Microsoft.Dynamics.CRM.lookuplogicalname""systemuser",
"_createdby_value@odata.type""#Guid",
"_createdby_value""6c1958de-74a9-eb11-b1ac-000d3a998ae5"
..........,
...........
}
I'm trying to get the CreatedBy value as Rajasimman R but I'm getting the GUID of the user (i.e - 6c1958de-74a9-eb11-b1ac-000d3a998ae5)



2) Intialize Variable 
rajasimman_2-1629721085717.png

 

 

eric-cheng
Solution Sage
Solution Sage

Hi  , 

Try this.  Paste this into the value of your variable

 

@outputs('Get_a_row_by_ID')?['body/_createdby_value@OData.Community.Display.V1.FormattedValue']
 
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn
 

@rajasimman

View solution in original post

Hi, @eric-cheng 
Thank you so much. Now it is working.

JordanVista
Regular Visitor

This worked for me too, thanks! It took too long to find a simple solution.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,902)