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

Community site session details

Session Id :
Power Automate
Unanswered

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:
I have the same question (0)
  • David- Profile Picture
    1,254 on at
    Re: Delete a To-Do Task

    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
    Re: Delete a To-Do Task

    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
    on at
    Re: Delete a To-Do Task

    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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard