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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at

    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;

  • Bill Ramz Profile Picture
    on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans