Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Pass alternate key to lookup alternate key

Posted on by 410

We recently moved to CRM online, and trying to limit number of application interactions have been setting up a number of alternate keys. 

On one of our entities the alternate key fields are lookups to another entity. Example below.

  • Entity 1
    • Fields
      •    Entity1id {pk}
      •    Entity1altkey {string}
    •    AlternateKey
      • {Entity1altkey}
  • Entity 2
    • Fields 
      •    Entity2id {pk}
      •    Entity2altkey {string}
    • AlternateKey
      • {Entity2altkey}
  • Entity 3
    • Fields 
      •    Entity3id {pk}
      •    Entity3_Entity1id
      •    Entity3_Entity2id
    • AlternateKey
      • {Entity3_Entity1id, Entity3_Entity2id}

I have been successful calling an update passing /entity3s(_entity3_entity1id_value=1231234-1234-1234-1234-123412341234,_entity3_entity2id_value=1231234-1234-1234-1234-123412341234), but what I want to do to prevent having to prescan Dynamics is /entity3s(_entity3_entity1id_value=/entity1s(entity1altkey='string1'), _entity3_entity2id_value=/entity2s(entity2altkey='string2'))

Has anyone been successful doing this? Is it possible?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans