After setting up a on prem developer environment, I was ready do start coding add-ins. But then i got access denied, What I'm running as administrator I'm king and can access everything. After after some searching on the net I found the answer (I do not remember the link). The fact that I was running as an System Account was the problem, it is not allowed. Guess I'm not king as administrator after-all. Created a other user and tried one more time, bang it worked.
I was in a scenario where I had to do a add some data to a document list in a web job. My issue was that I could not find any system update method in the CSOM API. After searching it i found a blog post showing that one could just override the system fields, like Modified and Editor(Modified My). That seemed to work but that did not stop it form updating the version number of the document. This example will only work for minor unpublished version. I have not found a way to do this without a published version. There it will get a new minor version. The solution combines the use of adding Editor, and Modified with the use of the ValidateUpdateListItem metod. I found that one can set the item values on the item and just set one value in the form value list, then it will update all the fields. If one then set the "bNewDocumentUpdate" it will not update the version number if it is a minor version. So what i do is just get the values from the item before an update, then sets...
Comments