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 Automate
Answered

Delete a To-Do Task

(0) ShareShare
ReportReport
Posted on by 2

Hello!

If anyone can help me find a solution, I would greatly appreciate it!

The issue I am having is getting Power Automate to delete the to-do if the Status Value (the field is a choice) changes to one of the three listed under Condition 2.

I've tried both using the ID option for To-Do task and copied the exact title formatting from when Power Automate creates the to-do. (See screenshots below):

calebjamesross_0-1659122211355.png

 

 

calebjamesross_1-1659122231949.png


This is the error I keep getting for both options:
{
"statusCode": 400,
"headers": {
"Transfer-Encoding": "chunked",
"Vary": "Accept-Encoding",
"Strict-Transport-Security": "max-age=31536000",
"request-id": "80f95a8f-16b4-47fa-9607-5591533aebce",
"client-request-id": "80f95a8f-16b4-47fa-9607-5591533aebce",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"West US\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"000\",\"RoleInstance\":\"BY1PEPF00002046\"}}",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "true",
"Connection": "close",
"Date": "Fri, 29 Jul 2022 19:12:30 GMT",
"Content-Type": "application/json",
"Content-Length": "325"
},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid request",
"innerError": {
"code": "ErrorInvalidIdMalformed",
"date": "2022-07-29T19:12:30",
"request-id": "80f95a8f-16b4-47fa-9607-5591533aebce",
"client-request-id": "80f95a8f-16b4-47fa-9607-5591533aebce"
}
}
}
}



How can I correctly reference this so that it delete's the to-do item like I wish?

Thank you for your help!
Categories:
  • David- Profile Picture
    1,254 on at

    Based on your screen shot, you are using the ID of the SharePoint item to delete the To Do item. You need to use the ID of the To Do item instead. Your action will look like this when properly configured:

    David_0-1659208083852.png

    If you are saving the ID of the To Do item in your SharePoint list, you can use that instead, but the ID of the SharePoint item is not the same ID as the To Do item.

  • calebjamesross Profile Picture
    2 on at

    Okay, so I added a "Get a to-do list" to be able to add in the To-Do ID (see below):

    Screenshot 2022-07-31 at 11.50.25 PM.png
    However, I am still getting an error:

     
    "statusCode": 404,
    "headers": {
    "Transfer-Encoding": "chunked",
    "Vary": "Accept-Encoding",
    "Strict-Transport-Security": "max-age=31536000",
    "request-id": "cfd00c4b-aec6-4788-924f-a0f69791f1d2",
    "client-request-id": "cfd00c4b-aec6-4788-924f-a0f69791f1d2",
    "x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"West US\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"BY3PEPF00015C03\"}}",
    "Timing-Allow-Origin": "*",
    "x-ms-apihub-cached-response": "true",
    "x-ms-apihub-obo": "true",
    "Date": "Mon, 01 Aug 2022 03:52:14 GMT",
    "Content-Type": "application/json",
    "Content-Length": "321"
    },
    "body": {
    "error": {
    "code": "ErrorItemNotFound",
    "message": "Item not found",
    "innerError": {
    "code": "ErrorItemNotFound",
    "date": "2022-08-01T03:52:15",
    "request-id": "cfd00c4b-aec6-4788-924f-a0f69791f1d2",
    "client-request-id": "cfd00c4b-aec6-4788-924f-a0f69791f1d2"
    }
    }
    }
    }


    I appreciate your help, any other suggestions? The To-Do that was originally created by this flow is still in my list. I am now just having issues with it deleting the To-Do when I change the status to "Scheduled, Done, Referred Out."

    Screenshot 2022-07-31 at 11.54.16 PM.png
    Thank you in advance!
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @calebjamesross ,

     

    'Get a to-do list (V2)' action gets list's ID but in your case you need a task ID from a list.

    Obviously, list ID and task ID are not the same thing.

    You could try 'Get a to-do (V3)' action to get a specific task ID.

    If you want to get all tasks' ID, you could try 'List to-do's by folder (V2)' action.

     

    Best Regards,

    Wearsky

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 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard