Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

parentcustomerid returning blank in fetch xml and how to access name value?

(0) ShareShare
ReportReport
Posted on by

Hi 

The response that I get is the one below after running the fetchxml.... How I access the name adventure works property?

contact.results.entities[0.parentcustomerid=return blank but I would like to get the name.. How this value can get extracted from the below xml result?


<parentcustomerid type="1" dsc="" name="Adventure Works" yomi="">{58A19CDD-88DF-E311-B8E5-6C3BE5A8SA00}</parentcustomerid>

  
    
    
    
    
      
    
  

Thank you, 

Bill

  • Bill Ramz Profile Picture
    on at
    RE: parentcustomerid returning blank in fetch xml and how to access name value?

    I am fetching records in Dynamics Portals, in a web page. This what I was looking for. you save my day! Thanks a lot.

  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: parentcustomerid returning blank in fetch xml and how to access name value?

    Hi,

    Thank you for your query.

    Are you fetching records in Javascript?

    Please try following code:

    var customerId = contact.results.entities[0].parentcustomerid.id;
    var customerName = contact.results.entities[0].parentcustomerid.name;

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans