You are viewing limited content. For full access, please sign in.

Question

Question

How to retrieve data of Template fields from a document using Laserfiche SDK 9.1?

SDK
asked on November 6, 2014

Hi,

 

Can anyone suggest me on how can I retrieve metadata of a document in Laserfiche?

I need to retrieve values of fields of template associated with a document in Laserfiche and write to CSV file.

 

Thanks in advance

0 0

Answer

SELECTED ANSWER
replied on November 6, 2014 Show version history

session.LogIn("admin", "abcd12", repositoryRegistration);

                var document = Entry.GetEntryInfo(1, session) as DocumentInfo;

                var fieldValueCollection = document.GetFieldValues();

                foreach (KeyValuePair<string, object> kv in fieldValueCollection)
                {
                   var value =  kv.Value;
                   var fieldName = kv.Key;
                }

2 0

Replies

replied on November 6, 2014

I think I got it.

 var document = Entry.GetEntryInfo(1, session) as DocumentInfo;

 var fieldValueCollection = document.GetFieldValues();

 

 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.