8

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList:

Add-PSSnapin Microsoft.SharePoint.Powershell

$web = Get-SPWeb "http://foo/web"
$list = $web.Lists.TryGetList("Tasks")

$list.EnableAssignToEmail = $true
$list.Update()

I do not see a specific method or property on SP.List in the CSOM SP.List API: http://msdn.microsoft.com/en-us/library/office/jj245826(v=office.15).aspx#constructors.

Is there some trick to get this enabled, or is it just not possible?

1

Shall work with a new CSOM Version: https://dev.office.com/blogs/new-sharepoint-csom-version-released-for-Office-365-august-2016-updated

2

Reflector shows us that EnableAssignToEmail is not decorated with the ClientCallable attribute, thus is not accessible via CSOM.

  • 2
    The real question is, is there another way of setting it (since it clearly is not available as a property of the list directly)? – Robert Lindgren Feb 1 '16 at 8:53
  • 1
    ...which is why there is a UV to request it, since there is not a method to set it. – Trevor Seward Feb 1 '16 at 19:30
  • 1
    Not everything is gettable/settable in SPO via CSOM or PS compared to on prem, it's frustrating at times but 'tis the nature of a hosted service offering. – Eric Alexander Feb 2 '16 at 20:09
  • Truly that's the case. Have seen some nice workarounds for setting stuff not really exposed before though (like Available page layouts etc.), so figured it was worth a shot to ask for an alternate way – Robert Lindgren Feb 3 '16 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.