cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
virakones
Responsive Resident
Responsive Resident

How to fill Owner ID of "Create new row" from Get User Profile (V2)?

Having problems trying to fill the Owner ID in a "Common Data Service (Dataverse) Create new Row" action from the responder of a Teams Adaptive card.

 

I tried using the 'id' value from a "Get User Profile (V2)" action using the UPN of the teams card responder to get the profile but the 'id' from the action does not seem to be recognized. Getting a "Resource not found for the segment " error.

 

Effectively, I would like the responder of the Teams Card to be the Owner/Author of the new row for the Dataverse record. Or am I mistaking what that field is for.


Any thoughts?

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @virakones 

 

This is what you need to do. If you want to allocate a user or team then find the userid or teamid. You can find the user id or team id using the List rows (Users or Teams entity) and use filter query to find the relevant id. Once you find the relevant id you can set the id as follows under your create a row action step.

 

image.png

 

Or

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

8 REPLIES 8
abm
Super User
Super User

Hi @virakones 

 

This is what you need to do. If you want to allocate a user or team then find the userid or teamid. You can find the user id or team id using the List rows (Users or Teams entity) and use filter query to find the relevant id. Once you find the relevant id you can set the id as follows under your create a row action step.

 

image.png

 

Or

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Himanshi30
Regular Visitor

/triggerOutputs()?['body/_ownerid_value@Microsoft.Dynamics.CRM.lookuplogicalname']/triggerOutputs()?['body/_ownerid_value']

 

OR

 

/owner_type/owner_value

 

OR

 

if it is a system user:

/systemusers/owner_value

takolota
Power Participant
Power Participant

For your information, if anyone wants to add an account to a contact record, you must also use this solution's format and instead of account('ID') it is actually accounts('ID'), similar to the teams('ID') in the solution.

Thanks so much @abm 

ezFlow
Advocate I
Advocate I

I'm following the example but still get an error.
the Owner value is pulled from a list row query and I can see its:  1eb4af9c-079f-ec11-b400-0022480b0576
I'm trying to add it directly and it still fails

ezFlow_0-1647229712265.png

 








Hello @ezFlow,

It looks like you may have an extra forward slash in there ( / ).
Try /systemusers(1eb4af9c--079f-ec11-b400-0022480b0576)

 

ezFlow_0-1647485108541.png

Tried but keep getting the same strange error.

--batchresponse_b7355412-17e8-4cc9-b884-c55680bfa236
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 400 Bad Request
REQ_ID: 077230e4-1e61-4a03-ad24-a2b8a350a28b
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0

{"error":{"code":"0x0","message":"Bad Request - Error in query syntax."}}
--batchresponse_b7355412-17e8-4cc9-b884-c55680bfa236--

takolota
Power Participant
Power Participant

Hm,

 

You may want to double check what the output looks like on a dynamic content output of UserId.

 

I vaguely remember the format also being weird in some places where it removes the dashes ( - ).

SDouglas
Regular Visitor

I'm also getting this same error. Does anyone have a fix?

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 (4,232)