Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexFields are always null for vaultApi.Folders.GetFolderDocuments #6

Open
kcruzado opened this issue Feb 10, 2016 · 0 comments
Open

Comments

@kcruzado
Copy link

The index fields are not being returned when I retrieve all of the documents.

I tried to retrieve the index fields using the following, but doc.IndexFields returned null…
var documents = vaultApi.Folders.GetFolderDocuments(Folder.Id)
foreach (Document doc in documents)
{
var indexFields = doc.IndexFields;
}

For me to actually retrieve the index fields I am forced to make a second call using the following…
var documents = vaultApi.Folders.GetFolderDocuments(Folder.Id)
foreach (Document doc in documents)
{
var indexFields = vaultApi.Documents.GetDocumentIndexFields(doc.DocumentId);
}

It works, but isn’t ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant