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

How can i get the Parent Customer from a Contact

(0) ShareShare
ReportReport
Posted on by 8
Hello,
 
I want to get the Parent Customer of a Contact with this function:

        Xrm.WebApi.retrieveRecord(/contact/, contactid ,/?$select=parentcustomerid/  ).then(
            
        function success(result) {

            // perform operations on record retrieval
        },
        function (error) {
            console.log(error.message);
            // handle error conditions
            }
        );
 
The Contact is in a Lookup field on the lead form in my case and i want to get the Parent Customer of it.
But I always get this error Message: /Could not find a property named 'header_parentcustomerid' on type 'Microsoft.Dynamics.CRM.contact'./
 
I tested it with other fields and it works, except for the parentcustomerid.
 
Thank you for your help!!
  • How can i get the Parent Customer from a Contact
    Thank you, this worked for me!!
  • Verified answer
    CRMforLyfe Profile Picture
    CRMforLyfe 34 on at
    How can i get the Parent Customer from a Contact

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

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,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans