Citizen Developer
Timespan
explore our new search
​
Power Automate: Dataverse Choice Labels
Power Automate
Dec 15, 2025 1:20 AM

Power Automate: Dataverse Choice Labels

by HubSite 365 about Softchief Learn

Learn how to take advantage of your business data with Microsoft Dynamics 365 & Power Platform & Cross Technologies. My name is Sanjaya Prakash Pradhan and I am a Microsoft Certified Trainer (MCT) and

Microsoft expert tip Read Dataverse global choice metadata labels with Power Automate HTTP action for Dynamics CRM

Key insights

  • Dataverse, Global Choice and HTTP action: Use Power Automate's HTTP action to call the Dataverse Web API and read global choice (option set) labels instead of relying only on connector actions.
    This lets flows get localized and formatted labels at runtime.
  • Web API, EntityDefinitions and UserLocalizedLabel: Query metadata endpoints such as EntityDefinitions and GlobalOptionSetDefinitions to find label objects like UserLocalizedLabel.Label for each choice value.
    These fields hold the language-specific text you need.
  • URI, Headers and Prefer: Configure the HTTP action with the correct Web API URI and add headers to control metadata (for example Prefer or x-ms-odata-metadata settings).
    Headers let you include formatted values without excessive OData annotations.
  • Parse JSON and @OData.Community.Display.V1.FormattedValue: After the HTTP call, parse the JSON response and extract formatted labels using the OData annotation for display values.
    Use flow expressions to map values to UI fields or downstream steps.
  • Localization, Pagination and @odata.nextLink: Read UserLocalizedLabel entries to support multiple languages automatically.
    Handle large result sets by following @odata.nextLink to fetch additional pages.
  • Performance, Security and Caching: Minimize payload by disabling full metadata when not needed, authenticate with Azure AD or a secure app identity, and cache choice lists when they change rarely.
    Also include error handling and retries to make flows reliable.

Introduction: Video Overview

The YouTube video by Softchief Learn demonstrates how to read Global Choice metadata labels from a Dataverse table using the HTTP action inside Power Automate. It explains why the built-in connector sometimes falls short and why direct Web API calls can retrieve richer metadata, including localized labels and formatted values. Accordingly, the video targets developers and makers who need precise control over choice fields and multilingual labels in Dynamics 365 Customer Engagement scenarios.


What the Technique Does

First, the presenter outlines that Global Choice (previously Global Option Sets) store reusable choice values and that their labels live in metadata rather than in individual rows. Then, the video shows how the Dataverse Web API exposes these labels through endpoints that return properties like user-localized labels and formatted values. Moreover, the author emphasizes that using the HTTP action lets flows ask for annotations such as @OData.Community.Display.V1.FormattedValue which standard actions often omit.


How to Implement the Approach

Next, the video walks through a practical implementation, where you add an HTTP action to a flow and configure it to call the Web API with the right URI and headers. The presenter recommends including OData query parameters such as $select and using headers like Prefer to request annotations, and then parsing the JSON response to extract labels for the current user language. As a result, flows can display or process choice labels dynamically instead of relying on hardcoded values.


Step-by-Step Considerations

For example, the video suggests authenticating via Azure AD and ensuring the application or flow has the right permissions to read metadata endpoints in Dataverse. It also covers handling pagination with @odata.nextLink and parsing nested JSON fields where labels appear as UserLocalizedLabel or similar nodes. Therefore, following these steps reduces common errors when flows return empty metadata or get truncated responses.


Benefits and Tradeoffs

On the positive side, the method improves localization and control because flows receive the exact label text for each user language, which supports multilingual applications and dynamic forms. However, the author also notes tradeoffs: crafting custom Web API calls requires more care around authentication, query construction, and response parsing compared with using standard connector actions. Consequently, teams must balance the advantage of richer metadata against the extra maintenance and potential complexity in flows.


Challenges and Best Practices

Moreover, the video highlights common challenges such as large payload sizes, throttling, and the need to manage OData annotations to reduce response bloat. Therefore, the presenter advises setting metadata return preferences and filtering queries to the minimum required fields to optimize performance. In addition, testing flows across different user languages and handling fallback labels are recommended so that solutions remain robust as customizations evolve.


Scalability and Security Concerns

Furthermore, the tutorial discusses scalability: direct Web API calls can be efficient for targeted metadata reads but require careful design in high-volume scenarios to avoid unnecessary calls and API limits. Likewise, the video stresses that proper application permissions and least-privilege practices are essential because metadata endpoints can expose schema-level details. Thus, teams should implement caching or conditional requests where possible and review security policies before deploying these flows in production.


Practical Takeaways

Finally, Softchief Learn delivers clear, actionable advice: use the HTTP action when you need labels, formatted values, or polymorphic lookup info that standard actions hide, but plan for added complexity in authentication and parsing. In short, this approach gives developers flexibility and localization without locking labels into code, but it also invites tradeoffs in maintainability and security that teams must address upfront. Overall, the video provides a practical path for advanced Power Automate scenarios while encouraging disciplined design and testing.


Power Automate - Power Automate: Dataverse Choice Labels

Keywords

Read Global Choice Metadata,Global Choice Labels Dataverse,Dataverse choice metadata,Power Automate HTTP action Dataverse,Read choice labels Power Automate,Dataverse global choice labels,Power Automate retrieve choice metadata,Dataverse REST API choice labels