Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Updating Sharepoint List through Planner Scheduled Flow

(0) ShareShare
ReportReport
Posted on by 6

Dears,

 

After reading more than a few posts around here I have managed to ducttape a flow solution that was initally working but then somehow came to a halt. I am hoping you could point me in the right direction...

 

General info: I have a sharepoint list that is used for request tracking - a user comes to e sharepoint list - creates a new items - which triggers a flow that creates a task in planner and goes back to the sharepoint list to update a field with the Task ID which I use later.

 

Now my issues is coming from a second flow that is scheduled once every 10min which goes over the tasks and compares the TaskID from the task with the TaskID from the items in the sharepoint (retrieving only the ones edited in the last 2days) - when this is True - it fills the required information.

 

I am sure that apply to each cycles is an ugly job, however I could not think of a better solution and we are having 5/6 max 10 new requests a day and are edditing not more than 10 tasks in the planner. Initially this was working, however not it is taking quite a long time when it actually finished (7/8 minutes for less than 40 tasks) and someitmes it keeps running forever without actually finishing.

 

 I had the idea to limit the retrieval of Task in Planner to only the ones edited in itme X (e..g last10min/last day) but couldn't figure out how. There is some "Threshold" field in the Get Tasks connector but i couldn't find any documentation.

 

Any help would be greatly appreciated. 

 

Regards,

Hristo

 

 

https://ibb.co/s1qGVFb

  • v-duann-msft Profile Picture
    on at
    Re: Updating Sharepoint List through Planner Scheduled Flow

    Hi @hristo_gg 

     

    Thank you for your reply.

     

    We have action for items modified only. But it's combined with file modification. Here you are. 

    v-duann-msft_0-1617158234640.png

     

    You can also refer below document for detailed info:

    https://docs.microsoft.com/en-us/connectors/sharepointonline/#triggers

     

    Hope it helps.

     

    BR

    Anna

  • hristo_gg Profile Picture
    6 on at
    Re: Updating Sharepoint List through Planner Scheduled Flow

    Thanks this will probably work, jsut to confirm I can only use Created there is no option for Modified?

  • Verified answer
    v-duann-msft Profile Picture
    on at
    Re: Updating Sharepoint List through Planner Scheduled Flow

    Hi @hristo_gg 

     

    Thanks for your quick reply.

     

    If you want to use filter array to limit the retrieval, we can use related expression as below:

     

    Here is an example to filter tasks only created on yesterday.

    formatDateTime(item()?['createdDateTime'], 'yyyy-MM-dd')

    formatDateTime(addDays(utcNow(), -1), 'yyyy-MM-dd')

    v-duann-msft_0-1617095819983.png

     

     

    If you want filter tasks created within last 10mins, please try below:

    v-duann-msft_1-1617095819985.png

     

    formatDateTime(item()?['createdDateTime'], 'yyyy-MM-ddTHH:mm:ss')

    formatDateTime(addMinutes(utcNow(), -10), 'yyyy-MM-ddTHH:mm:ss')

     

    If you have trouble setting up filtering, please let me know your actual requirement on this, I can help you to complete the expression.

     

    Hope it helps

    Anna

  • hristo_gg Profile Picture
    6 on at
    Re: Updating Sharepoint List through Planner Scheduled Flow

    Hi,

     

    Thanks a lot for the response.

    If I correctly understand this is the idea:

    Could you recommend how to do the filter? I do not see modified timestamp, maybe it is something not logged for Planner tasks...

    Sharepoint_Capture2.PNG

  • v-duann-msft Profile Picture
    on at
    Re: Updating Sharepoint List through Planner Scheduled Flow

    Hi @hristo_gg 

     

    Thank you for posting.

     

    According to your description, you would like to limit items amount while using ‘list tasks’, such kind of action in planner. If I misunderstand, please kindly let me know.

     

    Yes, we do have settings for ‘Threshold’. But seems it depends on the top X items to return. We can’t set up detailed conditon to limit the retrieval. If you need filter task based on date/time, we can only use filter-array/condition/filter-query instead.

    v-duann-msft_0-1617072460113.png

     

    v-duann-msft_1-1617072460120.png

     

    Hope the content above may help you.

     

    Best regards,

    Anna

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow