cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mirkobersani
Frequent Visitor

Todoist - When a task is completed (V2) (Preview) - BUG

hi @v-bacao-msft,

 

I discovered a bug using the v2 version of the Todoist connector.

 

The trigger When a task is completed (V2) (Preview) returns this body

{
"content": "Stretching & Breathing",
"meta_data": null,
"user_id": 5123746,
"task_id": 3463747610,
"project_id": "2215864327",
"completed_date": "2019-11-05T08:35:51Z",
"id": "3356452419"
}

 

Consuming the result in a next step, into the property itemTaskId, I got the value of id, and not task_id.

I don't know what is id, but I need the task id.

Screenshot_1.png

 

The current error message is: 

image.png

 

Could you please fix it?

 

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @mirkobersani ,

 

You could get task id via expression:

60.PNG

 

Best Regards,

Community Support Team _ Barry
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

5 REPLIES 5
JatinSanghvi
Power Automate
Power Automate

Thanks for reporting the issue. It seems the action internally sends request to the Todoist Sync API documented here: https://developer.todoist.com/sync/v8/#get-all-completed-items. I have requested the engineer who worked on the V2 action to take a look, and will update you once I get a response.

 

Do you know a situation when the content of 'id' and 'task_id' properties be different? Since, the example in the documentation page shows same content of both 'id' and 'task_id' properties.

Update: We do not know when the values of two properties will differ, and when they do, what each of those two values signify. I have sent a request for clarification to the Todoist service.

As far as I know, the most relevant one is task_id.

Apparently id is useless, but ask Todoist for confirmation.

They have just updated the main version of the software and it could be a new subject.

@mirkobersani - Can you see if following workaround works? I haven't tested it so please let me know if you see any error.

Add 'Parse JSON' action to the Flow. Set the 'Content' field of action to 'A Todoist Items response object'. For schema, select 'Generate from sample' and use a response similar to below:

{
  "items": [{
      "content": "Stretching & Breathing",
      "meta_data": null,
      "user_id": 5123746,
      "task_id": 3463747610,
      "project_id": "2215864327",
      "completed_date": "2019-11-05T08:35:51Z",
      "id": "3356452419"
    }
  ]
}

Then you should be able to access 'task_id' property and perform other operations within an 'Apply for each' action with 'items' selected from 'Parse JSON' action output. See below screenshot:

ParseJson.PNG

v-bacao-msft
Community Support
Community Support

 

Hi @mirkobersani ,

 

You could get task id via expression:

60.PNG

 

Best Regards,

Community Support Team _ Barry
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,269)