Get URL from uploaded files

System
System Posts: 24 admin
edited July 2020 in Questions
Hello, to exchange files via API I need the URL.

Manually I can get the URL via right click on the field value e.g. https://.pushbot.com/api/files/evt_z0p9k3l/download

But I can't get the URL from the field of type file.

- Tanja
Tagged:

Answers

  • Hello,

    If you use Fields: Field formulas, you should be able to concatenate the URL you require with the following formula:

    var id = fields['your-file-ref-here']
    var url = 'https://{{team.teamName}}.pushbot.com/api/files/'
    result = url.concat(id,'/download')