cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Courtenay
Advocate II
Advocate II

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?

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

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.

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?

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

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

Ranjani
Microsoft
Microsoft

Did you get any solution apart from using Switch

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (5,119)