JSON Call for Attachments URL

Greetings TB Community-

Now that the “Attachments” field is the only field to use for uploads, I would like to update how I call for the URL to be saved in a text field of the attachment.

I used to use item.field_XX.url but this is no longer working to pull the URL into a text field when using the TB Rest API Get Single Field call. It used to work when the “File” field was available.

Any ideas?

Thanks much,
Adam

1 Like

Thanks to @kruizf201 for the help.

The updated way of calling JSON with the “Attachments” field is to use

item.field_XX.0.url

You have to add a .0 (dot zero) to the JSON Key.

3 Likes