Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Can we export all entity Names Which are associated with AdvancedFind?

Posted on by 215

Hi All,

I have 3 Users , each has different security role , so each user can see different entities so i need to export All the Entities which are visible to respective users.

Thanks in Advance.

*This post is locked for comments

  • RE: Can we export all entity Names Which are associated with AdvancedFind?

    Hi Mahender,

    Thanks for the quick response , for testing purpose i have connected to crm with of the user i have used below piece of code which looked it will work but it dint.

    IOrganizationService service = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;

              RetrieveAllEntitiesRequest request = new RetrieveAllEntitiesRequest()

              {

                  EntityFilters = EntityFilters.Attributes,

                  RetrieveAsIfPublished = true

              };

              // Retrieve the MetaData.

              RetrieveAllEntitiesResponse responses = (RetrieveAllEntitiesResponse)service.Execute(request);

              int count = responses.EntityMetadata.Count();

              int count1 = 0;

              foreach (var en in responses.EntityMetadata)

              {

                  bool value = (bool)en.IsValidForAdvancedFind;

                  if (value == true)

                  {

                      Console.WriteLine(en.CollectionSchemaName);

                      count1++;

                  }

              }

              Console.WriteLine(count1);

              Console.ReadLine();

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Can we export all entity Names Which are associated with AdvancedFind?

    Hi,

    There is no direct way to implement your requirement unless you write something your own, but a possible solution could be export the security roles in excel and extract your requirement information from there: archive.codeplex.com

    Hope it will help.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans