I am using Zapier to duplicate an Asana project based on certain conditions. In fact, when a certain task (in another project) is updated to be in a new “section”, it triggers my Zap. Let’s call this the Trigger Task.
The Zap then has some Javascript that runs to duplicate an Aasna project template that we created.
Here is that code/setup: https://i.imgur.com/fEvDTHX.png
I’d like to add a new action to this Zap, that will then move the Trigger Task into this new project (that was just created/duplicated).
I know I can use the “Add a project to a task” aspect of the API, here: Add a project to a task
But how do I get the GID of the newly created project?
In order to add this new project to the Trigger Task, I need to know the GID of the new project.
I assume there is a way for me to update my Javascript, so that I can capture the GID of the newly created project after it’s been built? How would I get the GID for the response, and then store that as a value that I can use within another Zap action?