What can we help you with?

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

Parent IDs in API

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

    ย 

    ย 

    Is this helpful? 0
  • 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 ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
  • 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

    Is this helpful? 0
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Stephen

    Hey Tim, sorry for the delay getting back. There are no plans for this at the moment,ย but I've shared your interest with the relevant team so this could change in the future. I'll post back here to let you know if there are any updates ๐Ÿ‘

    Stephen Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Tim Schoffelman

    Thank you for your help Stephen.ย 

    Is this helpful? 0

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.