cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

I want to use the CDS Connector to Populate a Word Template with Option Set Labels

I created a flow to populate a Word template based on data saved in the Common Data Service. I have an entity called "Meeting Attendee" and one of the fields on the entity is an option set for the attendees' role. I can use the CDS connector in flow to get a list of my meeting attendee records but the only dynamic content that shows us is Role Value and when I run the flow it populates the Word template with the option set value rather than the label that I want to show. Is there a simple way to bring the option set label into Flow rather than the value?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: I want to use the CDS Connector to Populate a Word Template with Option Set Labels

Hi @scameron1015 ,

Could you please share more details about your scenario?

Do you want to get the Label value (e.g. 'Pending') of the Option Set field rather than the Option Set value (e.g. 886370002) within your flow?

Further, could you please share a screenshot about your flow's configuration?

 

Based on the issue that you mentioned, I have made a test, and the issue is confirmed on my side. When you type the 'Role Value' dynamic content within the flow action, it could only return the Option Set value rather than its Label value.

 

When you review the run history of the "List records" action of CDS in your flow, you will find that the Option Set value and corresponding Label value are both returned:

7.JPG

If you want to achieve the Label value of the Option Set field within your app, please consider take a try with the following workaround:

8.JPG

Within the "Compose" action within the "Apply to each" action, set the Inputs field to following:

item()?['_crba2_approvalstatus_label']

On your side, you should type:

item()?['_prefix_role_label']

Then when you run your flow, the Label value would displayed as below:

9.JPG

More details about using expression in flow actions, please check the following blog:

https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/

More details about WDL expressions in MS Flow (Power Automate), please refer to the following article:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#j...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: I want to use the CDS Connector to Populate a Word Template with Option Set Labels

Hi @scameron1015 ,

Could you please share more details about your scenario?

Do you want to get the Label value (e.g. 'Pending') of the Option Set field rather than the Option Set value (e.g. 886370002) within your flow?

Further, could you please share a screenshot about your flow's configuration?

 

Based on the issue that you mentioned, I have made a test, and the issue is confirmed on my side. When you type the 'Role Value' dynamic content within the flow action, it could only return the Option Set value rather than its Label value.

 

When you review the run history of the "List records" action of CDS in your flow, you will find that the Option Set value and corresponding Label value are both returned:

7.JPG

If you want to achieve the Label value of the Option Set field within your app, please consider take a try with the following workaround:

8.JPG

Within the "Compose" action within the "Apply to each" action, set the Inputs field to following:

item()?['_crba2_approvalstatus_label']

On your side, you should type:

item()?['_prefix_role_label']

Then when you run your flow, the Label value would displayed as below:

9.JPG

More details about using expression in flow actions, please check the following blog:

https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/

More details about WDL expressions in MS Flow (Power Automate), please refer to the following article:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#j...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (6,656)