Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-04-28 11:31:39

mark_p
Member
Registered: 2014-04-28
Posts: 3

Files.GetAssetsForParent API - Appears to be returning deleted images

I have a folder which shows four images in the application.  However, when I use the above API call, it returns eight results.  The filenames are the same, however, the ids are unique.

Offline

#2 2014-04-28 13:00:13

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: Files.GetAssetsForParent API - Appears to be returning deleted images

Hi Mark,

Welcome to the forum!

A quick test of Files.GetAssetsForParent() here only resulted in assets from the recycle bin being returned if the recycle bin containerid itself was provide as an argument. Perhaps you could expand a little on your testing?

Best Regards,
Steve

Offline

#3 2014-04-29 14:08:13

mark_p
Member
Registered: 2014-04-28
Posts: 3

Re: Files.GetAssetsForParent API - Appears to be returning deleted images

These are the steps I take:

#1 Call Folders.GetTopLevelFolders
#2 Find the single folder that I want
#3 Call Folders.GetContainersForParent
#4 This returns a collection of folders
#5 For each folder, call Files.GetAssetsForParent

Is this enough?  I didn't want to give complete specifics on an open forum, but I would be happy to email these through to you if that is possible?

Offline

#4 2014-04-29 14:49:46

mark_p
Member
Registered: 2014-04-28
Posts: 3

Re: Files.GetAssetsForParent API - Appears to be returning deleted images

I have found the issue - we had two identically named folders with the sames images in each folder, hence the duplication.

Offline

#5 2014-05-02 14:27:56

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: Files.GetAssetsForParent API - Appears to be returning deleted images

Hi Mark,

Ah, glad  you have got it going now. Thanks for the update.

Best Regards,
Steve

Offline

Board footer