Parent IDs in API

Комментариев: 5

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Shane King

    (Изменен )

    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 💡Узнайте о самых популярных функциях Wrike и советах по его использованию

  • 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

  • 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 💡Узнайте о самых популярных функциях Wrike и советах по его использованию

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Tim Schoffelman

    Thank you for your help Stephen. 

Войдите в службу, чтобы оставить комментарий.

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.