Monthly archives: May, 2018

Does JSOM offer an equivalent to SPQuery.CalendarDate?

I’m trying to get recurring items for a specific month from a list. Using the following, I can get the events for the current month: I’ve looked through the prototype of JSOM’s SP.CamlQuery(), but it doesn’t offer a property similar to C#’s SPQuery.CalendarDate. Is there a way to specify a date relative to which to …

SP Field.Hidden property not hiding?

I have set the property .Hidden of one field to $true. $field=$List.Fields.GetByTitle(“Business Phone”) $ctx.ExecuteQuery() $field.Hidden=$true The change has been applied successfully and if I check that property $field.Hidden shows $true. The result is that when I am trying to add a new item to my list, the field is not shown, which is expected and …

SharePoint Add List Attachment Programmatically 404

I’m not having much luck with this… [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} $lists_pxy = New-WebServiceProxy -Uri ‘myserver/_vti_bin/Lists.asmx?WSDL’ -UseDefaultCredential $list = $lists_pxy.GetList(‘Test Me’) $list_and_view = $lists_pxy.GetListAndView(‘Test Me’, ”) $view_id = $list_and_view.childnodes.item(1).name $xdoc = [xml] (@’ Test Title ‘@ -f $view_id) $result = $lists_pxy.UpdateListItems(‘Test Me’, $xdoc.Batch) $list_item_id = $result.SelectNodes(‘//@ows_ID’) | select -exp ‘#text’ $bytes = [IO.File]::ReadAllBytes(“D:\my.file”) $lists_pxy.AddAttachment($list.Name, $list_item_id, “my.file”, …

Custom Assets Library List Definition

I need to create a custom list definition for “Asset Library” in SharePoint 2013. Eventually i need to add my custom content type to it. Hence the reason for the custom list definition. The custom list definition based on the AssetLibrary cannot be created directly through VS 2010/2013, SharePoint list definition template in VS doesn’t …

Receive signed e-mails with SPEmailEventReceiver

I have created SPEmailEventReceiver that process incoming e-mails and its attachments. Everything works fine except the processing e-mails that are signed. Once the signed e-mail is received, the receiver won’t detect any attachments. I’m trying to get attachments from SPEmailMessage.Attachments. Any idea? =================      Does the signed email documents getting into the document library? …

SP13: Custom List Searching

I created a custom list. Within the custom list I can search on every column except the following: People and Groups and Date and Time. I have checked the Search Settings for the custom list and everything looks to be setup correctly. Is this a feature in SP13 that is not possible to return search …

How to include custom fields in clientContext.load()?

Loading some list items via var lists = web.get_lists(); var list = lists.getByTitle(listTitle); var listItems = []; for (var i in len) { listItems[i] = list.getItemById(itemIds[i]); context.load(listItem[i], ‘Title’); } context.executeQueryAsync(function () { for (var i in len) { console.log(listItems[i].get_fieldValues()); } }, function () { }); I can get the right items easily, logging their titles …