web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do you dynamically...
Power Automate
Unanswered

How do you dynamically set choice fields for dataverse?

(0) ShareShare
ReportReport
Posted on by 359

Is there a way dynamically set choice fields for dataverse?

I have a flow that takes text input fields:
softwareinvolved.png

And I'm wondering if there's a way to use that to set the choice field when I create a new dataverse record:

Mgodby_0-1632953337767.png

 

When I add the text input dynamic content, I get an error message. Is there any way to make the choice field dynamic based on the value they put when they run the flow.



Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at

    Hi @Mgodby , 

     

    Every choice field value has a related number. So, if you know the number of the value you can set it dynamically.

     

    What you could do is add a dropdown list of your choice options to your trigger action. In that list you can match the numbers from your choice field options by putting the correct numbers in front of the label.

     

    Below is an example of that approach.

      dropdownlist_options.png

     

    In the dataverse field you could use the expression instead of the dynamic content field. 

    That expression will return the first character of the option. In the case of '3. Microsoft Teams' that will be '3'. If your options are longer numbers you have the change the length of the substring function.

     

     

    substring(triggerBody()['text'], 0, 1) 

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard