cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JLathbury
Level: Powered On

Asana Get project by ID doesn't work

The Asana option of "Get Project by ID" serves no purpose since you apparently can't get the Project Info from any trigger except "When a Project is created".

I have a flow that triggers when a Task is created and I have to specify the project by name in the dropdown, but I can't then act on the the Project Name/ID using dynamic fields.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Automate Staff JatinSanghvi
Power Automate Staff

Re: Asana Get project by ID doesn't work

Since the project IDs, are not yet defined in the schema of the trigger response, you will need to parse the JSON response from trigger explicitly. Below I have copied screenshot of a Flow that enlists business phones of each user. You can build a similar Flow to suit your requirement.

ParseJson.PNG

  1. Add a New Step -> Built-in -> Control -> Apply to each action. Set 'Select an output' field to 'data' for Asana.
  2. Within the 'Apply for each' action, add New -> Built-in -> Data Operations -> Parse JSON action.
  3. Set the 'Content' field to 'Current Item'.
  4. For 'Schema', click 'Generate from sample', use one of the child items within 'data' array' of the trigger response that you posted above. Once the schema is auto-generated, you can remove properties from the schema definition that you are not going to use.
  5. Add another 'Apply for each' action within the first 'Apply for each' action. This time select 'projects'  of 'Select an output' field.
  6. Within the inner loop, you will be able to fetch the individual project properties and operate on them.

Let me know if this works.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Asana Get project by ID doesn't work

Hi @JLathbury ,

 

The Project ID column in the "Get Project by ID" action require a Project ID, and we could get the Project ID from the trigger "When a Project is created".

we could only enter the correct Project ID in the Project ID column in the "Get Project by ID" action.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

JLathbury
Level: Powered On

Re: Asana Get project by ID doesn't work

I have the trigger "When a task is created" that seems to provide all of the necessary data, but Flow isn't seeing that data as available.

There is other information I would like to use from this that is clearly available and simply not mapped.

2019-11-13 10_08_51-Run History _ Power Automate.png

Highlighted
Power Automate Staff JatinSanghvi
Power Automate Staff

Re: Asana Get project by ID doesn't work

Since the project IDs, are not yet defined in the schema of the trigger response, you will need to parse the JSON response from trigger explicitly. Below I have copied screenshot of a Flow that enlists business phones of each user. You can build a similar Flow to suit your requirement.

ParseJson.PNG

  1. Add a New Step -> Built-in -> Control -> Apply to each action. Set 'Select an output' field to 'data' for Asana.
  2. Within the 'Apply for each' action, add New -> Built-in -> Data Operations -> Parse JSON action.
  3. Set the 'Content' field to 'Current Item'.
  4. For 'Schema', click 'Generate from sample', use one of the child items within 'data' array' of the trigger response that you posted above. Once the schema is auto-generated, you can remove properties from the schema definition that you are not going to use.
  5. Add another 'Apply for each' action within the first 'Apply for each' action. This time select 'projects'  of 'Select an output' field.
  6. Within the inner loop, you will be able to fetch the individual project properties and operate on them.

Let me know if this works.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,982)