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

Creating new record and need value for the lookup field in Dynamics

The trigger is on Create of a custom entity Employees.

Display Name: Employee

Plural Name: Employees

Entity Name: xxx_employee

I use List Records to retrieve the data from the record.

I have a condition that checks if there is already a record for related custom entity ‘B’

When I go to create the related record B, this is where my flow is failing on the lookup field specifically.

Have tried using the Display Name, Plural Name, Name and plural Name of the custom entity for the lookup, but this is where the flow fails every time.

It retrieves the ID of the record, but does not create the record and fails at the Employee (Employees) lookup.

I also tried using the Compose output in my Create a record step, but the result was the same errors

Received this error: The supplied reference link -- /xxx_employees/ -- is invalid. Expecting a reference link of the form /entityset(key).

Received this error: Resource not found for the segment '37375968-4d31-e911-a97e-000d3af3eee6'.

User Option Admin Flow 4.png

User Option Admin Flow 3.pngUser Option Admin Flow 2.png

1 REPLY 1
rishiverma12
Microsoft
Microsoft

I have a same scenario but i'm setting owner of the record as well , can you try below format 

rishiverma12_0-1613326796916.png

 

details of User entity :

 

Display Name: User

Plural Name: systemusers (i'm using this but with backslash in beginning )

Entity Name: systemuser

 

 

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (58,487)