cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SoB
Level: Powered On

OutlookTasks.CompleteTask failed: { "error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed." } }

OutlookTasks.CompleteTask failed: { "error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed." } }   Connected Sharepoint to get Tasks list, getting this error after 'Mark as complete ' Popup

OnBoarding App

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: OutlookTasks.CompleteTask failed: { "error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed." } }

Hi @SoB ,

Could you please share a bit more about your scenario?

Could you please show more details about the OutlookTasks.CompleteTask() formula within your app?

Do you store the Task Id of the Outlook tasks within your SP List?

 

Based on the error message that you mentioned, it seems to tell that the taskid you provided within the OutlookTasks.CompleteTask() function is invalid.

 

If you want to marks the specific task as complete using the OutlookTasks.CompleteTask() function, you need to provide a valid taskId. The standard format of the taskId as below:

AAMkAGNlZWJhNDFhLWVkZDQtNGEwMi1hNGYxLWE4NjgxODQxYjE1OABGAAAAAADs9uoqJJanQrMetqhMVhx6BwCSaWLzoY45Rr_4uGphA-0GAAEaYEXpAACSaWLzoY45Rr_4uGphA-0GAAHnw_VSAAA=

Please check if you have provided a valid taskId value within your OutlookTasks.CompleteTask() function.

 

If you want to mark a specific Outlook task as Complete using  OutlookTasks.CompleteTask() function, I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

 

11.JPG

Set the OnStart property of the App control to following:

ClearCollect(AllTasks, OutlookTasks.GetAllTasks())

Set the Items property of the Dropdown box to following:

Filter(AllTasks, Status <> "Completed")

Ste the OnSelect property of the "Mark As Completed" button to following:

OutlookTasks.CompleteTask(Dropdown1.Selected.Id);
ClearCollect(AllTasks, OutlookTasks.GetAllTasks()) /* <-- Refresh the AllTasks collection */

Please check the following GIF screenshot for more details:Test.gif

 

 

In addition, if you sotre the Outlook task subject within your SP list, then you want to mark the specific Outlook task as Complete based on the retrieved Task subject from your SP list. Please take a try with the following workaround:

OutlookTasks.CompleteTask(
LookUp(OutlookTasks.GetAllTasks(), Subject = "A specific task subject retrieved from your SP List" && Status <> "Completed").Id
)

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: OutlookTasks.CompleteTask failed: { "error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed." } }

Hi @SoB ,

Could you please share a bit more about your scenario?

Could you please show more details about the OutlookTasks.CompleteTask() formula within your app?

Do you store the Task Id of the Outlook tasks within your SP List?

 

Based on the error message that you mentioned, it seems to tell that the taskid you provided within the OutlookTasks.CompleteTask() function is invalid.

 

If you want to marks the specific task as complete using the OutlookTasks.CompleteTask() function, you need to provide a valid taskId. The standard format of the taskId as below:

AAMkAGNlZWJhNDFhLWVkZDQtNGEwMi1hNGYxLWE4NjgxODQxYjE1OABGAAAAAADs9uoqJJanQrMetqhMVhx6BwCSaWLzoY45Rr_4uGphA-0GAAEaYEXpAACSaWLzoY45Rr_4uGphA-0GAAHnw_VSAAA=

Please check if you have provided a valid taskId value within your OutlookTasks.CompleteTask() function.

 

If you want to mark a specific Outlook task as Complete using  OutlookTasks.CompleteTask() function, I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

 

11.JPG

Set the OnStart property of the App control to following:

ClearCollect(AllTasks, OutlookTasks.GetAllTasks())

Set the Items property of the Dropdown box to following:

Filter(AllTasks, Status <> "Completed")

Ste the OnSelect property of the "Mark As Completed" button to following:

OutlookTasks.CompleteTask(Dropdown1.Selected.Id);
ClearCollect(AllTasks, OutlookTasks.GetAllTasks()) /* <-- Refresh the AllTasks collection */

Please check the following GIF screenshot for more details:Test.gif

 

 

In addition, if you sotre the Outlook task subject within your SP list, then you want to mark the specific Outlook task as Complete based on the retrieved Task subject from your SP list. Please take a try with the following workaround:

OutlookTasks.CompleteTask(
LookUp(OutlookTasks.GetAllTasks(), Subject = "A specific task subject retrieved from your SP List" && Status <> "Completed").Id
)

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 267 members 6,533 guests
Please welcome our newest community members: