cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ogcmstech
Frequent Visitor

Outlook Email and SharePoint

Hi all,

 

Super new to Microsoft Flow and have some questions. I have attached a picture of my current flow for reference. 

2019-07-04 16_29_46-Edit your flow _ Microsoft Flow - Internet Explorer.png

 

 I have created a flow that is triggered on new emails received by an Outlook account. It looks to see if the attachments within the email are greater than 1, in which case it does nothing (hence nothing under yes). If the attachment is exactly 1, it will take that attachment and add it to a SharePoint document library.

 

Now, I am trying to do the following:

  1. I want Flow to be able to read the Subject of the email mentioned above and compare that string to a column within a SharePoint list (kind of like a lookup).
  2. If there is a match between the Subject string and value in the column of the SharePoint list, I want to be able to write that value back to a column in the SharePoint Document library that I am adding the attachment to.
  3. If there isn't a match, the flow would just carry along with the next step.

How do I go about doing this? I have tried to do the following, but got stuck and didn't know how to continue. Filter Query works and brings back a result, but how can I use that result in subsequent steps?

2019-07-04 16_33_08-Edit your flow _ Microsoft Flow - Internet Explorer.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Outlook Email and SharePoint

Hi @ogcmstech ,

 

If Commitment has a unique value in SharePoint list, you could refer to the following method to configure Flow.

Configure Get items action directly under Create file to get the expected item in the specified list.

Then use Item Id generated by Create file action in Update file properties action to specify the file. And use the data obtained from Get items to update the file properties.

 

Image reference:

38.PNG39.PNG40.PNG

Hope it helps.

 

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

2 REPLIES 2
tfhegdbn Helper IV
Helper IV

Re: Outlook Email and SharePoint

Hi @ogcmstech ,

 

You could get the field value of the matching item in the list above Condition and store it in the variable.

 

Then in Create file action, configure Update file properties action, and use ID of Create file action to update the corresponding Library column.

Community Support
Community Support

Re: Outlook Email and SharePoint

Hi @ogcmstech ,

 

If Commitment has a unique value in SharePoint list, you could refer to the following method to configure Flow.

Configure Get items action directly under Create file to get the expected item in the specified list.

Then use Item Id generated by Create file action in Update file properties action to specify the file. And use the data obtained from Get items to update the file properties.

 

Image reference:

38.PNG39.PNG40.PNG

Hope it helps.

 

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
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,208)