Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Need Javascript API to to get relationship attribute for parent and child entity.

(0) ShareShare
ReportReport
Posted on by 90

I have Account entity as a parent and Contact entity as  a child.

Now I want to find relationship attribute for both of them like parentcustomerid. Which Javascript API I can use to get this information? 

If I summarize again I will pass parent and child entity name and API will return me relationship field like parentcustomerid for account and contact and regardingobjectid for account and appointments.

Please suggest me how to resolve it?

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Need Javascript API to to get relationship attribute for parent and child entity.

    Hello,

    I believe you can use WebApi and entity relationship metadata - docs.microsoft.com/.../query-metadata-web-api

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans