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.
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.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 371 members 4,648 guests
Please welcome our newest community members: