Hi,
I’m created a Power Automate flow to get the attachments from an Asana task, then display as a clickable URL within an email body. However, upon clicking the link, I receive the below message:
What property are you getting the attachment URL from? I’m guessing its download_url? That link is only valid for two minutes; see the docs. I think you need to use permanent_url.
If you are logged into your account, and use that url in your browser, it should work.
The asana UI will redirect you to the “download_url”.
But, if you are in a scripting environment without browser, not connected to app.asana.com, the download_url is the one to use, but you should use these 2 query:
GET /attachments/xxx
GET /response_from_1.download_url (valid for a few seconds)
download_url is set to the private AWS S3 bucket that Asana uses, and it built with a temporary hash signature that expires.
It starts with:
Hey guys, looks like AWS is now requesting an access code which is not included in Asana attachments data. Have you had the same issue? Any recommandation to resolve this?
I am using “download_url” and didn’t realise the 2 minute expiration, so thanks for this.
Regarding using “permanent_url”, this works; however, the user must have an Asana licence to view and not all my users have one; therefore, I can’t use this.
Does “view_url” have the same timeout as the download? If not, does the user require a licence to view?
My users are clicking the link from an email; therefore, this could be clicked any time upon creation.
I was referring to another GPT-generated post made in reply to yours; but moderators deleted that post so my comment was confusing! I removed it. It was definitely not aimed at your valid issue!