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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,446)