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 CRM (Archived)

Address Entity CRM - Parent ID

(0) ShareShare
ReportReport
Posted on by 1,799

Hi, 

Within the Address entity there is a hidden field called Parent ID. What exactly is stored in there e.g. Parent Account Number / GUID / etc. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Bas van de Sande Profile Picture
    4,383 on at

    In the parent id, the ID of the parent record is stored. this can be either an account or a contact person.

    In the fetchxml below, you can see how the parent id is used. In this case you can say that the address is an account address

    I hope this answers your question

    Bas

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
    
     <entity name="customeraddress">
    
       <attribute name="name" />
    
       <attribute name="line1" />
    
       <attribute name="city" />
    
       <attribute name="postalcode" />
    
       <attribute name="telephone1" />
    
       <attribute name="customeraddressid" />
    
       <order attribute="name" descending="false" />
    
       <link-entity name="account" from="accountid" to="parentid" alias="ab">
    
         <filter type="and">
    
           <condition attribute="name" operator="eq" value="dn7" />
    
         </filter>
    
       </link-entity>
    </entity>
    </fetch>

  • Verified answer
    Community Member Profile Picture
    on at

    Hi JD

    The parentId field store the Id of the parent entity (Account, Contact or Lead)

    There is also the ObjectTypeCode field which determines the type of the parent entity.

    Hope this help!

    If you're satisfied with my answer, please mark it as verified.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans