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?

7

2 Answers 2

1

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

0
2

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

4
  • 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)? Commented Feb 1, 2016 at 8:53
  • 1
    ...which is why there is a UV to request it, since there is not a method to set it.
    – user6024
    Commented Feb 1, 2016 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. Commented Feb 2, 2016 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 Commented Feb 3, 2016 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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