cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

CDS Formatted OptionSets

When performing a select query for fields in CDS (D365), is there a way to return formatted data results?

 

I.e., instead of the enum 8200000, I want to get back 'Work'

 

I tried adding to the end of a field in the selectQuery view.

OData.Community.Display.V1.FormattedValue

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions

@Greggomatic - Test this out with a Compose step: body/<fieldname>@OData.Community.Display.V1.FormattedValue

 

Here is an example: body/statuscode@OData.Community.Display.V1.FormattedValue

 

Refer to the great blog by @LinnZawWin - https://community.dynamics.com/365/b/linn-s-power-platform-notebook/posts/get-the-lookup-display-nam...

View solution in original post

1 REPLY 1

@Greggomatic - Test this out with a Compose step: body/<fieldname>@OData.Community.Display.V1.FormattedValue

 

Here is an example: body/statuscode@OData.Community.Display.V1.FormattedValue

 

Refer to the great blog by @LinnZawWin - https://community.dynamics.com/365/b/linn-s-power-platform-notebook/posts/get-the-lookup-display-nam...

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (26,425)