What can we help you with?

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

Creating folder path using API call


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

    Hi Joe,

    It would be great to hear a little bit about what you're looking to achieve by doing this if possible. It can open the door a little around possible workarounds people here can provide.

    For now, to get further down the path, you need to use the Get Folder documentation to find the name of the Folder you're looking for, here you'll also indentify the Folder ID. You can then apply that ID to, for example, the Create Folder documentation.

    You can use this process of finding the ID and applying it to your calls, move down the Folder path.

    Perhaps the above helps if not, it would be great to hear what your end goals are so I can look into it a little more.

    Also, I'm sure there are other members here who can advise too ๐Ÿ™‚

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

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Joe Spencer

    (Edited )

    Thanks for the reply steven. My goal is to simply display a list of overdue tasks on a dashboard in PowerBI. The problem being that if you have templates where you don't add project names imbedded in each task name, then you have no idea what project that task is associated with unless you look up the folder tree. e.g. I have the following structure:

    > Customer A
    ย  ย > Procurement
    ย  ย  ย  ย > Assembly 1
    ย  ย  ย  ย  ย  ย > Buy Component A *
    > Customer B
    ย  ย > Procurement
    ย  ย  ย  > Assembly 1
    ย  ย  ย  ย  ย  > Buy Component A

    Lets assume the asterisked task is overdue and I will be displayed in my dashboard table. Now if I perform a call to get the task (task - folder - status), I can get the folder ID just fine, but I will only get something like "Buy Component A - Assembly 1 - Overdue".ย  I'd prefer to get "Buy Component A - Customer A/Procurement/Assembly 1 - Overdue".ย  So my issue is creating the path of "Customer A/Procurement/Assembly 1" that includes all the parent folders.ย  I can GetFolderTree, but that gives me something like the following:
    IDย  ย  ย  ย  ย  ย  ย Child 1ย  ย  ย  ย  ย Child 2ย  ย  ย  Child...
    Parent > Customer A, Customer B
    Customer B > Procurement (instance 1)
    Customer A > Procurement (instance 2)
    Procurement (instance 1)> Assembly 1 (instance 1)
    Procurement (instance 2)> Assembly 1 (instance 2)

    Querying a task only gives you it's parentID, you can't get further up the chain it seems.

    So it seems like I'd need to write a script or something to concatenate the whole path together, going backwards from Assembly 1? Like find assembly 1's parent, add it, then find that additions parent, add it, then find that additions parent, add it... etc.

    I'm looking for advice on a clean way to build the folder path like this.

Please sign in to leave a comment.

Folllowing List for Post: Creating folder path using API call
[this list is visible for admins and agents only]


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.