cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rlengacher
Frequent Visitor

Capture trigger input selection from drop-down list of options

I have a SharePoint flow starting with a For a selected item trigger with a text input containing a drop-down list of inputs. I would like to capture the user's selection from that list to compose a string, but I've been unsuccessful. I've tried the following expression based on the Peek Code for the trigger (shown below), but it's not working. What expression should I use in Compose to capture text input selection as an output?

 

 

'triggerBody()['TaskType']'

 

 

 The beginning of my flow

Flow.pngPeekCode.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
rlengacher
Frequent Visitor

I solved this myself. I expected the Text input selection to be listed in a different section of the Compose > Dynamic content list, but it's actually listed with the selected item Dynamic content.

DynamicContent.png

View solution in original post

4 REPLIES 4
krootz
Solution Supplier
Solution Supplier

@rlengacher from the dynamic contents, you should see a "TaskType", if not, use the expression triggerBody()['text']

rlengacher
Frequent Visitor

I solved this myself. I expected the Text input selection to be listed in a different section of the Compose > Dynamic content list, but it's actually listed with the selected item Dynamic content.

DynamicContent.png

Thanks, @krootz I actually found it hiding in the Dynamic content list with the rest of the available inputs from the selected item. I expected it to be listed in different section. 

 

I tried all kinds of triggerBody() permutations, including the one you suggested, but none of them worked.

krootz
Solution Supplier
Solution Supplier

@rlengacher great! glad you found it!

Use the search dynamic content next time, it will show where it is without you having to scroll and look for it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,040)