Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

CSOM Bugs

$
0
0

Hello Everyone,

Like many of you I have been struggling with the lack of documentation for CSOM. Despite the silence I have figured a few things out, as well as a few bugs with CSOM. I call them bugs because MS has given no documentation to support that it should behave this way.

1) C# Updating custom fields. if you set two LOOKUP custom fields like this:

draftProject.setCustomFieldValue(InternalName1, new object[]{"value"});

draftProject.setCustomFieldValue(InternalName2, new object[]{"value2"});

Then publish the draft project, only the InternalName2 value saves. In other words, whichever lookup field you set last will save, the others will not be touched.

2) C# Updating the owner

Besides the obvious status manager issue of not being able to set the owner on project creation, it seems you cannot set the Owner of a project through CSOM.

draftProject.Owner = GetSPUser( ownerGUID );

Owner is a "User" object. My function returns the "User" object of the GUID it is passed (yes the function works, tested and debugged many times). BUT, the project never gets updated with the new owner.

So, if these aren't bugs, where is the documentation?


120811049008


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>