web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating an Asana task...
Power Automate
Answered

Creating an Asana task after another task is completed

(0) ShareShare
ReportReport
Posted on by 25

Hi,

 

I'm trying to create a workflow for a work request integrating SharePoint and Asana.

I wish that for a selected document from the SharePoint the workflow will trigger the creation of an Asana task (let's call it task #1). Then I want the flow to wait until task #1 is marked completed and when it is, trigger the creation of another asana task (let's call it task #2). I've created the flow below, but obviously the flow doesn't wait on completion of task #1 and straight away created task #2. Is there any "while" loop solution that will pause the flow until completion state is changed from No to Yes?

 

Gaia_0-1636982093054.png

 

Categories:
  • Gaia Profile Picture
    25 on at

    Update:

    I tried with Do Until.

    The condition was : "do until completed (of task #1)is equal to Yes", but  it just immediately moved on to create task #2 because the loop has a limit of 60 runs. 

    Then I tried to add a scheduled delay within the Do Until, but the flow just waited for the delay to be over regardless of the state of task #1, and proceeded to creating task #2.

    Any ideas on how to make it actually work?🤔

  • v-chenzhi Profile Picture
    Microsoft Employee on at

    Hi @Gaia ,

     

    Do you want to create the next task after one task is completed?

    I have a test for your reference, please the following workaround.

    vchenzhi_0-1637230509490.png

    When I mark the first task as completed, the second task will be created.

    vchenzhi_1-1637230509491.png

     

     

    Best Regards,

    Zhi Chen

  • Gaia Profile Picture
    25 on at

    Thanks @v-chenzhi ,

    I tried your solution, it gets stuck in the "Do until" and doesn't create the second task immediately. It does open the second task when the flow is timed out . When you tested, did the second task appear in Asana immediately after completion of the first task?

    flowflowtesttest

  • Verified answer
    v-chenzhi Profile Picture
    Microsoft Employee on at

    Hi @Gaia ,

     

    When I mark task1 as completed, it will immediately create task2 in Asana.

    Could you please check if your action has selected the correct dynamic content.

    vchenzhi_0-1637747126983.png

     

     

    Best Regards,

    Zhi Chen

     

     

  • Gaia Profile Picture
    25 on at

    @v-chenzhi thanks, it did the trick! But now there's another problem: if the first task wasn't marked completed within a few minutes the whole flow times-out and the second task is opened anyway. 

    This happens because there's a counter limit of 60 "Do Until" runs before the flow times-out.

    To solve this issue I added a scheduled delay that delays the loop for 10 min and the loop overall runs for 4320 time (so the whole flow will only be timed out after 30 days):

    Screenshot 2021-11-24 165748.jpg

     

    Thanks for your help! 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard