web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating new Dynamics ...
Power Apps
Unanswered

Creating new Dynamics Lead with lookup fields generates error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm new to PowerApps so bear with me if this is considered common knowledge...

 

I'm trying to create a new lead record in Dynamics 365 which includes 3 custom lookup fields (. If I don't include the lookups on the forms it creates the new record without issues. When I add in the lookup fields back in it throws this error: "expected dataentityrecord for navigation column". I have searched high and low but haven't been able to find a solution.

 

 

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Would you please share more details about the lookup fields you are working with?

    To work with Lookup fields in Dynamics 365, you may take a look at the following blog:

    How to Connect with Dynamics 365 and use Lookup field of Dynamics CRM in PowerApps.

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm trying to create a basic lead intake form where I capture the First Name, Last Name, Email, Phone, Address1, City, State, Zip, Brand, Class, and Model of an item.

     

    The lookup fields on the lead are tied to custom entities. There are three of them...

     

    Brand

    Class

    Model

     

    ...For this particular app I would like to force the values for these three since they will always be the same. I can grab the id's easily enough but I can't seem to get it to allow me to write to these three fields. I tried using patch to just directly set the values but it throws a similar error, something to the effect of "the type of this argument does not match the expected type DataEntity." If I leave the threee lookup fields out of the equation everything works fine. If I add them in I get one of the aforementioned errors.

  • randybristol67 Profile Picture
    4 on at

    I am having the same issue when I use the Patch function to try to fill in my Lender lookup type field when creating a new record in my custom Payment entity. When I refer to the Lender field in my expression:

     

    Patch(Payments, Defaults(Payments), { Lender: LoanGallery.Selected.Lender.Account})

     

    I get the error:

     

    The type of this argument 'Lender' does not match the expected type 'DataEntity'. Found type 'Guid.'

     

    I am not sure how to proceed with updating my Lender lookup field using a Patch function.

  • randybristol67 Profile Picture
    4 on at

    Note that I am using the CDS data source.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard