Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've investigated this and found the same thing. I also tried adding the attribute <code>Cmd="Update"</code> to the <code>Method</code> element without success. <a href="http://msdn.microsoft.com/en-us/library/dd965218.aspx" rel="nofollow noreferrer">This example</a> of how to use UpdateContentType was helpful too.</p> <p>I don't believe you will be able to do this with the out-of-the-box SharePoint services. You've verified from looking at stssoap.dll that this doesn't appear to work correctly. Another 'client'-style option is to use <a href="http://msdn.microsoft.com/en-us/library/ms480784.aspx" rel="nofollow noreferrer">RPC methods</a> but none appear to provide functionality for content types at all.</p> <p>The web services are <em>particularly</em> frustrating because this type of not-so-edge case regularly comes up. It is very rare that I consider using them because of the time wasting involved with their limitations.</p> <p>Do you have <strong>any option</strong> of deploying custom code to the server? You could develop this functionality using the object model and wrap it in your own custom web service (there is a <a href="http://msdn.microsoft.com/en-us/library/ms464040.aspx" rel="nofollow noreferrer">walkthrough here</a>) quite easily.</p> <p>Here is an example adapted from <a href="http://gabewishnie.blogspot.com/2007/01/updating-existing-content-types-in.html" rel="nofollow noreferrer">Gabe Wishnie</a> that does what you require:</p> <pre><code>SPContentType myContentType = myWeb.ContentTypes["myContentType"]; string internalName = myContentType.Fields["fieldToUpdate"].InternalName; myContentType.FieldLinks[internalName].Required = false; myContentType.Update(true); </code></pre> <p>Sorry this isn't more helpful but it's a common story when using the WSS 3.0 / SharePoint 2007 web services.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload