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

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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,484)