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

Question

Question

Need to Change System Field using SDK

SDK
asked on July 31, 2018

Hello,

I need to change System Field like Creator, Created Date, Modified By and Modified Date using SDK.

If we can Import Documents using SDK then it will automatically set the Session User name and system Date time for Creator and Created Date Time but i need to set field value using SDK but not used for session user name and created date.

is it possible to update field using SDK?

Thanks

0 0

Answer

APPROVED ANSWER
replied on July 31, 2018

The fields you are wanting to change are not modifiable.  The system does not expose any methods to write to them through client or SDK. The Creator and Creation Date are created and filled by the server at the time the entry is created and then they are read only (never writable by the client).  The Lasted Modified and Modified By fields are also only written by the server and only exposed to client as read only.

 

This behavior is for the integrity of the system and should never be changed.  You want to know that the data about your document history is true and accurate.  If this data is changeable by the users, then you would never be able to trust it.

1 0
replied on July 31, 2018

Thanks for the Response Bert. 

I do some migration activity from SharePoint to Laserfiche at that time when we create Document in SharePoint Creator will be Ex. "User1" but when we import doucments using SDK there is only one option to set only one user session so all documents creator will be changes so we do not want to change it as session user name but i need original "User1" in creator field.

0 0
replied on July 31, 2018

Usually the way this is handled is to create your own fields and place the data from the other system into your fields (not the system fields).

1 0
replied on August 2, 2018

OK Thanks

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.