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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Complete a task in Asa...
Power Automate
Unanswered

Complete a task in Asana — > Delete a task in Planner.

(0) ShareShare
ReportReport
Posted on by 6

Hello, 

 

I have already successfully built a flow that creates a new task in Asana every time I add a task in Loop (which by extension adds a task automatically in Planner). 

 

I've been trying to build a reverse flow that'll delete the original task in Loop/Planner when I complete the corresponding task in Asana, but haven't had any luck. I've tried a few variations of the flow in the attached photo. I'm at a loss and would appreciate any help! Thanks in advance.

 

Screenshot 2023-08-09 at 17.32.22.png

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @masondeepl ,

     

    Can you confirm that the Task ID from Asana is equal to Planner task Id? From my view, the two Ids are both generated by system automatically, which makes them definitely different. Do you have any common and unique values saved in both sides to help you find corresponding tasks? For example, task Title in Planner and task name in Asana.

     

    Best regards,

  • masondeepl Profile Picture
    6 on at

    Hi @v-jefferni , 

     

    Thanks for your response. 

     

    I changed Task ID to Task Name in Asana and Task Title in Planner, which are identical. That didn't help unfortunately. I've included screenshots of the updated flow as well as the error message below. Thanks again for your help! 

     

    Screenshot 2023-08-10 at 10.10.23.pngScreenshot 2023-08-10 at 10.10.39.png

  • v-jefferni Profile Picture
    on at

    Hi @masondeepl ,

     

    The error is caused by the Get Task by ID action, could you please share the outputs from the trigger in the recent run history?

     

    I don't have an Asana account to test the connector, so please provide more details.

     

    Best regards,

  • masondeepl Profile Picture
    6 on at

    Hi @v-jefferni 

     

    Here are the raw outputs from the Get Task by ID trigger. Let me know if this is what you need or if I should share anything else. 

     

     
    "statusCode": 400,
    "headers": {
    "x-frame-options": "DENY",
    "x-xss-protection": "1; mode=block",
    "x-content-type-options": "nosniff",
    "content-security-policy": "report-uri https://app.asana.com/-/csp_report?report_only=false;default-src 'none';frame-src 'none';frame-ancestors 'none'",
    "x-asana-api-version": "1.1",
    "x-robots-tag": "none",
    "Timing-Allow-Origin": "*",
    "x-ms-apihub-cached-response": "true",
    "x-ms-apihub-obo": "false",
    "Date": "Thu, 10 Aug 2023 08:10:08 GMT",
    "Content-Length": "239",
    "Content-Type": "application/json"
    },
    "body": {
    "errors": [
    {
    "message": "task: Not a Long: Thursday Test",
    "help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
    }
    ]
    }
    }
  • v-jefferni Profile Picture
    on at

    Hi @masondeepl ,

     

    I need raw output of the trigger "When a task is completed".

     

    Best regards,

  • masondeepl Profile Picture
    6 on at

    Hi @v-jefferni , here are the raw outputs as well as a screenshot: 

    {"headers":{"Transfer-Encoding":"chunked","x-frame-options":"DENY","x-xss-protection":"1; mode=block","x-content-type-options":"nosniff","content-security-policy":"report-uri https://app.asana.com/-/csp_report?report_only=false;default-src 'none';frame-src 'none';frame-ancestors 'none'","x-asana-api-version":"1.1","asana-change":"name=new_user_task_lists;info=https://forum.asana.com/t/update-on-our-planned-api-changes-to-user-task-lists-a-k-a-my-tasks/103828;affected=true,name=new_goal_memberships;info=https://forum.asana.com/t/launched-team-sharing-for-goals/378601;affected=true","x-robots-tag":"none","Strict-Transport-Security":"max-age=31536000; includeSubDomains","Datacenter-Time-End":"1691655008.254","X-LoadBalancer":"prod-lb011.ec2","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","x-ms-apihub-obo":"false","retry-after":"15","Date":"Thu, 10 Aug 2023 08:10:08 GMT","Location":"https://flow-apim-europe-002-westeurope-01.azure-apim.net/apim/asana/shared-asana-72fa03ea-b2c7-41c3-a054-5aaf3a69d5c8/v2/complete_task_trigger/tasks?workspace=1117098299193512&project=1205233132428378&timestamp=2023-08-10T08:09:58.964Z","Content-Type":"application/json; charset=UTF-8","Content-Length":"863"},"body":{"gid":"1205247580172818","assignee":{"gid":"1203292834697930","name":"Mason Mitchel"},"assignee_status":"inbox","completed":true,"completed_at":"2023-08-10T08:09:58.964Z","created_at":"2023-08-10T08:09:46.825Z","due_on":"2023-08-24","hearted":false,"hearts":[],"memberships":[{}],"modified_at":"2023-08-10T08:09:59.073Z","name":"Thursday Test","notes":"","num_hearts":0,"projects":[{"gid":"1205233132428378","name":"Planner tasks"}],"tags":[],"workspace":{"gid":"1117098299193512","name":"Deepl"}}}

    Screenshot 2023-08-10 at 11.33.15.png

     

     

  • v-jefferni Profile Picture
    on at

    Hi @masondeepl ,

     

    I cannot find Task ID returned from the trigger, this may cause Get task by ID failed. Please remove the Get task by ID action, just compare Planner task title with Asana task name in the Condition control.

     

    Best regards,

  • v-jefferni Profile Picture
    on at

    Hi @masondeepl ,

     

    Is this issue resolved?

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard