Wrike Task IDs vs API Ids

I am curious about why the Task IDs you get from a URL Query differs than the ID that is needed for the API.

An example is if I want to pull a Task ID it will have two different IDS:

URL: wrike.com/workspace.htm?path=folder&id=1234
API: {"taskId": "ABCD"}


Is there also a way to find this API TaskID and FolderID more easily? Currently, the best process we came up with was to move a folder/task into a folder that we already know the ID of, then do an API call to the folder pull up the IDs, after we get their IDs we move it out of the initial folder.

0
11件のコメント
Spot On Innovative Approach Stellar Advice

Has anyone come up with this? I am having the same issue.

Why separate the IDs?

0
Spot On Innovative Approach Stellar Advice

I can't speak to why the IDs are different, but I constantly need to look up IDs for the API, and I've found the fastest way to do this is using Postman. There's a good pinned article at https://help.wrike.com/hc/en-us/community/posts/115000282125-Beginners-Guide-Get-Data-From-Wrike-s-API-Without-Coding-via-Postman describing how to do this.

My go-to calls are:

I then search the response body within Postman to get the IDs I need based on the folder or task name.

0
Spot On Innovative Approach Stellar Advice

Thanks for the response, Laura Boylan, that is currently one of our team's go-to solution other than pulling this id via the Folder/Task Permalink.

One of the most recent issues we are finding with this, however, is trying to grab the ID for something like spaces. During a direct GET call to the api endpoint GET spaces https://developers.wrike.com/documentation/api/methods/get-spaces

Where the spaces return a 500 error and no permalink is visibly found as grabbing a folder id or task id. 

 

0
Spot On Innovative Approach Stellar Advice

Russell Wilkie - That's odd. I'm not seeing any problem with the response returned by https://www.wrike.com/api/v4/spaces on our account. Wrike Support may need to assist if you're getting 500 errors here.

0
Spot On Innovative Approach Stellar Advice

This is the dumbest way to setup an api 🙄

4
Spot On Innovative Approach Stellar Advice

The Wrike v4 API provides a method for converting legacy IDs (i.e., the IDs shown in the url when accessing data via the Wrike front-end): https://developers.wrike.com/api/v4/ids/

For example, a GET call to the following url would retrieve the v4 ID for a task from its legacy ID 1234:

https://www.wrike.com/api/v4/ids?ids=[1234]&type=ApiV2Task

Per the developer documentation this can be performed for the legacy IDs for:

  • Accounts (ApiV2Account)
  • Users and Groups (ApiV2User)
  • Folders (ApiV2Folder)
  • Tasks (ApiV2Task)
  • Comments (ApiV2Comment)
  • Attachments (ApiV2Attachment)
  • Timelog Entries (ApiV2Timelog)

Garrett McCutcheon Community Team at Wrike Wrike Product Manager Learn about Wrike’s killer features and best practices with our Online Training Webinars

Garrett McCutcheon Wrike Team member Learn about Wrike’s killer features and best practices with our Online Training Webinars

1
Spot On Innovative Approach Stellar Advice

Thanks Garrett...Your parameters are NOT a part of the Wrike API documentation (https://developers.wrike.com/api/v4/ids/#legacy-api-v2-ids-converter)  It seems like you know something no one else knows :-)

0
Spot On Innovative Approach Stellar Advice

Hi Kyle Peters, it seems that Garrett is referring to additional sub-parameters. Please click the caret icon to open them:

Hope it clarifies your question🙌

Lisa K. Community Team at Wrike Wrike Product Manager Learn about Wrike’s killer features and best practices with our Online Training Webinars

Lisa K. Wrike Team member Learn about Wrike’s killer features and best practices with our Online Training Webinars

0
Spot On Innovative Approach Stellar Advice

Lisa, thank you for your replay. However, this is not helping me. I think I must be missing something - as I look at your screenshots, my screen looks different. I do not see that "Request" section with the URL parameters. I am including a screenshot of what I see. 

0
Spot On Innovative Approach Stellar Advice

Lisa, Thanks to my colleague, I actually clicked (not intuitive) the "GET" button, and viola! Now I see everything!

0
Spot On Innovative Approach Stellar Advice

We're glad to hear that, Kyle Peters, and thank you for letting us know your feedback 🙌

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0

Folllowing List for Post: Wrike Task IDs vs API Ids
[this list is visible for admins and agents only]

トップ
Didn’t find what you were looking for? Write new post