how to query choice sets/option sets/global sets values

drhorg 61 Reputation points
2022-07-27T04:27:25.89+00:00

I need to run a one time export of 40 tables from Dataverse using Azure Data Factory. In this export need to include the choice sets/option sets/global sets from these tables but there is no point in turning on change tracking for these tables just for this, therefore cannot create link to synapse and get the json files (so https://learn.microsoft.com/en-us/power-apps/maker/data-platform/azure-synapse-link-choice-labels DOES NOT work for me). I need another solution.
Since ADF is using FetchXML, would help to be able to get these values in fetchXML, but not able to. Ex below: for account table the response does not return any values below (just the accountid)

<fetch mapping="logical" count="10" version="1.0" >
<entity name="account" >
<attribute name="accountclassificationcodename" />
<attribute name="accountratingcodename" />
<attribute name="address1_addresstypecodename" />
<attribute name="address1_freighttermscodename" />
<attribute name="address1_shippingmethodcodename" />
<attribute name="address2_addresstypecodename" />
<attribute name="address2_freighttermscodename" />
<attribute name="address2_shippingmethodcodename" />
</entity>
</fetch>

How else can I query the values for the choice sets/option sets/global sets from all these tables that I need to get in this one time 40 tables data export directly via ADF with no export to Data Lake/Synape preliminary?

Many thanks,

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.