What can we help you with?

e.g. Gantt chart, Creating tasks, Sharing folders

Parent IDs in API

3 comments

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Shane King

    (Edited )

    I'm currently doingย some experimenting with this. Here's what I've learned:

    If you append the following to a "tasks" call, it will return all associated parent ids (eg: if a task or project exists within multiple folders, it will return an ID for each parent folder):

    ?fields=["parentIds"]

    Parent Folder is defined as the closest folder(s) above a task, project, or subfolder. I have not figured out how toย getย IDs fromย any folders higher in the folder structure yet.

    Curious to know this as well.ย ย 

    ย 

    ย 

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Stephen

    Hi Tim & Shane,

    For this, you'll need to query individual folders to get the IDs of their parent IDs.

    Iย reckon this might work betterย if you save the Folder tree information and update it every so often so you canย reference the parent Folder localย data andย reduce theย number of API calls.

    ย 

    Stephen Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Tim Schoffelman

    Hey Stephen,

    That's how I'm solving the problem at the moment. Saving those parent folders to a cached JSON file and then updating it as additional required folders are added.ย 

    Has there been any discussion about creating a field where we can set what the authoritative or home folder ID? I know this would help slim down on the number of API calls I make to figure outย a few other things.

    Thanks!
    Tim

Please sign in to leave a comment.

Folllowing List for Post: Parent IDs in API
[this list is visible for admins and agents only]

Community

Welcome ๐Ÿ––

Hi there! ๐Ÿ™‚ Want to become a black belt Wrike Ninja? Here's how to earn a Wrike badge

Welcome ๐Ÿ–– Have you checked out this week's Release Notes yet?

Hey! ๐Ÿ‘‹ Curious about something? Visit How To to search and ask the Community for answers.

Welcome! ๐Ÿ‘‹ Figured out a good tip or trick? Share it in Best Practices.

Want to connect your existing software to Wrike? Learn and ask how in the API section.