Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Get the Option Set Value Label in a Single Query Using a CDS (Current Environment) and populate in a Subject through Power automate

(0) ShareShare
ReportReport
Posted on by 20

Requirement: Get the display name of the Option set( Request subtype), and populate it in the Create task Subject line.

My problem: This flow is created by another person. I can't find a way to recreate it. I can't find the Dynamics content in the red square in my picture.  It looks like a normal field as others, but whatever I try to find it, it seems not exist there.. But I want to know how the person initially did that.  

Untitled-picture.png

  • Carina1800 Profile Picture
    20 on at
    RE: Get the Option Set Value Label in a Single Query Using a CDS (Current Environment) and populate in a Subject through Power automate

    Thanks Charan

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at
    RE: Get the Option Set Value Label in a Single Query Using a CDS (Current Environment) and populate in a Subject through Power automate

    If your previous action name is Retrieve Request Record, below should be an expression. And do not worry about the color of the expression. The outcome is same.

    outputs('Retrieve_Request_Record')?['body/statuscode@OData.Community.Display.V1.FormattedValue']

  • Carina1800 Profile Picture
    20 on at
    RE: Get the Option Set Value Label in a Single Query Using a CDS (Current Environment) and populate in a Subject through Power automate

    Hi Charan,

    I was existing to see your reply. It's quick straightforward.  You are right. There is a step before called "Retrieve Request Record".  But if I use the expression, it will look like this. I've recorded what I did.  It's purple with fx in the front which is different from yours. Can you specify which action you take?

    [View:/cfs-file/__key/communityserver-discussions-components-files/761/5795C2B1_2D00_D9A0_2D00_4178_2D00_8E1F_2D00_867A67144D53.MP4:320:240]

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at
    RE: Get the Option Set Value Label in a Single Query Using a CDS (Current Environment) and populate in a Subject through Power automate

    Hi Carina,

    In your flow, there must be an action for retrieving record by ID (Name: Retrieve Request Record) before Task record creation action. Content you highlighted with red box is an expression which gets option set label from the record in previous action. When you click inside Subject text box of Create Task action, pop-up window will opens on right hand side to key-in Dynamic content and Expression. There you can provide expression as per your need.

    Below is a screenshot I have taken from a flow which is similar to yours for your reference. This expression set the statuscode option set label to Subject of a Task record being created.

    Flow_5F00_GetRecord.png

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 67 Most Valuable Professional

#3
Mansi Soni Profile Picture

Mansi Soni 64

Overall leaderboard

Product updates

Dynamics 365 release plans