Skip to content
Microsoft Dynamics 365 CRM Tips and Tricks
By Inogic
  • Blogs
  • D365 Apps
  • Inogic
  • D365 / Power Platform Services
  • Maplytics Docs
  • D365 Apps Docs
    • Omnichannel Apps
      • WhatsApp4Dynamics
      • TextSMS4Dynamics
      • LiveChat4Dynamics
    • File and Storage Managment
      • Attach2Dynamics
      • SharePoint Security Sync
    • Visualization Apps
      • Map My Relationships
      • Kanban Board
      • Business Process Checklist
    • Productivity Apps
      • Click2Clone
      • Click2Export
      • Undo2Restore
      • Lead Assignment and Distribution Automation
      • Alerts4Dynamics
      • Translate4Dynamics
      • Subscription Recurring Billing Management
    • User Adoption Apps
      • DeDupeD
      • User Adoption Monitor
      • Gamifics365
    • Integration Apps
      • Marketing4Dynamics
      • InoLink

How to Retrieve Dynamics 365 CE Entity/Table Metadata through Power Automate (FLOW)

By Inogic | February 27, 2021
0 Comment

Introduction

In this blog, we will explore how we can retrieve Dynamics 365 CE Entity/Table Metadata using Power Automate (Microsoft Flow).

In some scenarios, we need to retrieve the entity metadata. For example, let’s say we want to get the Primary Attribute/Column’svalue of the entity which is selected in the ‘Regarding’ field of the Email dynamically. For this, we need to retrieve the entity metadata of that entity since regarding can be any entity and for each entity primary attribute name might be different.

In the Common Data Service (Current Environment) Connector, we do not have any direct action/step to get/identify the ‘Primary Attribute’ field of an entity.

But, fortunately, we can use the Invoke an HTTP request action of HTTP with Azure AD connector to read entity metadata.

Retrieve Dynamics 365 CE EntityTable Metadata through Power Automate

This connector allows us to send HTTP requests to Dynamics 365 CRM or CDS without having to perform any additional authentication process. Also, no Azure App registrations or bearer tokens required.

Given below are the steps to retrieve Entity Metadata using Power Automate:

1. Add an Invoke an HTTP request action by searching HTTP with Azure AD in your flow as shown in the below screenshot:

Retrieve Dynamics 365 CE EntityTable Metadata through Power Automate

2. Now, enter the base URL of your Dynamics 365 instance into the Base Resource URL and Azure AD Resource URI (Application ID URI) fields’ i.e. https://.crm.dynamics.com. Next, click on Sign in.

Retrieve Dynamics 365 CE EntityTable Metadata through Power Automate

3. Now, fill in the required fields. Set the Method to ‘GET’ and enter Url of the request along with the OData query parameters as below:

Here, we are getting entity name dynamically i.e., from the ‘Regarding’ field of our previous Email action.

Retrieve Dynamics 365 CE EntityTable Metadata through Power Automate

Note: If you enter the full URL in the above “Url of the request” field, then it must match the Base resource URL set in the connection. For e.g., in our case –

https://crmorg6.crm.dynamics.com/api/data/v9.2/EntityDefinitions?$select=IsDocumentManagementEnabled, PrimaryNameAttribute, LogicalName,EntitySetName&$filter=EntitySetName eq ‘accounts’

4. Save your flow and then trigger it. On a successful run, you can inspect the retrieved metadata as shown in the below screenshot:

Retrieve Dynamics 365 CE EntityTable Metadata through Power Automate

Conclusion

In this way, by using Power Automate you can successfully retrieve Dynamics 365 CE Entity/Table Metadata.

inolink

Category: Dynamics 365 Dynamics CRM Power Automate Tags: Current Environment, Dynamics 365 Power Automate, Power Automate, Retrieve Dynamics 365 CE Entity, Table Metadata
Post navigation
← Open Lookup Field Form in the same context of the Main Form within Dynamics 365 CRM/Power Apps Free up Dynamics 365 CRM storage Space, Manage Attachments, Ensure data security – Multiple benefits with one app SharePoint Security Sync! →

Follow Us!

Follow Us on FacebookFollow Us on TwitterFollow Us on LinkedInFollow Us on YouTubeFollow Us on InstagramFollow Us on E-mailFollow Us on Docs

Blog Series

  • Power Apps – Model Driven Apps
  • Power Apps – Canvas App
  • Power Pages
  • Power Automate
  • Power BI
  • AI Builder
  • Copilot
  • Azure OpenAI
  • Microsoft Teams
  • Dynamics 365 for Field Service

Recent Innovations

Translate Dynamics 365 Data in Real-Time using Azure AI Translator with our New App!

Summer 2025 Dynamics 365 Maps Release: Smarter Routing, Azure Maps, Canvas Apps & More!

How to Create Mailchimp Email Campaigns Directly from Dynamics 365 CRM!

Detect and Merge Dynamics 365 CRM Duplicate Records with New DeDupeD Features!

SharePoint Metadata – Enhance document searchability in Dynamics 365 CRM integration!

WhatsApp, Text SMS, and Live Chat Integration – Dynamics 365 Omnichannel suite by Inogic!

Recent Posts

  • Role-Based Access Control for Document Security in Dynamics 365 CRM!
  • How to Create and Modify a Segment in Customer Insights – Journeys Using the Web API
  • Dynamics 365 WhatsApp Integration: Trigger vs Segment Customer Journeys – Explained!
  • Add Process Mining Report in Power BI Workspace
  • Webinar: Copilot Agents in Action: Document Reading, Response Generation, and Email Drafting!

Archives

SiteLock
Copyright © 2025 Inogic. All Rights Reserved
Iconic One Theme | Powered by Wordpress