Hi there. My question is two-fold.
1st I have a collection of Users and one of Assets. I’m rendering an image list using the Asset URL. Right now I have it set to only show All Assets with a custom filter If “User Email is equal to Logged In User > Email”. I want a placeholder image to show if there are no assets matching this but I’m unsure if the “count” refers to all assets or only the assets that match the custom filter. The placeholder image refuses to show at all. Even when using an empty Test collection.
2nd I am creating new Assets through the Collections API. I have a relationship One User may have many Assets but an Asset may only belong to one User. The problem is that I can only set a property “User Email” via the API endpoint but obviously I cannot set the relationship User to be the email address. When I create a new Asset manually it asks me via a drop down list to set the User (it uses the email address). How can I do this in an automated way when calling the API endpoint? Is this even possible or is there a walk around?
Just a note the reason why I think these are interlinked is because if I can set the relationship Asset > User when creating an Asset then if I set the placeholder image then the count will work for a an Asset count of 0 per User.