cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Create expression to render an output, if the input matches a an item in a defined list of items

I’m using a Calendly Integration, which includes a value of “Event Assigned to Email” - this email corresponds with our Dynamics users.
 
When a Calendly event comes in, I want to create a Lead in Dynamics (which is working fine) - and then assign it to the Owner (who is the “Event Assigned to Email”
 
I tried passing the {{EventAssignedToEmaill}} - however it errord out. So I realized I need I ned to pass in the alphanumberic OwnerID / record id (not the email)  https://docs.microsoft.com/en-us/flow/connection-dynamics365#find-the-records-id
 
Thus I need to write an expression that maps Emails -> OwnerID/RecordID — which I have no idea how to do. 
 

If {{EventAssignedToEmaill}} =

pete@assurance.com set value as ABC123
ian@assurance.com set value as DEF456
bry@assurance.com set value as HIJ789
No match set value as ______  (leave blank - don’t set any value)
 
ABC123 / DEF456 / HIJ789 = the Dynamics users OwnerID value
 
If someone could help me with this expression I would really appreciate it!
 
Thank you,
Etan
3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Create expression to render an output, if the input matches a an item in a defined list of items

Hi @etanshapiro,

 

Thanks for posting.

So here you are working with Microsoft Flow? If yes, then please post back to let me know, I will then move this thread in Flow Forum category.

 

If here you are working with PowerApps for Dynamics 365, we could take use of Lookup function to find the corresponding OwnerID, take a look at the following example:

Working with Dynamics 365 lookup data in PowerApps

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Create expression to render an output, if the input matches a an item in a defined list of items

Yes i am working with Flow - if you could move it that would be great, thanks!
Highlighted
Post Prodigy
Post Prodigy

Re: Create expression to render an output, if the input matches a an item in a defined list of items

Hey @etanshapiro,

 

Glad we were able to move you inquiry over to the Flow Forum!

 

Have you had a chance to apply @v-micsh-msft's suggestions to adapt your Flow?

If yes and you found that solution to be satisfactory, please go ahead and mark this thread as "Solved". 🙂

 

Happy Flowing,

-AT (Community Admin)

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (6,193)