cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MKE-Asana-User
New Member

Asana - creating custom id

Hello,

 

I would like Asana to generate a new sequential job ticket # every time a new task is created.  Unfortunately, this is not a standard feature in Asana, so Asana recommended creating a Microsoft Flow.  I'm new to this, but the instructions they provided at the link below are very confusing (missing words, typos, etc.).   I followed every step and nothing works.  Is there some key information missing from the instructions?

 

https://paper.dropbox.com/doc/microsoft-Custom-IDs-using-Microsoft-Flow-FsajE38C2BpaloyJBsXra

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @MKE-Asana-User,

 

Since there is no global variable in PowerAutomate, so the increased job ticket ID for Asana is not simple. The only way could do is get all tasks, then use Apply to each action to loop them and find the max ID:

1. Create trigger - When a task is created

2. List all tasks of Asana by using API:

API call to get all tasks (with task details) for a particular project - Developers & API - Asana Co...

3. Cause Asana doesn't support Order By, so we should use Apply to each action to loop them and find the max ID;

Asana API order by - Stack Overflow

python - How to find the maximum number in a list using a loop? - Stack Overflow

4. Then update the task details via the link you provided with an ID that sub 1 based on the max ID in step 3.

 

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

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @MKE-Asana-User,

 

Since there is no global variable in PowerAutomate, so the increased job ticket ID for Asana is not simple. The only way could do is get all tasks, then use Apply to each action to loop them and find the max ID:

1. Create trigger - When a task is created

2. List all tasks of Asana by using API:

API call to get all tasks (with task details) for a particular project - Developers & API - Asana Co...

3. Cause Asana doesn't support Order By, so we should use Apply to each action to loop them and find the max ID;

Asana API order by - Stack Overflow

python - How to find the maximum number in a list using a loop? - Stack Overflow

4. Then update the task details via the link you provided with an ID that sub 1 based on the max ID in step 3.

 

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

MKE-Asana-User
New Member

Oh -- I guess I'd have to be a computer programmer to figure this out.  None of that makes sense to me.  It's too bad Asana can't provide this common feature in their software.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,840)