Skip to content

Instantly share code, notes, and snippets.

Jonathan Cardy johnnycardy

Block or report user

Report or block johnnycardy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tabs.js
<!– Reference jQuery on the Google CDN>
<script src="//code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<!– Reference jQueryUI on the Google CDN>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js" type="text/javascript"></script>
<script src="//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js" type="text/javascript"></script>
<style>
.ui-widget-header { background: none; border-radius: 0; border-left: 0; border-top: 0; border-right: 0; }
#tabsContainer { border:none;}
.ms-webpartzone-cell { margin: 0 !important; border:0; }
@johnnycardy
johnnycardy / GetEntityParametersCodeActivity.cs
Last active Feb 20, 2017
Microsoft CRM workflow code activity to retrieve various useful parameters for the current executing context.
View GetEntityParametersCodeActivity.cs
public class GetEntityParametersCodeActivity : CodeActivity
{
[Output("PrimaryEntityID")]
[ArgumentDescription("Primary Entity ID.")]
public OutArgument<string> PrimaryEntityId { get; set; }
[Output("PrimaryEntityName")]
[ArgumentDescription("Primary Entity Name.")]
public OutArgument<string> PrimaryEntityName { get; set; }
@johnnycardy
johnnycardy / ExecuteQueryAsync
Last active Aug 29, 2019
ExecuteQueryAsync for Microsoft SharePoint CSOM 15/16 (On Premise)
View ExecuteQueryAsync
private static async Task CSOM15ExecuteAsync(ClientRuntimeContext clientContext)
{
try
{
//ScriptTypeMap.EnsureInited();
Assembly csomRuntime = Assembly.GetAssembly(typeof(ClientRuntimeContext));
Type scriptTypeMap = csomRuntime.GetType("Microsoft.SharePoint.Client.ScriptTypeMap");
InvokePrivateStaticMethod(scriptTypeMap, "EnsureInited");
//ClientRequest pendingRequest = PendingRequest;
You can’t perform that action at this time.