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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Export Contacts with Account GUID in Advanced Find

(0) ShareShare
ReportReport
Posted on by 5

I need to export Contacts but include the GUID of the Account the contact is related to.

I can use Advanced Find to export the Account Name, but can I use Advanced Find to also include the GUID of the account? I don't see it listed as a column to include.

This data need to be imported into another system, so it's important to use the ID fields to maintain the relationship.

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi JoeD67,

    Create your Advanced Find query. Download it. Open it in Fetch XML Builder in XRM Tool Box. For more details: FetchXML Builder for XrmToolBox - empower yourself to achieve more.

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Export Account first in separate excel which will have Account guid and Name.

    Now Export Contact with Account Name and do vlookup to get account id based on name.

  • JoeD672 Profile Picture
    45 on at

    That doesn't work because there can be duplicate account names.

  • JoeD672 Profile Picture
    45 on at

    Abudl,

    Thank you, that looks promising.  It looks like I have to click on every field and check "Show Attribute in the View" - is there any way to just tell it I want all attributes in the view? I have a lot of fields.

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi JoeD67,

    Is this you are looking?

    pastedimage1666319546107v1.png

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • JoeD672 Profile Picture
    45 on at

    Abdul,

    Thanks, I didn't know why I didn't try that!

    This seems to give me almost what I want... but not quite. Maybe you know a way around this.

    I have a few fields where I want the lookup name (it calls it the "friendly name"). And I can get that in the results by using Options -> Appearance -> Friendly Names.

    BUT - I also need the GUID of the account. But when I check "Friendly Names", the grid now includes only the Account Name, not the Account GUID. Is there any way to get both in the grid?

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hello,

    I think you can have either guid or friendly name.

  • JoeD672 Profile Picture
    45 on at

    I don't want to update the records. I simply want to export the Contacts records along with the GUID of the Account it is linked to.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Simple approach is to create new text field on Contact entity.

    Create console application to fetch all contact where account lookup field contains data and update new custom field with account guid.

    C# sample console application to connect to crm

    github.com/.../WorkWithCsharp

    Code to fetch more than 5k records

    learn.microsoft.com/.../page-large-result-sets-with-fetchxml

    Then you can select this field while exporting the excel.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    If you are not developer then another way to achieve this using low code no code is to use power automate

    Dataverse list row action can be used to fetch contact where account lookup contains data

    Apply for each loop

    Update Contact record new custom field with account lookup guid

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans