cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ingovals
Helper II
Helper II

[Dataverse Web API] Working with GlobalOptionSetDefinitions in ODATA

I have a global choice type in dataverse. Using the API want to get the choices available.

 

I get that with the definition call for GlobalOptionSetDefinitions like this

 

/GlobalOptionSetDefinitions(Name='my_globalchoicetype')

 

I just want to clean it up a little. The returned JSON has a Options property of type array that has all the OptionSet things.

Can I somehow use $select to pick and choice what properties are included there?

 

I've tried to do 

 

/GlobalOptionSetDefinitions(Name='my_globalchoicetype')/Options

 

but the result is 

message""Resource not found for the segment 'Options'"
 
Even though this works with other properties
 
Other things I've tried unsuccesfully are 
 
/GlobalOptionSetDefinitions(Name='my_globalchoicetype')?$expend=Options($select=Value, Label)

/GlobalOptionSetDefinitions(Name='my_globalchoicetype')?$expend=OptionSet($select=Options)

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @ingovals ,

 

I've made a test but did not encountered the problem you mentioned.

vbofengmsft_0-1660699862012.png

 

I suggest you create a support ticket for professional assistance following the below procedure. 

Get Help + Support - Power Platform | Microsoft Docs 

 

Best Regards, 

Bof

View solution in original post

4 REPLIES 4
v-bofeng-msft
Community Support
Community Support

Hi @ingovals ,

 

Please try:

api/data/v9.0/GlobalOptionSetDefinitions(Name='XXXX')?$Select=Options

 

Best Regards,

Bof

{
    "error": {
        "code""0x0",
        "message""Could not find a property named 'Options' on type 'Microsoft.Dynamics.CRM.OptionSetMetadataBase'."
    }

Hi @ingovals ,

 

I've made a test but did not encountered the problem you mentioned.

vbofengmsft_0-1660699862012.png

 

I suggest you create a support ticket for professional assistance following the below procedure. 

Get Help + Support - Power Platform | Microsoft Docs 

 

Best Regards, 

Bof

@v-bofeng-msft 

 

It does indeed work, I must have done something a bit wrong last time, thank you.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (5,110)