web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

CRM export data wtih Azure Data Factory

(0) ShareShare
ReportReport
Posted on by 5

I am using Azure Data Factory to load a table with data from Dynamics 365 Customer Engagement. But I don't know how to get the value of fields that are option sets. Any ideas on how to do this?

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Fransisco,

    Do you mean how to get labels for option sets? I'm pretty sure the numeric values are returned.

  • Suggested answer
    FranciscoPereira Profile Picture
    5 on at

    Yes, I have the numeric values, I want to get labels for option sets. Is there any way to dynamically obtain the corresponding label with the numeric value?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Try to check the StringMap table for the corresponding labels.

  • FidelMartin Profile Picture
    128 on at

    Yes, I can help you with that.

    Option set fields in Dynamics 365 Customer Engagement are represented by integers, where each integer corresponds to a specific option value. To get the value of an option set field in Azure Data Factory, you can use the following steps:

    1. In your Azure Data Factory pipeline, add a Dynamics 365 Customer Engagement source dataset and configure it to point to the entity that contains the option set field you want to load.
    2. In the source dataset configuration, select the "Expand query" option and add the name of the option set field to the list of fields to retrieve.
    3. In the "Query" field, use the "expand" clause to retrieve the option set value label. For example, if the name of your option set field is "new_rating", your query would look like this:
    shellCopy code:
    $expand=new_rating($select=Label)
    1. In the mapping data flow, add a "Derived Column" transformation and use the "replace" function to replace the integer value of the option set field with its label. For example, if your option set field is named "new_rating", your expression would look like this:
    lessCopy code:
    replace('new_rating', toString(new_rating), new_rating_Label)
    1. Use the derived column as the output column for the option set field in the destination dataset mapping configuration.

    With these steps, you should be able to retrieve and load the label values for option set fields in Dynamics 365 Customer Engagement using Azure Data Factory.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 189 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans