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
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,752)