Skip to main content

Notifications

Announcements

No record found.

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
    Carina1800 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
    Charan Raju C R 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
    Carina1800 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
    Charan Raju C R 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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans