cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

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.

 

Anonymous
Not applicable

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,597)