This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COB.SharePoint.HybridSearch.CustomInterleaving = { | |
| Init: function () { | |
| $.getScript("/_layouts/15/SP.search.js", | |
| function () { | |
| COB.SharePoint.HybridSearch.CustomInterleaving.RunSearch(); | |
| }); | |
| }, | |
| RunSearch: function () { | |
| $('#CSOMSearchWP_Interleaved').text(''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | |
| <Receivers ListTemplateId="11000"> | |
| <Receiver> | |
| <Name>RemoteEventReceiver1ItemAdding</Name> | |
| <Type>ItemAdding</Type> | |
| <SequenceNumber>10000</SequenceNumber> | |
| <Url>https://cobspdev.azurewebsites.net/Services/RemoteEventReceiver1.svc</Url> | |
| </Receiver> | |
| </Receivers> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . .\TopOfScript_PSCSOM.ps1 | |
| function listEventReceivers([Microsoft.SharePoint.Client.ClientContext]$context, [string]$listName) | |
| { | |
| Write-Host "Attempting to iterate event receivers on list '$listName'" | |
| $list = $context.Web.Lists.GetByTitle($listName); | |
| $context.Load($list) | |
| $eventReceivers = $list.EventReceivers | |
| $context.Load($eventReceivers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . .\TopOfScript_PSCSOM.ps1 | |
| function listEventReceivers([Microsoft.SharePoint.Client.ClientContext]$context, [string]$listName) | |
| { | |
| Write-Host "Attempting to iterate event receivers on list '$listName'" | |
| $list = $context.Web.Lists.GetByTitle($listName); | |
| $context.Load($list) | |
| $eventReceivers = $list.EventReceivers | |
| $context.Load($eventReceivers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . .\TopOfScript_PSCSOM.ps1 | |
| function deleteListItemRemoteEventReceiver([Microsoft.SharePoint.Client.ClientContext]$context, [string]$listName, [string]$receiverName) | |
| { | |
| Write-Host "Attempting to delete RER with name '$receiverName' on list '$listName'" | |
| $list = $context.Web.Lists.GetByTitle($listName) | |
| $context.Load($list) | |
| $eventReceivers = $list.EventReceivers | |
| $context.Load($eventReceivers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . .\TopOfScript_PSCSOM.ps1 | |
| function addListItemRemoteEventReceiver([Microsoft.SharePoint.Client.ClientContext]$context, [string]$listName, | |
| [Microsoft.SharePoint.Client.EventReceiverType]$eventType, [Microsoft.SharePoint.Client.EventReceiverSynchronization]$synchronization, | |
| [string]$receiverName, [string]$receiverUrl, [string]$receiverAssemblyName, [string]$receiverClassName) | |
| { | |
| $list = $context.Web.Lists.GetByTitle($listName); | |
| $context.Load($list) | |
| $eventReceivers = $list.EventReceivers | |
| $context.Load($eventReceivers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <reference path="jquery-1.8.3.min.js" /> | |
| "use strict"; | |
| Window.cob = Window.cob || {}; | |
| Window.cob.sharepoint = Window.cob.sharepoint || {}; | |
| Window.cob.sharepoint.jsdemos = Window.cob.sharepoint.jsdemos || {}; | |
| Window.cob.sharepoint.jsdemos.ui = Window.cob.sharepoint.jsdemos.ui || {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- COB code - added before end of last DIV: --> | |
| <div id="_#= $htmlEncode(id + '_cob-hp-socialpostui') =#_" class="cob-hp-socialpostui" style="display:none"> | |
| <div id="_#= $htmlEncode(id + '_cob-hp-socialposteditui') =#_" class="cob-hp-socialposteditui"> | |
| <div> | |
| <textarea id="_#= $htmlEncode(id + '_cob-hp-posttext') =#_" rows="2" cols="30" class="cob-hp-posttext"></textarea> | |
| </div> | |
| <div> | |
| <span id="_#= $htmlEncode(id + '_cob-hp-socialpostuicontrols') =#_" class="cob-hp-socialpostuicontrols"> | |
| <span id="_#= $htmlEncode(id + '_cob-hp-postbutton') =#_" class="cob-hp-postbutton"> | |
| <input type="button" title="Post" value="Post" class="cob-hp-postbutton" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- COB code - added before end of last DIV: --> | |
| <div class="ms-srch-hover-action"> | |
| <a href="javascript:Window.cob.sharepoint.jsdemos.ui.ShowHoverPanelTextBox('_#= (ctx.CurrentItem.id) =#_')" id="_#= $htmlEncode(id + '_PostToFeed') =#_" class="ms-calloutLink ms-uppercase cob-hp-postaction" title="Post to your followers"> | |
| POST | |
| </a> | |
| </div> | |
| <!-- end COB code --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . .\PS_MSOL_TopOfScript.ps1 | |
| if ($connected) | |
| { | |
| Get-MsolUser | |
| } |