cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Mapping a single select field type in Typeform to a Dynamics 365 optionset

Hi guys,

 

So I've got a Typeform form created with a single select field type e.g. Please select your nationality (then have a dropdown that displays all the nationalities).

 

My question is that if I have a optionset field in Dynamics that maps directly to what's on the typeform question. How do I dynamically set the Dynamics 365 optionset value based on their field selection?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

 

Hi @Mick282 ,

 

The first thing to note is that the OptionSet in CDS corresponds to an integer value.

  • You could get the integer value by the following method.

71.PNG

  • Second, you need use expression to get the value selected in the type form:
triggerBody()?['form_response']?['answersObject']?['fieldid']?['value']['label']

You could test the trigger once and look at the fieldid recorded in Outputs.

 

  • Then you need to create a new Object variable to record the relationship between the item and the integer value in OptionSet.
variables('OptionSetValue')[outputs('SelectionValue')]
  • Then select the corresponding integer value by SelectionValue submitted by the Type form.
  • Finally, update the configuration Optionset field.

 

Image reference:

74.PNG

72.PNG73.PNG

 

Best Regards,

Community Support Team _ Barry
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
Community Support
Community Support

 

Hi @Mick282 ,

 

The first thing to note is that the OptionSet in CDS corresponds to an integer value.

  • You could get the integer value by the following method.

71.PNG

  • Second, you need use expression to get the value selected in the type form:
triggerBody()?['form_response']?['answersObject']?['fieldid']?['value']['label']

You could test the trigger once and look at the fieldid recorded in Outputs.

 

  • Then you need to create a new Object variable to record the relationship between the item and the integer value in OptionSet.
variables('OptionSetValue')[outputs('SelectionValue')]
  • Then select the corresponding integer value by SelectionValue submitted by the Type form.
  • Finally, update the configuration Optionset field.

 

Image reference:

74.PNG

72.PNG73.PNG

 

Best Regards,

Community Support Team _ Barry
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (13,069)