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

SharePoint Document Library not pulling in data to flow.

I have a document collaboration Flow. It runs when someone moves the field from 'No' to 'Yes'. Then it should send an email and create a task. Here are the parameters and the error.

flow5.PNGEmailFlow4.PNGEmail error

flow3.PNGTask Errorflow6.PNGTask

 

Any ideas?

3 REPLIES 3
Community Support Team
Community Support Team

Re: SharePoint Document Library not pulling in data to flow.

Hi @aphillips,

 

Do you want to send an email to the Reviewer when a field of the library is set to Yes, and then create a task in Outlook Tasks?

From the screenshot, it seems that the dynamic contents you selected returned null value. Please make sure you have given them a value in the library.

I have made the following test according to your description.

First, create a document library with the columns you mentioned. A Completed column of type choice Yes/No, one Reviewer column of type Person and group, one DueDate column of type Date and time (date only).

Then start the flow with the trigger When a file is created or modified (properties only).

Add a condition to check whether the Completed is equal to Yes with the following code in advanced mode:

@equals(triggerBody()?['Completed'], bool('true'))

 

Under if yes branch, send an email to Reviewer, create a task to Tasks.

A screenshot for your reference.

1.PNG2.PNG

Please take another try with it and feel free post back if you are still having the issue. 

 

Best regards,

Mabel

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

Re: SharePoint Document Library not pulling in data to flow.

I put in the logic you suggested (thank you!), but then it wouldn't wait for me to move the field to 'Yes', so changed the logic to send the email even if it isn't going back to the trigger. 

 

flow2.PNG

Community Support Team
Community Support Team

Re: SharePoint Document Library not pulling in data to flow.

Hi @aphillips,

 

Could you share a full screenshot of your flow?

It seems that there is a Do-until loop in your flow. How is the do-until condition configured?

When using Do-until loop, the data is not pulled in from the previous step but instead it is part of the Do-until block itself.

Please share more details on your flow to help reproduce this issue.

 

Best regards,

Mabel

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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 63 members 3,170 guests
Recent signins:
Please welcome our newest community members: