Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 2

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

  • rishiverma12 Profile Picture
    rishiverma12 on at
    Re: Creating new record and need value for the lookup field in Dynamics

    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

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard