Best way to get page attachments?

James Ison asked on May 29, 2020 22:09

We wrote what ended up being 2 functions to pull all the attached images from a specific tree node. we pass a bunch of values and select it etc. I guess what I am asking is what is the least resource intensive way to get the attachment list and info? I see some structures in TreeNode that look like I should be able to pull an array but I can't get it to work. Any tips would be appreciated. I can paste my code here if it helps.

Recent Answers


Brenden Kehren answered on May 30, 2020 14:13

I suggest looking at the API Examples and follow what is suggested there.

1 votesVote for this answer Mark as a Correct answer

James Ison answered on June 2, 2020 00:12

I did, and I am using the sample (modified) but it still does a query to look up the node. From a transformation I should be able to pass the current TreeNode and get the attachments and their meta data. and as I mentioned in the first question there are structures in TreeNode looks like you should be able to get them quickly.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.