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

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

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.
etanshapiro
Level: Powered On

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!
anhthuch4ng
Level 8

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
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
Users Online
Currently online: 329 members 5,661 guests
Please welcome our newest community members: