Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Retrieving metadata and categories doesn't work

Vote:
 

Hi,

I'm working on a project where I'm using ImageVault 4.5.2.120. In the project I'm building a plugin were you list and modify images used for the website. The problem I have is that I'm not able to retrieve any values for categories or metadata, they always get a null-value.

The code I'm using is the following:

var client = ClientFactory.GetSdkClient();
var images = client.Query().Include(v => v.Categories).Include(p => p.Metadata).ToList();

In the list I get all images and some basic information like created date or uploaded by, but both categories and metadata are null.

The categories and metadata are created by the user directly in ImageVault.

Does anyone know what the problem could be?

Thanks
Robin

#115401
Jan 14, 2015 14:38
Vote:
 

Hi!

I think you got help via our support and found the cause yourself. As a note to anyone else who might having the same problem, make sure to add the following using statement to get access to the correct Include statements

using ImageVault.Client.Query;



#115763
Edited, Jan 19, 2015 9:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.