cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Courtenay
Level: Powered On

Lookup Optionset value from incoming string

We are using Parserr and are parsing incoming emails, where the values we need present themselves as strings. We are creating new leads in Dynamics CRM using these parsed emails.

 

We need to use the incoming value, eg "John Smith", to lookup the corresponding value in Dynamics CRM which has the corresponding value "John Smith"

 

However we are unable to set this value in Dynamics CRM using Flow as its an optionset field.

 

How do we set this optionset field?

4 REPLIES 4
Community Support Team
Community Support Team

Re: Lookup Optionset value from incoming string

Hi Courtenay,

 

Could you try to use Switch case on your side to see if it will meet your needs?


More details about Switch case, please check this blog at here:
https://flow.microsoft.com/en-us/blog/search-by-service/


If the incoming value is equal to “Jhon Smith”, do an action. If the incoming value is equal to another value, do another action.


Hope this could be a reference for you.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Courtenay
Level: Powered On

Re: Lookup Optionset value from incoming string

Mabel,

 

Thanks for the suggestion, but it just won't work. We have lots of optionset fields. Taht would be endless switch statements.

 

Is there no way we can do a lookup using some sort of Get Field by Value in CRM? Surely this has been done before?

Courtenay
Level: Powered On

Re: Lookup Optionset value from incoming string

Surely this isnt an uncommon requirement @v-yamao-msft

casepilots
Level: Powered On

Re: Lookup Optionset value from incoming string

Is a switch statement still the only solution for this situation?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,014)