﻿﻿<html>
<head>
</head>
<body>
   

    <script src="ClientGlobalContext.js.aspx"></script>

    <script src="north52_/javascript/wijmo/jquery" type="text/javascript"></script>
    <script src="north52_/javascript/wijmo/jqueryui" type="text/javascript"></script>
    <script src="north52_/javascript/JSON2" type="text/javascript"></script>
    <script src="north52_/javascript/sdk.rest" type="text/javascript"></script>
    <script src="north52_/Javascript/sdk.metadata.js" type="text/javascript"></script>
    <script src="north52_/javascript/north52.htmlwebresource.helper" type="text/javascript"></script>
    <script src="north52_/javascript/north52_dialog_helper" type="text/javascript"></script>
    <script src="north52_/javascript/wijmo/open" type="text/javascript"></script>
    <script src="north52_/javascript/wijmo/pro" type="text/javascript"></script>
    <script src="north52_/javascript/formulaeditor" type="text/javascript"></script>
    <script src="north52_/javascript/wijmo/spreadjs" type="text/javascript"></script>
    <script src="north52_/javascript/codemirror" type="text/javascript"></script>
    <script src="north52_/javascript/sdk_jquery" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/sourceentity" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/sourceproperty" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/targetentity" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/targetproperty" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/sourcerelationship" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/deploymentsolution" type="text/javascript" ></script>
    <script src="north52_/javascript/editor/clientsidepayloadtab" type="text/javascript" ></script>
    <script type="text/javascript" src="north52_/javascript/north52.formula.loadalpha"></script>
 
 
    <link href="north52_/css/wijmo/spreadjs" rel="stylesheet" type="text/css">
    <link href="north52_/css/wijmo/core" rel="stylesheet" type="text/css">
    <link href="north52_/css/wijmo/aristo" rel="stylesheet" type="text/css">
    <link href="north52_/css/formulaeditor" rel="stylesheet" type="text/css">
    <link href="north52_/css/codemirror" rel="stylesheet" type="text/css">

	<style type="text/css">
        .CodeMirror {
            border: 1px solid silver;
            margin-bottom: 1em;
            width: 99.7%;
            height: 91%;
            top: -1px;
        }
        .styled-background { background-color: #ff7; }
    </style>
    

    <script id="modecode">

        CodeMirror.defineSimpleMode("simplemode", {

            start: [


    { regex: /"(?:[^\\]|\\.)*?"/, token: "string" },
    { regex: /(?:addcustomview|adddays|addhours|addminutes|addmonths|addprefilterlookup|addseconds|addyears|alert|alertclear|appendformat|autonumber|associateentities|base64decode|base64encode|between|callrestapi|case|cdate|cdecimal|cdecimaltoint32|cdouble|cfloattoint32|chainfunctions|cint|cint32|cint64|findtemplateid|cjsonarraytoentitycollection|clear|clearattribute|clearcontrolnotification|clearfields|clearformnotification|clone|cnodetoxml|collapsetabs|compress|confirmdialog|contains|containsdata|containsdataandnotzero|coptionsetvalue|countcharacters|createattachment|createdate|createhtmllist|createhtmltable|createhtmltwocolumn|createjarray|createjarraychildren|createjobject|createjproperty|createnote|createnoteifexists|createrecord|createxmlattribute|createxmlattributes|createxmlchildren|createxmldeclaration|createxmlelement|createxmlrootattribute|createxmlrootnode|currentrecord|currentrecordinnerloop|currentrecordouterloop|dameraulevenshteindistance|datediff|datediffdescription|datediffelapsed|datediffelapseddescription|decisiontable|decompress|default|deleterecord|deleterecordifexists|deleterecordsfd|depth|diffdays|diffmonths|diffworkingdays|diffyears|disablefields|disassociateentities|displaymultiplerecords|doesnotcontaindata|doloop|sharepointsetitemmetadata|doloopindex|dolooptotal|enablefields|endswith|executeaction|executedialog|executeworkflow|expandtabs|findavg|findavgfd|findcount|findcountfd|findeccount|findentitycollectioncount|findjarrayitem|findlistvalues|findmax|findmaxfd|findmin|findminfd|findrecords|findrecordsfd|findrecordsfetchxml|findrecordsvalue|findrecordvalue|findsum|findsumfd|findvalue|findvalueex|findvaluefd|findxmlitem|firstrecord|firstwords|foreachrecord|foreachrecorddouble|gcd|generatedoc|generateguid|generateinvoicefromopportunity|generatequotefromopportunity|generatesalesorderfromopportunity|geocodebing|getassociationrelatedentityreferenceid|getassociationrelationshipname|getattributedisplayname|getcurrencysymbol|getday|getdateonly|getdayofweekname|getdayofweeknumber|getdaysinmonth|getentityname|getexchangerate|getfetchxml|getfirstdayofmonth|getfirstdayofweek|getfirstdayofquarter|getlastdayofmonth|getlastdayofquarter|getlayoutxml|getmonth|getnextworkingday|getnextworkingtime|getoptionsetname|getparamfromurl|getpartylistcount|getpartylistitemid|getpartylistitemname|getpartylistitemtype|getuserroles|getuserteams|getvar|getvarjsonec|getvarjsonvalue|getvarxpathec|getvarxpathvalue|getweek|getweekelapsed|getyear|hidefields|hidelefthandnavitems|hidesections|hidetabs|iftrue|indexof|insert|isempty|isleapyear|isuserinsecurityroles|isworkingday|lastrecord|lcm|left|let|letreturn|levenshteindistance|levenshteindistancefast|linkdialogurl|linkhyperlinkurl|linkrawurl|localdate|localdatetime|localtimefromutctime|longestcommonsubsequence|loopuntiltrue|lower|matchlist|maxof|md5|mergerecords|minof|multipleclientside|padleft|padright|priorvalue|round|random|recordindex|recordshare|recordtotal|recordunshare|recordunshareall|refreshform|refreshsubgrid|refreshwebresource|regexismatch|regexmatch|regexreplace|remove|removeattribute|removeprefilterlookup|replace|reverse|right|selectform|sendemail|setattribute|setattributeaction|setattributeactionlookup|setattributecustomer|setattributelookup|setattributepartylist|setattributestatus|setauthenticationoauth|setauthenticationoauth2|setclientsidedate|setclientsidefield|setclientsidelookup|setcolumnorder|setcontrolnotification|setcurrencysymbol|setcustomerlookup|setdefaultview|setfindand|setfindselect|setfocus|setformnotification|setiframe|setlookup|setnotrequiredfields|setownerteam|setowneruser|setparams|setpartylist|setpartylistcombined|setpicklistvalues|setreference|setregardinglookup|setrequestactionfail|setrequestactionpass|setrequestauthenticationbasic|setrequestauthenticationnone|setrequestbaseurl|setrequestdetails|setrequestexpected|setrequestfile|setrequestfiles|setrequestheaders|setrequestparams|setrequestresource|setrequiredfields|setresponseprefix|setstate|settwocolumnorder|setvar|setvarconcat|setwatermarkstring|sha1|sharepointcreatefile|sharepointcreatefolder|sharepointcreatesite|sharepointdeletefile|sharepointfinddocumentsbyfetchxml|sharepointgetfile|sharepointgetitemmetadata|sharepointupdateitemmetadata|showfields|showlefthandnavitems|showsections|showtabs|sift3|similarity|slice|smartflow|smartflowreturn|split|startschedule|startswith|stopschedule|capitalize|stringformat|stringformatgd|metaphone3|totitlecase|trim|striphtml|substring|then|throwerror|tostring|transformentity|translate|updateactivitypartybulk|updatecreaterecord|updaterecord|updaterecordifexists|upper|utcdate|utcdatetime|utctimefromlocaltime|when|whoami|whoaminame|xcacheaddcalculatedfieldlocal|xcacheget|xcachecalculatelocal|xcachefilterlocal|xcachegetglobal|xcachegetlocal|xcacheloadlocal|getactionoutputparameter|in|if|break|setclientsidefieldappend|abs|ceiling|exp|floor|gcd|lcm|maxof|minof|sign|sqrt|truncate|findrecordsaudithtml|openwindow|openentityform|bpsetactiveprocess|bpsetactivestage|bpmovenextstage|bpmovepreviousstage|findbpprocessid|findbpgetstageid|createemailfromtemplate|multipledecisiontable|doesuserhaveprivilege)\b/i, token: "keyword" },
    { regex: /true|false|null|undefined/, token: "atom" },
    { regex: /0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i, token: "number" },
    { regex: /\/\/.*/, token: "comment" },
    { regex: /'(.*?)'/, token: "singlequote" },
    { regex: /\[(.*?)\]/, token: "dynamicvalue" },
    { regex: /\/\*/, token: "comment", next: "comment" },
    { regex: /[-+\/*=<>!]+/, token: "operator" },
    { regex: /[\{\[\(]/, indent: true },
    { regex: /[\}\]\)]/, dedent: true },
    { regex: /[a-z$][\w$]*/, token: "variable" }

  ],

            comment: [
    { regex: /.*?\*\//, token: "comment", next: "start" },
    { regex: /.*/, token: "comment" }
  ],
            meta: {
                dontIndentStates: ["comment"],
                lineComment: "//"
            }
        });
    </script>

    <script id="scriptInit" type="text/javascript">

        $(document).ready(function () {

            North52.FormulaEditor.InjectHyperLinkHelp();

            var sc = document.getElementById("modecode");
            var code = document.getElementById("formula");
            var editorFormula = CodeMirror(code, { mode: "simplemode", lineWrapping: true, matchBrackets: true });


            $("#splitter").wijsplitter({ orientation: "vertical", fullSplit: true, splitterDistance: 425, sized: function () { North52.FormulaEditor.ResizeSS(); }, collapsed: function () { North52.FormulaEditor.ResizeSS(); }, expanded: function () { North52.FormulaEditor.ResizeSS(); } });
            $("#tabsalpha").wijtabs();
            $("#treefunctions").wijtree({ autoCollapse: false });
            $("#accordion").wijaccordion({ header: "h5", requireOpenedPane: false, beforeSelectedIndexChanged: function (events, data) { } });
            $("#treeexplore").wijtree({ autoCollapse: true, showCheckBoxes: true, nodeExpanding: function (events, data) { North52.FormulaEditor.ExpandTreeExplore(events, data); } });
            $("#treesource").wijtree({ autoCollapse: true });
            $("#treerelated").wijtree({ autoCollapse: true, nodeExpanding: function (events, data) { North52.FormulaEditor.LoadRelated(events, data); } });
            $("#treerelatednn").wijtree({ autoCollapse: true, nodeExpanding: function (events, data) { North52.FormulaEditor.LoadRelated(events, data); } });
            $("#treeforms").wijtree({ autoCollapse: true });
            $("#treedetail").wijtree({ autoCollapse: true, nodeExpanding: function (events, data) { North52.FormulaEditor.LoadFormulaDetails(events, data); } });
            $("#targetContainer [title]").wijtooltip({ showDelay: 1200, hideDelay: 1500 });
            $("#ribbon").wijribbon();
            $("#treexcache").wijtree({ autoCollapse: true });
            $("#treeprocesses").wijtree({ autoCollapse: true });
            $("#treecalculations").wijtree({ autoCollapse: true });
            $("#treedecisioncalculations").wijtree({ autoCollapse: true });
            $("#treeactions").wijtree({ autoCollapse: true });

            $("li.folder").wijtreenode("option", "collapsedIconClass", "ui-icon-folder-collapsed").wijtreenode("option", "expandedIconClass", "ui-icon-folder-open");

            $("#dialogFunctionWizard").wijdialog({
                autoOpen: false,
                contentUrl: 'north52_html_functionwizard',
                resizable: false,
                height: 325,
                width: 375,
                modal: false,
                buttons: {
                    "Generate": function () {
                        $(this).wijdialog("close");
                        setTimeout(function () { North52.FormulaEditor.InsertTextAtCursor(North52.FormulaEditor.RetrieveCacheFunction(), North52.FormulaEditor.RetrieveCacheFunction()); }, 1500);

                    },
                    Cancel: function () {
                        $(this).wijdialog("close");
                    }
                }

            });

            $("#dialogExecuteCommand").wijdialog({
                autoOpen: false,
                contentUrl: 'north52_html_executecommand',
                resizable: false,
                height: 300,
                width: 350,
                modal: false,
                buttons: {
                    "Close": function () {
                        $(this).wijdialog("close");


                    }
                }

            });

            $("#flyoutmenu").removeClass("ui-helper-hidden-accessible");
            localStorage.removeItem("n52_firstClick");

            var formulaDescription = parent.Xrm.Page.data.entity.attributes.get("north52_formuladescription").getValue();

            North52.FormulaEditor.InsertTextAtCursor(formulaDescription, formulaDescription);

            $('#treecalculations').hide();
            $('#treedecisioncalculations').hide();
            $('#treeactions').hide();



            North52.DeploymentSolution.Load();
            North52.ClientSidePayLoadTab.Load();
            North52.FormulaEditor.TabSelection();
            North52.FormulaEditor.RegisterInit();
            North52.FormulaEditor.EventsInit();
            North52.FormulaEditor.LoadSourceTree();

            if ((formulaDescription != null) && (formulaDescription.length > 0) && (formulaDescription.indexOf("8.40.20151.5") > 0))
                North52.FormulaEditor.ToggleDecisionTableMode();


        });


        function Show(entity) {

            North52.FormulaEditor.LoadSource(entity);

            North52.FormulaEditor.ClearNodes("#treerelated");
            var node = $("#treerelated").wijtree("findNodeByText", 'Related (N:1)');
            node.element.wijtreenode("add", { text: "Loading..." }, 0);
            node.element.wijtreenode("collapse");

            North52.FormulaEditor.ClearNodes("#treeforms");
            node = $("#treeforms").wijtree("findNodeByText", 'Forms');
            node.element.wijtreenode("add", { text: "Loading..." }, 0);
            node.element.wijtreenode("collapse");


            North52.FormulaEditor.ClearNodes("#treerelatednn");
            node = $("#treerelatednn").wijtree("findNodeByText", 'Related (N:N)');
            node.element.wijtreenode("add", { text: "Loading..." }, 0);
            node.element.wijtreenode("collapse");

        };

        function SaveFormula() {

            if ($('#formula').is(":visible") != true) {

                var spread = $('#ss').data('spread');
                var jsonStr = JSON.stringify(spread.toJSON());
                var generateFormula = North52.FormulaEditor.DTGenerateMaster() + '\n\n\n' + '/*' + jsonStr + '*/';

                $('.CodeMirror')[0].CodeMirror.setValue(generateFormula);

                parent.Xrm.Page.data.entity.attributes.get("north52_formuladescription").setValue(generateFormula);


            }

            North52.FormulaEditor.RegisterSync();
            North52.FormulaEditor.SetDefaultName();

        };


        function GetSaveModeInfo() {

            var selectedValues = $("#formulaClientSideSaveMode").val() || [];
            var selectedValuesServerSide = [];


            for (var i = 0; i < selectedValues.length; i++) {
                selectedValuesServerSide.push(selectedValues[i]);
            }

            return selectedValuesServerSide.join(";") + ':' + $("#formulaGetDataXml").val() + ':' + $("#formulaClientSideSyncAsync").val() + ':' + $("#formulaClientSidePreventDefaultAction").val();

        };


        function SelectionChangedBuildTrees(sender, args) {

            North52.FormulaEditor.BuildTrees(args.sheetName);
        };
        
        

        

    </script>

    <title></title>
   <div class="container" id="n52Container">
        <div id="splitter">
            <div id="panel1alpha">
                <!---Panel1--->
                <div id="tabsalpha">
                    <ul>
                     <li><a class="ui-link" href="#tabs-register">Register</a></li>
                        <li><a class="ui-link" href="#tabs-functions">Functions</a></li>
                        <li><a class="ui-link" href="#tabs-source">Source</a></li>
                        <li><a class="ui-link" href="#tabs-explore">Explore</a></li>
                        <li><a class="ui-link" href="#tabs-fetchxml">Fetch-Xml</a></li>
                    </ul>

				   <div id="tabs-register">

			    	  <div id="targetContainerRegister" class="target-Container-Register"  style="height: 98%; overflow: auto">

                      <div id="accordion"> 
				 
				        
                            <h5 style="background: none; border: none; outline:0; box-shadow: none;"> 
                                <a href="#">Formula Settings</a>
                            </h5> 

			              <div>      
					                      						
		    			    <div id="controlGroupFormulaName" class="control-group">
				    	      <label class="control-label required" for="formulaName">Name</label>
					             <div class="controls">
					            <input id="formulaName" name="formulaName" type="text" class="controls-input"  >
					            </div>
				    	    </div>
					 
					
					            <div id="controlGroupFormulaType" class="control-group">
					              <label class="control-label required" for="formulaType1">Formula Type</label> 
					              <div class="controls">
					                <select id="formulaType"  class="controls-input-select" onchange="North52.FormulaEditor.RegisterFormulaType(false)">
					                  <option value="217890005">Auto Number</option>
					                  <option value="217890000">Calculated Field</option>
					                  <option value="217890014">ClientSide - Calculation</option>
					                  <option value="217890015">ClientSide - Perform Action</option>
					                  <option value="217890017">Command Console</option>
					                  <option value="217890018">N:N Associate</option>
					                  <option value="217890019">N:N Disassociate</option>
					                  <option value="217890016">Process Genie</option>
					                  <option value="217890013">Save - Perform Action</option>
					                  <option value="217890003" selected>Save - To Current Record</option>
					                  <option value="217890001">Save - To Parent</option>
					                  <option value="217890004">Validation</option>
					     
					                </select>
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaMode" class="control-group">
					              <label class="control-label required" for="formulaMode">Mode</label>
					              <div class="controls">
					                <select id="formulaMode"  class="controls-input-select" onchange="North52.FormulaEditor.RegisterModeChange()">
					                  <option value="217890001">Client Side</option>
					                  <option value="217890002">Server Side</option>
					                  <option value="217890000">Client Side &amp; Server Side</option>
					                </select>
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaEvent" class="control-group">
					              <label class="control-label required" for="formulaEvent">Event</label>
					              <div class="controls">
					                <select id="formulaEvent" class="controls-input-select">
					                  <option value="217890000">Create</option>
					                  <option value="217890005">Create &amp; Delete</option>
					                  <option value="217890002">Create &amp; Update</option>
					                  <option value="217890004">Create, Update &amp; Delete</option>
					                  <option value="217890003">Delete</option>
					                  <option value="217890001">Update</option>
					                  <option value="217890006">Update &amp; Delete</option>
					                </select>
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaAutoNumber" class="control-group">
					              <label class="control-label required" for="formulaAutoNumber">Auto No. Value</label>
					              <div class="controls">
					                <input id="formulaAutoNumber" name="formulaAutoNumber" type="text" class="controls-input" onkeypress='return event.charCode >= 48 && event.charCode <= 57' onchange="North52.FormulaEditor.RegisterFieldSyncAutoNumber()" >
					    
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaDisplayFormat" class="control-group">
					              <label class="control-label required" for="formulaDisplayFormat">Display Format</label>
					              <div class="controls">
					                <select id="formulaDisplayFormat" class="controls-input-select"  onchange="North52.FormulaEditor.RegisterFieldSyncDisplayFormat()">
					                  <option value="217890006">Boolean</option>
					                  <option value="217890002">Currency</option>
					                  <option value="217890004">Date</option>
					                  <option value="217890001">Date &amp; Time</option>
					                  <option value="217890003">Decimal</option>
					                  <option value="217890000">String</option>
					                  <option value="217890005">Whole Number</option>
					                </select>
					              </div>
					            </div> 
					
					      </div>

					        <h5 style="background: none; border: none; outline:0; box-shadow: none;"> 
                                <a href="#">Source &amp; Target</a>
                             </h5> 
				           
                             <div>
					 
					            <div id="controlGroupFormulaSourceEntity" class="control-group">
					              <label class="control-label required" for="formulaSourceEntity">Source Entity</label>
					              <div id="loading-sourceentity" class="controls"> <img style="float: left;" id='loading-image-sourceentity' alt="Loading" src="north52_image_progress"> </div>
						
					              <div id="main-sourceentity">
					                 <select class="controls-input-select"  id="sourceentity" onchange="North52.SourceEntity.DropDownChanged(this.value,this[this.selectedIndex].text)"></select> </div>
					            </div>
					
					
					            <div id="controlGroupFormulaSourceProperty" class="control-group">
					              <label class="control-label required" for="formulaSourceProperty">Source Property</label>
					              <div id="loading-sourceproperty" class="controls"> <img style="float: left;" id='loading-image-sourceproperty' alt="Loading" src="north52_image_progress"> </div>
						            <div id="main-sourceproperty"><select class="controls-input-select" id="metadataproperty" onchange="North52.MetadataProperty.DropDownChanged(this.value)"  ondblclick="console.log(JSON.stringify(MetadataProperty.entityMetadata));" multiple="" size="10" name="metadataproperty" req="2" height="10"></select></div>
					            </div>

                                
					            <div id="controlGroupFormulaSourceRelationship" class="control-group">
					              <label class="control-label required" for="formulaSourceRelationship">Relationship</label>
					              <div class="controls">
					            <div id="loading-sourcerelationship"><img id='loading-image-sourcerelationship' alt="Loading" src="north52_image_progress"> </div>
					            <div id="Div1"><select class="controls-input-select" id="sourcerelationship" onchange="North52.SourceRelationship.DropDownChanged(this.value,true)"></select> </div>
					  
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaTargetEntity" class="control-group">
					              <label class="control-label required" for="formulaTargetEntity">Target Entity</label>
					              <div class="controls">
					                <div id="loading-targetentity"><img id='loading-image-targetentity' alt="Loading" src="north52_image_progress"> </div>
						            <div id="main"><select class="controls-input-select" id="targetentity" onchange="North52.TargetEntity.DropDownChanged(this.value)"></select> </div>
					              </div>
					            </div>
					
					
					            <div id="controlGroupFormulaTargetProperty" class="control-group">
					              <label class="control-label required" for="formulaTargetProperty">Target Property</label>
					              <div class="controls">
					            <div id="loading-targetproperty"><img id='loading-image-targetproperty' alt="Loading" src="north52_image_progress"> </div>
					            <div id="main"><select class="controls-input-select" id="targetproperty" onchange="North52.TargetProperty.DropDownChanged(this.value)"></select> </div>
					              </div>
					            </div>
					
					

                             </div>  
                       
                       
                        <h5 style="background: none; border: none; outline:0; box-shadow: none;">  
                                <a href="#">Deployment Settings</a>
                            </h5> 
                            
                            
                        <div> 
                        
                           <div id="controlGroupFormulaDeploymentSolution" class="control-group">
					              <label class="control-label required" for="formulaDeployment">Solution Deployment</label>
					              <div id="loading-formuladeploymentsolution" class="controls"> <img style="float: left;" id='loading-image-formuladeploymentsolution' alt="Loading" src="north52_image_progress"> </div>
						          <div id="main-formuladeploymentsolution">
					                 <select class="controls-input-select"  id="formulaDeploymentSolution" onchange="North52.DeploymentSolution.DropDownChanged(this.value)"></select> </div>
					        </div>
					             
					            <div id="controlGroupPipelineStage" class="control-group">
					              <label class="control-label required" for="formulaType1">Pipeline Stage</label> 
					              <div class="controls">
					                <select id="formulaPipelineStage"  class="controls-input-select"  >
					                  <option value="217890000">Pre-Validation</option>
					                  <option value="217890002" selected>Pre-Operation</option>
					                  <option value="217890001">Post-Operation</option>
					                </select>
					              </div>
					            </div>
					            
					            
					             <div id="controlGroupFormulaTraceLevel" class="control-group">
					              <label class="control-label required" for="formulaType1">Trace Level</label> 
					              <div class="controls">
					                <select id="formulaTraceLevel"  class="controls-input-select"  >
					                  <option value="217890000" selected>Off</option>
					                  <option value="217890001">Information</option>
					                  <option value="217890004">Information (Show Exception Details)</option>
					                  <option value="217890002">Error</option>
					                </select>
					              </div>
					            </div>
                        </div>
                       

                         <h5 style="background: none; border: none; outline:0; box-shadow: none;">  
                                <a href="#">Advanced Settings</a>
                            </h5> 

			              <div>      

					            
					        <div id="controlGroupFormulaCategory" class="control-group">
				    	      <label class="control-label" for="formulaCategory">Category</label>
					             <div class="controls">
					            <input id="formulaCategory" name="formulaCategory" type="text" class="controls-input"  >
					            </div>
				    	    </div>
					 
							<div id="controlGroupFormulaSubCategory" class="control-group">
				    	      <label class="control-label" for="formulaSubCategory">Sub-Category</label>
					             <div class="controls">
					            <input id="formulaSubCategory" name="formulaSubCategory" type="text" class="controls-input"  >
					            </div>
				    	    </div>
				    	    
				    	    
				    	    
				    	    <div id="controlGroupFormulaExecutionOrder" class="control-group">
				    	      <label class="control-label" for="formulaExecutionOrder">Execution Order</label>
					             <div class="controls">
					            <input id="formulaExecutionOrder" name="formulaExecutionOrder" type="text" class="controls-input"  >
					            </div>
				    	    </div>

                           
                             <div id="controlGroupFormulaClientSideSaveMode" class="control-group">
					              <label class="control-label" for="formulaSourceProperty">Client Side Save Mode</label>
					                <div id="controls">
					                <select class="controls-input-select" id="formulaClientSideSaveMode" onchange=""   multiple="" size="10"  req="2" height="10">
					                <option value="0" selected>All - Save Events</option> 
					                <option value="1">All - Save</option>
					                <option value="2">All - Save And Close</option>
					                <option value="59">All - Save And New</option>
					                <option value="70">All - Save Auto Save</option>
					                <option value="5">All - Deactivate</option>
					                <option value="6">All - Reactivate</option>
					                <option value="47">UserTeam - Assign</option>
					                <option value="7">Email - Send</option>
					                <option value="16">Lead - Qualify</option>
					                <option value="15">Lead - Disqualify</option>
					                <option value="58">Activities - Save As Completed</option>
					                </select></div>
					            </div>


							   <div id="controlGroupFormulaGetDataXml" class="control-group">
					              <label class="control-label" for="formulaGetDataXml">ClientSide Changed Data Generation</label> 
					              <div class="controls">
					                <select id="formulaGetDataXml"  class="controls-input-select"  >
					                  <option value="217890000" selected>Microsoft</option>
					                  <option value="217890001">North52</option>
					                </select>
					              </div>
					            </div>
					            
					            
					           <div id="controlGroupFormulaClientSideSyncAsync" class="control-group">
					              <label class="control-label" for="formulaClientSideSyncAsync">ClientSide Sync Or Async.</label> 
					              <div class="controls">
					                <select id="formulaClientSideSyncAsync"  class="controls-input-select"  >
					                  <option value="217890000" selected>Asynchronous but Synchronous for Saves</option>
					                  <option value="217890001">Synchronous</option>
					                  <option value="217890002">Asynchronous</option>
					                </select>
					              </div>
					            </div>
					            
					            <div id="controlGroupFormulaClientSidePreventDefaultAction" class="control-group">
					              <label class="control-label" for="formulaClientSidePreventDefaultAction">ClientSide Prevent Default Action</label> 
					              <div class="controls">
					                <select id="formulaClientSidePreventDefaultAction"  class="controls-input-select"  >
					                  <option value="217890000" selected>Yes</option>
					                  <option value="217890001">No</option>
					                </select>
					              </div>
					            </div>
					            
					            
					        <div id="controlGroupFormulaClientSidePayLoad" class="control-group">
					              <label class="control-label" for="formulaClientSidePayLoad">ClientSide Payload Tab</label>
					              <div id="loading-formulaclientsidepayload" class="controls"> <img style="float: left;" id='loading-image-clientsidepayload' alt="Loading" src="north52_image_progress"> </div>
						          <div id="main-formulaclientsidepayload">
					              <select class="controls-input-select"  id="formulaClientSidePayLoad" onchange="North52.ClientSidePayLoadTab.DropDownChanged(this.value)"></select> </div>
					        </div>   

					
					      </div>

					
					 </div>
					</div>
					
                    </div> <!---Tab--->
                    
                <div id="tabs-functions"> 
                
                 <div id="refreshContainer-functions"  class="refresh-container">
                                <input id="txtFind" class="controls-input" style="border:1px solid gray; width: 90%;" type="text" placeholder="Search functions..."  />
                                <input id="clearFunction" style="padding-left: 10px; padding-right: 3px;"  onclick="North52.FormulaEditor.ClearFunctions();"  type="image" src="north52_/css/image_clear" > 
                   </div>
                
                
                  <div id="targetContainer" style="height: 93%; overflow: auto">     

                  
                   
                   <ul id="treefunctions"> 
                    <li   class="folder"><a class="ui-link"><span>ClientSide</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Provides the ability to add a custom view to a lookup control. <br></br> <i>  AddCustomView('preferredsystemuserid', 'systemuser', 'Only users in Canada BU', GetFetchXML('CanadaUsers'), GetLayoutXML('CanadaUsers'), false)</i>">AddCustomView('controlname', 'entitylogicalname', 'nameofview', 'FetchXml', 'LayoutXml', 'isDefault')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Presents a pop-up alert to the user. <br></br> <i>   Alert('Enter any message here.')</i>">Alert('message')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Adds a pre filter lookup to the controlid. <br></br> <i>  AddPreFilterLookup('parentaccountid', 'ab5', 'fetchxml_fragment', 'account')</i>">AddPreFilterLookup('controlid', 'formulashortcode', 'filter', 'entityfilter')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the active business process for the current record <br></br> <i>    BPSetActiveProcess('Opportunity Sales Process')</i>">BPSetActiveProcess('processname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the active business process stage for the current record <br></br> <i>    BPSetActiveStage('Opportunity Sales Process', 'Develop')</i>">BPSetActiveStage('processname', 'stagename')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Moves the business process to the next stage  <br></br> <i>    BPMoveNextStage()</i>">BPMoveNextStage()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Moves the business process to the previous stage <br></br> <i>    BPMovePreviousNextStage()</i>">BPMovePreviousStage()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Remove a pre filter lookup to the controlid.  <br></br> <i>   RemovePreFilterLookup('parentaccountid')</i>">RemovePreFilterLookup('controlid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Presents a pop-up alert to the user and clears the listed fields. <br></br> <i>    AlertClear('Enter any message here.', 'description')</i>">AlertClear('message', 'fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Clears the contents of any fields. <br></br> <i>    ClearFields('name', 'description')</i>">ClearFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Clears the form notification. <br></br> <i>  ClearFormNotification('uniqueID') <br></br>Updated Entities for CRM 2013 Only.</i>">ClearFormNotification('uniqueID')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Clears the control notification. <br></br> <i>  ClearControlNotification('fieldname') <br></br>Updated Entities for CRM 2013 Only.</i>">ClearControlNotification('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Collapses a tab. <br></br> <i>    CollapseTabs('tab1', 'tab2')</i>">CollapseTabs('tab')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Disables one or more fields on a form.  <br></br> <i>   DisableFields('name', 'description') <br></br>  DisableFields('*')</i>">DisableFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Enables one or more fields on a form. <br></br> <i>    EnableFields('name', 'description') <br></br>  EnableFields('*')</i>">EnableFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Expands a tab. <br></br> <i>    ExpandTabs('tab1', 'tab2')</i>">ExpandTabs('tab')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Executes a dialog.<br></br> <i>  ExecuteDialog('Onboard Client')</i>">ExecuteDialog('dialogname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Executes a workflow. <br></br> <i>    ExecuteWorkflow('Onboard Prospect', '873489c-992f-22db-8454-0800255c9a55')</i>">ExecuteWorkflow('workflowname', 'recordguid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Hides one or more fields on a form.  <br></br> <i>   HideFields('name', 'description')</i>">HideFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Hides one or more left hand navigation items. <br></br> Note: You need to refer to the nav item id of the link, so use F12 developer tools in IE to get this.<br></br> <i>   HideLeftHandNavItems('navcontacts', 'navorders')</i>">HideLeftHandNavItems('navname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Hides one or more sections on a form.  <br></br> <i>   HideSections('general.notes', 'general.contact')</i>">HideSections('tabname.sectionname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Hides one or more tabs on a form. <br></br> <i>    HideTabs('general', 'administrative')</i>">HideTabs('tabname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Executes multiple client side actions. <br></br> <i>    MultipleClientSide(SetClientSideField('lastname', 'Test'), DisableFields('firstname', 'lastname'), ClearFields('firstname'))</i>">MultipleClientSide('action1', 'action2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Opens a new window given a url">OpenWindow('url')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Opens a new entity form <br></br> e.g. Open a specific record <i>OpenEntityForm('account', '10124ac3-0f6f-40dd-be64-d8c0bc5dbfbd') </i><br></br> e.g. Open a new account record <i> OpenEntityForm('account', 'null') </i>">OpenEntityForm('name', 'id')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Refresh the form. Add true to save any data otherwise false <br></br> <i>    RefreshForm('true')</i>">RefreshForm('boolean')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Refresh a subgrid. <br></br> <i>    RefreshSubGrid('gridname')</i>">RefreshSubGrid('gridname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Refresh a web-resource.  <br></br> <i>   RefreshWebResource('IFRAME_webpage')</i>">RefreshWebResource('webresource')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Selects a given form. The input parameter is the index number of the list of forms, starting at zero <br></br> <i>    SelectForm('0')</i>">SelectForm('formid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Set a field on the client side.  <br></br>  Shows how to set all field types except lookups <i>e.g. SetClientSideField('lastname', 'Gates'),</i> <br></br> Shows how to set lookup fields e.g. <i> SetClientSideField('parentcustomerid', 'account', '10124ac3-0f6f-40dd-be64-d8c0bc5dbfbd', 'Microsoft' )</i>">SetClientSideField('fieldname', 'fieldvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Set a field to the data it has plus some new data.  <br></br> <i>   SetClientSideFieldAppend('description', ' Hello from North52')</i>">SetClientSideFieldAppend('fieldname', 'datatoappend')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets a control notification. <br></br> <i>   SetControlNotification('accountnumber', 'Please enter an account number') <br></br>Updated Entities for CRM 2013 Only.</i>">SetControlNotification('fieldname', 'message' )</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Set a default view.  <br></br><i> SetDefaultView('customerid', '630dd379c-ee2f-11db-8314-0800200c9a5')</i>">SetDefaultView('lookup', 'viewid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the form notification. <br></br>  The level parameters are ERROR, WARNING, INFO.  <br></br><i> SetFormNotification('Account over due', 'WARNING, '1') <br></br>Updated Entities for CRM 2013 Only.</i>">SetFormNotification('message', 'level', 'uniqueID')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Set the focus on a field. <br></br> <i>    SetFocus('description')</i>">SetFocus('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Set an iframe.  <br></br> <i>   SetIFrame('IFRAME_web', 'http://www.microsoft.com')</i>">SetIFrame('iframecontrol', 'websiteaddress')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets one or more fields to be required.  <br></br> <i>   SetRequiredFields('name', 'description')</i>">SetRequiredFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets one or more fields to be not required. <br></br> <i>    SetNotRequiredFields('name', 'description')</i>">SetNotRequiredFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the available picklist values. <br></br> Primarily used to filter picklist when they are dependent on another field.<br></br> The first parameter is the optionset field name, the second is a boolean which if true will include an empty option set value. <br>For records with no saved optionset value the first item in the list will be the default if the empty parameter does not exist.    <br></br>Then you can pass in a list of optionset values, only these will display in the picklist. <br></br> <i>  SetPicklistValues('address1_shippingmethodcode', 'true', 1,2,3)</i>">SetPicklistValues('field', 'emptyvalue', 'optionsetvalue', 'optionsetvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shows one or more fields on a form.  <br></br> <i>   ShowFields('name', 'description')</i>">ShowFields('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shows one or more left hand navigation items.<br></br> Note: You need to refer to the nav item id of the link, so use F12 developer tools in IE to get this. <br></br> <i>    ShowLeftHandNavItems('navcontacts', 'navorders')</i>">ShowLeftHandNavItems('navname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shows one or more sections on a form. <br></br> <i>    ShowSections('general.notes', 'general.contact')</i>">ShowSections('tabname.sectionname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shows one or more tabs on a form.  <br></br> <i>   ShowTabs('general', 'administrative')</i>">ShowTabs('tabname')</span></a></li>                          
                        </ul> 
                    </li> 
                    <li   class="folder"><a class="ui-link"><span>Conversion</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a decimal which is the conversation of the 'stringvalue' from a string to a decimal. <br></br> <i>    CDecimal('4.0') Returns 4.0</i>">CDecimal('stringvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a int 32 which is the conversation of the decimal 'value'. <br></br> <i>   CDecimalToInt32(9.23) Returns 9</i>">CDecimalToInt32('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a double which is the conversation of the 'stringvalue' from a string to a double. <br></br> <i>    CDouble('4.0') Returns 4.0</i>">CDouble('stringvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a int 32 which is the conversation of the float 'value'. <br></br> <i>   CFloatToInt32(9.23) Returns 9</i>">CFloatToInt32('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a int 32 which is the conversation of the 'stringvalue' from a string to a int. <br></br> <i>   CInt32('4') Returns 4</i>">CInt32('stringvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a int 64 which is the conversation of the 'stringvalue' from a string to a int. <br></br> <i>   CInt64('9') Returns 9</i>">CInt64('stringvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns an OptionSetValue <br></br> <i>   COptionSetValue('9')</i>">COptionSetValue('stringvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a string representation of any number, decimal, currency or boolean value. An optional format may also be applied.  <br></br> <i>   ToString(99) Returns '99' <br></br>  ToString(LocalDate(), 'MMM-yyyy') Returns 'DEC-2011'</i>">ToString('valuetoconvert', 'format')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a string of XML from the Node (i.e. an XML Element) ">CNodeToXml('node')</span></a></li>
                        </ul> 
                    </li> 
                    <li   class="folder"><a class="ui-link"><span>Date</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of days parameter to the given date. <br></br> <i>   AddDays('02/23/2012', 4) Returns 02/27/2012 (US Format)</i>">AddDays('datetime', 'numberofdays')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of hours parameter to the given date. <br></br> <i>   AddHours('02/23/2012 00:00:00', 4) Returns 02/23/2012 04:00:00 (US Format)</i>">AddHours('datetime', 'numberofhours')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of months parameter to the given date. <br></br> <i>   AddMonths('04/15/2012', 3) Returns 07/15/2012 (US Format)</i>">AddMonths('datetime', numberofmonths)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of minutes parameter to the given date. <br></br> <i>   AddMinutes('04/15/2012', 10) Returns 04/15/2012 : 12:10:00 (US Format)</i>">AddMinutes('datetime', 'numberofminutes')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of seconds parameter to the given date. <br></br> <i>   AddSeconds('04/15/2012', 30) Returns 07/15/2012 : 12:00:30 (US Format)</i>">AddSeconds('datetime', 'numberofseconds')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date which is calculated by adding the number of years parameter to the given date. <br></br> <i>   AddYears('08/13/2012', 2) Returns 08/13/2014 (US Format)</i>">AddYears('datetime', 'numberofyears')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a date (UTC) given a set of inputs.  <br></br><i> CreateDate(2008, 2, 5, 0, 0, 0, 0) Returns '2008/02/05'</i>">CreateDate('year','month','day', 'hour','minute','second','millisecond')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Calculate the difference in time between 2 dates for a specified interval.<br></br> <br></br>Inputs: <br></br>-From Date <br></br>-To Date <br></br>-Interval ('y'- Years, 'q'- Quarters, 'm'- Months, 'pm' - Months, 'w'- Weeks, 'd'- Days, 'wd'- Weekdays, 'h'- Hours, 'mi'- Minutes, 's'- Seconds) <br></br>   <br></br> <i> DateDiff('11/08/2009', '03/20/2011', 'm') Returns 16 (US Format) <br></br>DateDiff('03/03/2009', '06/01/2009', 'pm') Returns 4 as there are 4 period months (US Format)</i>">DateDiff('fromdate', 'todate', 'interval')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Calculate the elapsed difference in time between 2 dates for a specified interval.<br></br> <br></br>Inputs: <br></br>-From Date <br></br>-To Date <br></br>-Interval ('y'- Years, 'm'- Months, 'q'- Days, 'h'- Hours, 'mi'- Minutes, 's'- Seconds)  <br></br> <i>   <br></br>DateDiffElapsed('11/08/2009', '03/20/2011', 'm') Returns 4 (US Format) </i>">DateDiffElapsed('fromdate', 'todate', 'interval')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Calculate the elapsed description difference in time between 2 dates for a specified interval.<br></br> <br></br>Inputs: <br></br>-From Date <br></br>-To Date <br></br>-Interval ('y'- Years, 'm'- Months, 'd'- Days, 'h'- Hours, 'mi'- Minutes, 's'- Seconds)  <br></br> <i>   <br></br>DateDiffDescription('11/08/2009', '03/20/2011', 'd') Returns 1 Year 4 Months 12 Days</i>">DateDiffDescription('fromdate', 'todate', 'interval')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the number of working days between two dates. <br></br>Uses a Monday - Friday work week by default and the records defined in the business close calendar within CRM.  <br></br> <i>    DiffWorkingDays('12/18/2012', '12/21/2012')  Returns 3</i>">DiffWorkingDays('startdate', 'enddate')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the date only part of a datetime.  <br></br><i> GetDateOnly('01/18/2012 16:34:54') Returns '01/18/2012' (US Format)</i>">GetDateOnly('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the day part of a datetime.   <br></br><i> GetDay('01/18/2012') Returns 18 (US Format)</i>">GetDay('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the day name for the given datetime.   <br></br><i> GetDayOfWeekName('01/01/2015') Returns Thursday</i>">GetDayOfWeekName('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the day number for the given datetime.   <br></br><i> GetDayOfWeekNumber('01/01/2015') Returns 4 </i>">GetDayOfWeekNumber('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the number of days in the given month. <br></br> <i>    GetDaysInMonth('01/01/2012')  Returns 31</i>">GetDaysInMonth('datetime')</span></a></li> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the first day of the month given a date. Optional parameter to add a number of months to input date. <br></br> <i>    GetFirstDayOfMonth('01/01/2012', 3)  Returns 04/01/2012</i>">GetFirstDayOfMonth('datetime', 'addmonths')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the last day of the month given a date. Optional parameter to add a number of months to input date. <br></br> <i>    GetLastDayOfMonth('01/01/2012', 2)  Returns 03/31/2012</i>">GetLastDayOfMonth('datetime', 'addmonths')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the first day of the week given a date.  <br></br> <i>    GetFirstDayOfWeek('09/09/2015')  Returns 06/09/2015</i>">GetFirstDayOfWeek('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the month part of a datetime.   <br></br> <i> GetMonth('01/18/2012') Returns 1 (US Format)</i></i>">GetMonth('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the next working day given a date to start from. <br></br>Uses a Monday - Friday work week by default and the records defined in the business close calendar within CRM.  <br></br> <i>    GetNextWorkingDay('12/20/2012')  Returns 12/21/2012 (US Format)</i>">GetNextWorkingDay('startdate')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the next working time given a date to start from and a number of minutes to increment by. <br></br>Uses a Monday - Friday work week by default and the records defined in the business close calendar within CRM. <br></br> <i>    GetNextWorkingTime('12/20/2012 16:00:00', true, '9:30', '17:00', 90)  Returns 12/21/2012 10:00:00  (US Format)</i>">GetNextWorkingTime('startdate', 'useBusinessCalendar', 'DayStartTime', 'DayEndTime', 'NumberOfMins')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the year part of a datetime.  <br></br> <i>  GetYear('01/18/2012') Returns 2012 (US Format</i>">GetYear('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the week number for the specified date. The week number will be as defined by the ISO 8601 standard.  <br></br> <i>  GetWeek('01/18/2012') Returns 3 (US Format)</i>">GetWeek('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the elapsed week number for the specified date. <br></br>The week number will be as defined as a simple division of 7 over the number of days since Jan 01. <br></br> <i>    GetWeekElapsed('12/31/2012') Returns 52 (US Format)</i>">GetWeekElapsed('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true or false if the given date is a leap year. <br></br> <i>    IsLeapYear('01/01/2012')  Returns true">IsLeapYear('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if the passed date is a working day. <br></br>Uses a Monday - Friday work week by default and the records defined in the business close calendar within CRM.  <br></br> <i>    IsWorkingDay('06/04/2012')  Returns true</i>">IsWorkingDay('datetocheck')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the current date for the timezone that is set for the requesting user. You can also pass in an an integer timezone parameter <br></br> <i>    LocalDate()  Returns 06/04/2012 <br></br>   LocalDate(35)  Returns 06/04/2012 Eastern Time</i>">LocalDate()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the current date and time for the timezone that is set for the requesting user. You can also pass in an an integer timezone parameter <br></br> <i>    LocalDateTime() Returns 06/04/2012 21:43 <br></br>   LocalDateTime(35) Returns 06/04/2012 16:43</i>">LocalDateTime()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the date and time given a UTC datetime for the timezone that is set for the requesting user. <br></br> <i>    LocalTimeFromUtcTime('06/04/2012 21:43') Returns 06/04/2012 23:43</i>">LocalTimeFromUtcTime('datetime')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the current UTC date. <br></br> <i>    UtcDate() Returns 06/04/2012</i>">UtcDate()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the current UTC date and time. <br></br> <i>    UtcDateTime() Returns 06/04/2012 21:43</i>">UtcDateTime()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the current UTC time given a date and time that is local to a specified user. <br></br> <i>    UtcTimeFromLocalTime('06/04/2012 21:43')  Returns 06/04/2012 20:43</i>">UtcTimeFromLocalTime('datetime')</span></a></li> 

                        </ul> 
                    </li> 
                     
                   <li   class="folder"><a class="ui-link"><span>Find (Single Values)</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="">*** Single Value Functions ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the average value of the 'outputfieldname' for the records specified by the input parameters. <br></br> e.g Returns the value of the average estimatedvalue of all opportunities for a customer.<br></br> <i> FindAvg('opportunity', 'customerid', [account.accountid], 'estimatedvalue', '0', false)</i>">FindAvg('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the number of records specified by the input parameters.  <br></br> <i>  e.g Returns the count of all opportunities for a customer.<br></br> <i> FindCount('opportunity', 'customerid', [account.accountid], 'estimatedvalue', '0', false)</i>">FindCount('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a comma seperated list of values on an entity based on 1 input field.  <br></br>Note that the recordcount parameter is optional (default is 50).  <br></br>  Find a list of account names that have an address1_city value of seattle.  <br></br> <i> FindListValues('account', 'address1_city', 'seattle', 'name') Returns 'Bungie, Expedia, Microsoft' </i> <br></br>  Find a list of account names with no filters applied.  <br></br> <i> FindListValues('account', '*', '*', 'name') Returns 'Abbott, Acer, Apple'</i>">FindListValues('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'recordcount')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the maximum value of the 'outputfieldname' for the records specified by the input parameters.<br></br> e.g Returns the value of the max estimatedvalue of all opportunities for a customer.<br></br> <i> FindMax('opportunity', 'customerid', [account.accountid], 'estimatedvalue', '0', false)</i>">FindMax('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the minimum value of the 'outputfieldname' for the records specified by the input parameters.<br></br> e.g Returns the value of the min estimatedvalue of all opportunities for a customer. <br></br> <i>FindMin('opportunity', 'customerid', [account.accountid], 'estimatedvalue', '0', false)</i>">FindMin('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Sum of the 'outputfieldname' for the records specified by the input parameters.<br></br> e.g Returns sum of all opportunities for a customer. <br></br> <i>FindSum('opportunity', 'customerid', [account.accountid], 'estimatedvalue', '0', false)</i>">FindSum('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a value in any property on any entity based on 1 input field. Note that the defaultvalue parameter is optional. <br></br>  Find on the account entity the description property where the name equals Microsoft. <br></br> <i>FindValue('account', 'name', 'Microsoft', 'description', 'Not Found', false) Returns 'Microsofts Dynamics CRM Rocks.' </i><br></br>  You can also pass in parameters to the function <br></br><i>FindValue('account', 'name', [account.parentaccountname], 'description', 'Not Found') Returns 'North52 Formula Manager Rocks.'</i> <br></br> You can search based on multiple input parameters. <i><br></br> FindValue('account', SetFindAnd('name', 'accountnumber'), SetFindAnd('north52', 'Acc-100452'), 'description') <br></br>Note 1: By default the nolock parameter is set to false</br>Note 2: By default the cacheenabled parameter is set to true. When using formulas of type Process Genie it may be useful to set this parameter to false if you need to bypass the cache and go directly to the database each time it is invoked within the lifetime of the workflow.</i>">FindValue('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'outputfieldname','defaultvalue', 'nolock', 'cacheenabled')</span></a></li> 
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="">*** Single Value Functions (FetchXml) ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the value of the 'fieldname' for the first row in the set of records specified by the fetch-xml.<br></br> e.g Returns the estimated revenue for the supplied fetchxml. <br></br> <i>FindValueFD('OpenOpportunities', 'estimatedrevenue', '0', false)</i>">FindValueFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="">*** Single Value Agg. Functions (FetchXml) ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the average value of the 'fieldname' for the records specified by the fetch-xml.<br></br> e.g Returns the value of the average estimatedvalue of all opportunities for a customer. <br></br> <i>FindAvgFD('OpenOpportunities', 'estimatedrevenue', '0', false, SetParams('param1', 'param2'))</i>">FindAvgFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the number of records as specified by the fetch-xml. <br></br> e.g Returns the count of all opportunities. <br></br> <i>FindCountFD('OpenOpportunities', 'estimatedrevenue', '0', false, SetParams('param1', 'param2'))</i>">FindCountFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the maximum value of the 'fieldname' for the records specified by the fetch-xml.<br></br> e.g Returns the value of the max estimatedvalue of all opportunities for a customer. <br></br> <i>FindMaxFD('OpenOpportunities', 'estimatedrevenue', '0', false, SetParams('param1', 'param2'))</i>">FindMaxFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the minimum value of the 'fieldname' for the records specified by the fetch-xml.<br></br> e.g Returns the value of the min estimatedvalue of all opportunities for a customer. <br></br> <i>FindMinFD('OpenOpportunities', 'estimatedrevenue', '0', false, SetParams('param1', 'param2'))</i>">FindMinFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Sum of the 'fieldname' for the records specified by the fetch-xml.<br></br> e.g Returns sum of all opportunities for a customer. <br></br> <i>FindSumFD('OpenOpportunities', 'estimatedrevenue', '0', false, SetParams('param1', 'param2'))</i>">FindSumFD('formuladetailname', 'fieldname', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="">*** Business Process Functions ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Business Process ID of the given process name.<br></br> <i> FindBPProcessID('Opportunity Sales Process')</i>">FindBPProcessID('business process name')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Business Process Stage ID of the given process name and stage.<br></br> <i> FindBPGetStageID('Opportunity Sales Process', 'Develop')</i>">FindBPGetStageID('business process name', 'stage name')</span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="">*** Misc. ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Find a template ID based on a name and language code<br></br> <i> FindTemplateId('Sales Quote', '1033')</i>">FindTemplateId('name', 'languagecode')</span></a></li>      				 
              			     	<li class="file"><a class="ui-link"><span class="helpId" title="Builds multiple 'And' conditions for a fetch-xml filter. Only used with Find functions.<br></br> <i>FindValue('opportunity', SetFindAnd('accountid', 'address1_city'), SetFindAnd([account.accountid], [account.address1_city]), 'budgetamount'</i>">SetFindAnd('field1', 'field2', 'field3')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Build the list of attributes to retrieve on a Find function. Using a '*' brings back all attributes<br></br> <i>SetFindSelect('name', 'description', 'address1_city')</i>">SetFindSelect('field1', 'field2')</span></a></li>
               
                        </ul> 
                    </li> 

                     <li   class="folder"><a class="ui-link"><span>Find (EntityCollections)</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a collection of records. <br></br>  Find a list of accounts with description set to North52. <br></br> <i>FindRecords('account', 'description', 'north52', '*', '50', true)</i> <br></br> Note you can use the following function to bring back limited fields <i>SetFindSelect('name', 'description')</i>">FindRecords('entitylogicalname', 'inputfieldname', 'inputfieldvalue', 'selectfields', 'recordcount')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a collection of records as defined by the fetchxml defined within a formula detail record. <br></br>  Find a list of contacts with a parent company filtering by the city field of the current contact. <br></br> <i>FindRecordsFD('ContactsWithParents', true, SetParams([contact.address1_city]))</i>">FindRecordsFD('formuladetail', 'nolock', SetParams('param1', 'param2'))</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a collection of records as defined by the raw fetchxml passed into the function.<br></br><i>FindRecordsFetchXml('enter_your_raw_fetchxml_here')</i>">FindRecordsFetchXml('fetchxml')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Finds a specific field value in an entity collection.<br></br><i>FindRecordsValue(GerVar('AccountListing'), 'description', 'Not Set', '0' )</i>">FindRecordsValue('entitycollection', 'fieldname', 'defaultvalue', 'rownumber' )</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the count of rows in the entity collection.<br></br><i>FindECCount(GerVar('AccountListing'))</i>">FindECCount('entitycollection')</span></a></li>
                        </ul> 
                    </li> 

                     <li   class="folder"><a class="ui-link"><span>Fuzzy Matching</span></a> 
                        <ul> 
                               <li class="file"><a class="ui-link"><span class="helpId" title="Computes the Damerau Levenshtein Distance Distance between 2 string. Used for fuzzy matching. <br></br> <i>  DamerauLevenshteinDistance('microsoft', 'microsft') Returns 1</i>">DamerauLevenshteinDistance('inputstring1', 'inputstring2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Computes the Levenshtein Distance between 2 string. Used for fuzzy matching. <br></br> <i>  LevenshteinDistance('microsoft', 'microsft') Returns 1</i>">LevenshteinDistance('inputstring1', 'inputstring2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a phonetic 'sounds like' encoding of a string. This is typcial used for de-duplication purposes.<br></br> <i>  Metaphone3('Smith')  Returns 'SM0' </i><br></br>  Possible to get a secondary metaphone as well which helps for non-english  <i> Metaphone3('Smith', 'Secondary')</i>">Metaphone3('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a percentage of how alike 2 strings are given the distance between. <br></br> <i> Similarity('microsoft', 'microoft', 1) Returns 0.8888889</i>">Similarity('inputstring1', 'inputstring2', 'distance')</span></a></li>
                        </ul> 
                    </li> 

                     <li   class="folder"><a class="ui-link"><span>HTML</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generate a HTML table based on the supplied entity collection (rows of data) and CSS. <br></br> <i>CreateHtmlTable(</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FindRecordsFD('RetrieveFailedSystemJobsToday'), </br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetColumnOrder('name', 'startedon', 'regardingobjectid', 'ownerid', 'statecode', 'statuscode', 'operationtype'),</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'https://north52.crm4.dynamics.com/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'north52_/css/htmltable')</i>">CreateHTMLTable('entitycollection', 'SetColumnOrder(field1, field2)', 'baseurl', 'cssref')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generate a HTML table of the Audit Trail for a particular record. <br></br> <i>  FindRecordsAuditHtml('account', '10124ac3-0f6f-40dd-be64-d8c0bc5dbfbd', 7)</i>">FindRecordsAuditHtml('entityname', 'recordguid', 'lastnumberofdays')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generates a raw hyper link url as a string.  <br></br> <i>LinkRawUrl('https://north52.crm4.dynamics.com', 'account', '00124ac3-0f6f-40dd-be64-d8c0bc5dbfbd')</i>">LinkRawUrl('baseurl', 'entityname', 'recordguid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generates a hyper link to be used in a Dialog Process. Typically used to display a link to a CRM record.  <br></br> <i> LinkDialogUrl('https://north52.crm4.dynamics.com', 'account', '00124ac3-0f6f-40dd-be64-d8c0bc5dbfbd', 'Microsoft') </i>">LinkDialogUrl('baseurl', 'entityname', 'recordguid', 'displaytext')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generates a hyper link url. Typically used in emails so receipients can click on a link. <br></br> <i>  LinkHyperLinkUrl('https://north52.crm4.dynamics.com', 'account', '00124ac3-0f6f-40dd-be64-d8c0bc5dbfbd', 'Microsoft')</i>">LinkHyperLinkUrl('baseurl', 'entityname', 'recordguid', 'displaytext')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Takes a field with Html within it and removes all the Html.  <br></br> <i>  StripHtml([email.description])</i>">StripHtml('inputstring')</span></a></li>
                       </ul> 
                    </li> 


                 <li   class="folder"><a class="ui-link"><span>Localization</span></a> 
                        <ul> 
                               <li class="file"><a class="ui-link"><span class="helpId" title="Returns the localized string name for the attribute defined by 'entitylogicalname.attributelogicalname' based on the langauge settings for the current user.  <br></br> <i> GetAttributeDisplayName('account.name') Returns 'Account Name'</i>">GetAttributeDisplayName('entitylogicalname.attributelogicalname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the localized string name for the optionset defined by 'entitylogicalname.attributelogicalname' and optionsetvalue based on the langauge settings for the current user.  <br></br> <i> GetOptionSetName('opportunity.rating', 1) Returns 'Hot'</i>">GetOptionSetName('entitylogicalname.attributelogicalname', 'optionsetvalue')</span></a></li>
                        </ul> 
                    </li> 

                    

                      <li   class="folder"><a class="ui-link"><span>Logical</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Builds a CASE statment which allows you to perform different actions based on conditions.<br></br><i>See the Snippets menu for an example or xRM Sample 92.</i>">Case('Lookup under the Snippets menu')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Build an if statement. <br></br><i>if([account.name] = 'North52', 'Great to be North52', 'Not North52')</i>">if(expression, true, false)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Build an iftrue statement. <br></br><i>iftrue([account.name] = 'North52', 'Great to be North52')</i>">iftrue(expression, true)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Used as part of an if statement to indicate 'No Operation' i.e. do nothing. <br></br><i>Use the search function to see examples.</i>">'NoOp'</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true a value is found within the set of values. <br></br><i>If( In([account.name], 'Microsoft', 'North52'),  true, false )</i>">In('ValueToCheck', 'value1', 'value2', 'value3')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Determines if expressions are true or false. Returns TRUE if any expression is true. Returns FALSE if all expressions are false. <br></br><i>Use the search function to see examples.</i>">or</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a TRUE response if all values are true; returns a FALSE response if one or more values are false. <br></br><i>Use the search function to see examples.</i>">and</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Calculates the sum of two values. . <br></br><i>Alternatively concat string together  'Dynamics' + 'CRM' + ' Rocks'<i>">+</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Calculates the difference of two values. <br></br><i>Use the search function to see examples.</i>">-</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Divides two values. <br></br><i>Use the search function to see examples.</i>">/</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Multiplies two values">*</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a remainder after a number is divided by a specified divisor. i.e. Mod Function.  <br></br><i>10 % 3 is 1 </i>">%</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Negates what it is applied to. Like a Not operator. <br></br><i>Returns false !true</i>">!</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Evaluates if two values are equivalent. <br></br><i>Use the search function to see examples.</i>">=</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Evaluates if two values are not equivalent. <br></br><i>The field account name does not equal North52<br></br>[account.name] != 'North52'</i>">!=</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Evaluates if a value is less than the value that follows this symbol. <br></br><i>Returns true if the field creditamount is less than 100<br></br>[account.creditamount] < 100</i>">&lt;</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Evaluates if a value is greater than the value that follows this symbol. <br></br><i>Returns true if the field creditamount is greater than 100<br></br>[account.creditamount] > 100</i>">&gt;</span></a></li>
                          </ul> 
                     
                      </li>
                      <li   class="folder"><a class="ui-link"><span>Loop</span></a> 
                        <ul> 

                                <li class="file"><a class="ui-link"><b><span title="Loop">*** DoLoop ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Builds a DoLoop statement that executes a single action.  <br></br><i>  DoLoop(3, <br>&nbsp;&nbsp;&nbsp;&nbsp;CreateRecord('account',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetAttribute('name', 'Account:' + DoLoopIndex())</br>&nbsp;&nbsp;&nbsp;)</br>)  <br></br> Creates 3 account records.   <br></br> The function DoLoopIndex() allows you to access an integer containing the current index number of the loop.<br></br>The function DoLoopTotal() allows you to access an integer containing the total number of loops.</i>">DoLoop('iterationcount', 'action')</span></a></li>
                            
                                <li class="file"><a class="ui-link"><span class="helpId" title="This function allows you to access an integer containing the current index number of the loop. <br></br><i>Use the search function to see examples.</i>">DoLoopIndex()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="This function allows you to access an integer containing the total number of loops. <br></br><i>Use the search function to see examples.</i>">DoLoopTotal()</span></a></li>

                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="ForEachRecord">*** ForEachRecord ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Iterates over a set of records and performs an action <br></br>  Delete all contacts that start with the letter A.  <br></br> <i> ForEachRecord(</br>&nbsp;&nbsp;&nbsp;FindRecordsFD('AllContactsStartingWithA' ),</br>&nbsp;&nbsp;&nbsp; DeleteRecord('contact', CurrentRecord('contactid')</br>&nbsp;&nbsp;&nbsp;)</br>)</i>  <br></br> The function RecordIndex() allows you to access an integer containing the current index number of the loop.<br></br>The function RecordTotal() allows you to access an integer containing the total number of loops. <br></br>The function CurrentRecord() allows you to access an the entity object of the current loop. ">ForEachRecord('entitycollection', 'action1', 'action2')</span></a></li>
                    
                                <li class="file"><a class="ui-link"><span class="helpId" title="This function allows you to access a field within the current record loop. <br></br><i>Use the search function to see examples.</i>">CurrentRecord('fieldname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to access an integer containing the current index number of the loop. <br></br><i>Use the search function to see examples.</i>">RecordIndex()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to access an integer containing the total number of loops. <br></br><i>Use the search function to see examples.</i>">RecordTotal()</span></a></li>
                         </ul> 
                       </li> 

                       <li   class="folder"><a class="ui-link"><span>Math</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the absolute value of a specified number. The absolute value is the number without its postive or negative sign.  <br></br> <i>  Abs(-100) Returns 100</i>">Abs(value)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Rounds a number up to the nearest integer.  <br></br> <i> Ceiling(34.4) Returns 35</i>">Ceiling('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a value for e raised to the power of a number you specified.  <br></br> <i> Exp(2) Returns 7.38905609893065</i>">Exp('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a number rounded down to the nearest integer.  <br></br> <i> Floor(34.4) Returns 34</i>">Floor('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Greatest common divisor of two numbers. Also known as Greatest Common Factor (GCF), or Highest Common Factor (HCF).  <br></br> <i>  GCD(12,18) Returns 6</i>">GCD('num1', 'num2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the Lowest common multiper of two numbers.  <br></br> <i>  LCM(12,18) Returns 36</i>">LCM('num1', 'num2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the maximum of two numbers.  <br></br> <i> MaxOf(100, 200) Returns 200</i>">MaxOf('number1', 'number2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the minimum of two numbers.  <br></br> <i> MinOf(100, 200) Returns 100</i>">MinOf('number1', 'number2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a specified number raised to the specified power. <br></br> <i> Pow(5,3) Returns 125</i>">Pow('value', 'power')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Rounds a value to the nearest number or specified number of digits.  <br></br> <i> Round(123.47676, 2) Returns 123.48</i>">Round('value', 'digitprecision')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="It returns one of three values: -1, 0 or 1. It returns -1 when the numeric value is negative; it returns 0 if the numeric value is zero; and it returns 1 if the numeric value is positive.  <br></br> <i>  Sign(44)  Returns 1</i>">Sign('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the square root of a specified number.  <br></br> <i>  Sqrt(100) Returns 10</i>">Sqrt('value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the integral digits of the specified Decimal; any fractional digits are discarded.   <br></br> <i>Truncate(2.91) Returns 2</i>">Truncate('value')</span></a></li>
                        </ul> 
                    </li> 
                   <li   class="folder"><a class="ui-link"><span>Platform Operations</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Creates a N:N relationship between 2 records. <br></br><i>AssociateEntities('account', '90dd379c-ee2f-11db-5555-0800200c9a55', 'lead', '30dd379c-4444-11db-8314-0800200c9a55', 'new_accountleads')</i>">AssociateEntities('entityNameLeft', 'entityLeftGuid', 'entityNameRight', 'entityRightGuid', 'relationshipName')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes a N:N relationship between 2 records. <br></br><i>DisAssociateEntities('account', '90dd379c-ee2f-11db-5555-0800200c9a55', 'lead', '30dd379c-4444-11db-8314-0800200c9a55', 'new_accountleads')</i>">DisAssociateEntities('entityNameLeft', 'entityLeftGuid', 'entityNameRight', 'entityRightGuid', 'relationshipName')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Executes a workflow.  <br></br> <i> ExecuteWorkflow('Onboard Prospect', '30dd379c-ee2f-11db-8314-0800200c9a55')</i>">ExecuteWorkflow('workflowname', 'recordid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Executes a Action.  <br></br> <i> ExecuteAction('new_approve',</br>&nbsp;&nbsp;&nbsp; 'opportunity',</br>&nbsp;&nbsp;&nbsp; [opportunity.opportunityid],</br>&nbsp;&nbsp;&nbsp; SetAttributeActionLookup('emailto', 'EntityReference', 'systemuser','77dd379c-ee2f-11db-8314-0800200c9a55'),</br>&nbsp;&nbsp;&nbsp; SetAttributeAction('creditlimit', 'Money', '1000')</br>) </i>">ExecuteAction('actionname', 'entitylogicalname', 'recordid', 'param1', 'param2', 'param3')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generate Invoice From Opportunity.<br>Returns the Guid of the Invoice. <br></br><i>GenerateInvoiceFromOpportunity('90dd379c-ee2f-11db-5555-0800200c9a55')</i>">GenerateInvoiceFromOpportunity('opportunityid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generate Quote From Opportunity. <br>Returns the Guid of the Quote. <br></br><i>GenerateQuoteFromOpportunity('90dd379c-ee2f-11db-5555-0800200c9a55')</i>">GenerateQuoteFromOpportunity('opportunityid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Generate SalesOrder From Opportunity. <br>Returns the Guid of the SalesOrder. <br></br><i>GenerateSalesOrderFromOpportunity('90dd379c-ee2f-11db-5555-0800200c9a55')</i>">GenerateSalesOrderFromOpportunity('opportunityid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Get the action output parameter from an executed action. <br></br><i>Use the search function to see examples.</i> ">GetActionOutputParameter('executeaction', 'outputparametername', 'defaultname')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the guid of the related entity in a N:N relationship. <br></br><i>Use the search function to see examples.</i>">GetAssociationRelatedEntityReferenceId()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the name of the N:N relationship. <br></br><i>Use the search function to see examples.</i>">GetAssociationRelationshipName()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Starts the schedule for the specified name. <br></br><i>StartSchedule('Process All Account Records')</i>">StartSchedule('schedulename')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Stops the schedule for the specified name. <br></br><i>StopSchedule('Process All Account Records')</i>">StopSchedule('schedulename')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shares a record with a user. <br></br> e.g. Shows how to share all privileges of a contact record with a system user except for the delete privilege  <br></br> <i>RecordShare('contact', '873489c-992f-22db-8454-0800255c9a55', 'systemuser', '899989c-992f-22db-8454-0800255c9a55', true, true, false, true, true, true, true)</i>">RecordShare('entitynameofrecordtoshare', 'guidofrecordtoshare','systemuser\team', 'guidofsystemuser\team','readaccess', 'writeaccess','deleteaccess, 'assignaccess','shareaccess', 'appendaccess','appendtoaccess')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Un-shares a record with a user.  <br></br> <i>RecordUnShare('contact', '873489c-992f-22db-8454-0800255c9a55', 'systemuser', '899989c-992f-22db-8454-0800255c9a55')</i>">RecordUnShare('entitynameofrecordtounshare', 'guidofrecordtounshare',  'systemuser\team', 'guidofsystemuser\team')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all shares with a record.  <br></br> <i> RecordUnShareAll('contact', '873489c-992f-22db-8454-0800255c9a55')</i>">RecordUnShareAll('entitynameofrecordtounshare', 'guidofrecordtounshare')</span></a></li>
                        </ul> 
                     </li> 
                     <li   class="folder"><a class="ui-link"><span>Record Control</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Creates a record within the system. You enter the name of the entity and values for all the properties you want to set. <br></br> The function will return the guid of the created record.<br></br> <i> CreateRecord('contact',</br> SetAttribute('firstname', 'Bill'),</br> SetAttribute('lastname', 'gates'),</br> SetAttribute('creditlimit', '5000'),</br> SetAttribute('description', '?'),</br> SetAttributeCustomer('parentcustomerid', 'account', '450dd379c-ee2f-11db-8314-0800200c777', 'Microsoft'),</br> SetAttributeLookup('perferredsystemuserid', 'systemuser', '670dd379c-ee2f-11db-8314-0800200c888')) <br></br>Note 1: Fields of type lookup  need SetAttributeLookup('fieldname', 'entityname', 'recordguid') </br>Note 2: Fields of type Customer need SetAttributeCustomer('fieldname', 'entityname', 'recordguid' , 'recordname') </br>Note 3: Fields of type PartyList need SetAttributePartyList('fieldname', 'entityname', 'partyguid' , 'partyguid')</i>">CreateRecord('entityname', SetAttribute('attributename', 'attributevalue' ))</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="If the supplied record guid exists then the system will update the record else it will create it. <br></br> You enter the name of the entity and then the record guid that you want to update. If a Create occurs the guid of the new record is returned otherwise if an update occurs a NoOp returns.   <br></br> <i> UpdateCreateRecord('contact',</br> [account.primaryaccountid],</br> SetAttribute('firstname', 'Bill'),</br> SetAttribute('lastname', 'gates'),</br> SetAttribute('creditlimit', '5000'),</br> SetAttribute('description', '?'),</br> SetAttribute('parentcustomerid', 'account.450dd379c-ee2f-11db-8314-0800200c777.Microsoft'),</br> SetAttributeLookup('perferredsystemuserid', 'systemuser', '670dd379c-ee2f-11db-8314-0800200c888')) <br></br>Note 1: Fields of type lookup  need SetAttributeLookup('fieldname', 'entityname.recordguid') </br>Note 2: Fields of type Customer need SetAttributeCustomer('fieldname', 'entityname', 'recordguid' , 'recordname') </br>Note 3: Fields of type PartyList need SetAttributePartyList('fieldname', 'entityname', 'partyguid' , 'partyguid')</i>">UpdateCreateRecord('entityname', 'primarykeyid', SetAttribute('attributename', 'attributevalue' ))</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Creates a note within the system. <br></br> <i>  CreateNote('MyTitle', 'account', [account.accountid], 'This is a note...')  Returns 'NoOp' if successful</i>">CreateNote('title', 'regardingentityname', 'regardingentityid', 'note')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Creates a note within the system if the supplied record guid exists. <br></br> <i>   CreateNoteIfExists('MyTitle', 'account', [account.accountid], 'This is a note..')  Returns 'NoOp' if successful</i>">CreateNoteIfExists('title', 'regardingentityname', 'regardingentityid', 'note')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Deletes a record. <br></br> Delete the account record with the guid '30dd379c-ee2f-11db-8314-0800200c9a55' <br></br> <i>DeleteRecord('account', '30dd379c-ee2f-11db-8314-0800200c9a55')</i>">DeleteRecord('entityname', 'guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Deletes a record if the supplied guid exists otherwise it does nothing so returns a NoOp. <br></br> Delete the account record with the guid '30dd379c-ee2f-11db-8314-0800200c9a55' <br></br><i>DeleteRecordIfExists('account', '30dd379c-ee2f-11db-8314-0800200c9a55')</i>">DeleteRecordIfExists('entityname', 'guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Updates a record within the system.<br></br> You enter the name of the entity and then the record guid that you want to update. And after this a list of all the attributes you want to set.  <br></br> <i> UpdateRecord('contact',</br> [account.primaryaccountid],</br> SetAttribute('firstname', 'Bill'),</br> SetAttribute('lastname', 'gates'),</br> SetAttribute('creditlimit', '5000'),</br> SetAttribute('description', '?'),</br> SetAttribute('parentcustomerid', 'account', '450dd379c-ee2f-11db-8314-0800200c777','Microsoft'),</br> SetAttributeLookup('perferredsystemuserid', 'systemuser', '670dd379c-ee2f-11db-8314-0800200c888')) <br></br>Note 1: Fields of type lookup  need SetAttributeLookup('fieldname', 'entityname', 'recordguid') </br>Note 2: Fields of type Customer need SetAttributeCustomer('fieldname', 'entityname', 'recordguid' , 'recordname') </br>Note 3: Fields of type PartyList need SetAttributePartyList('fieldname', 'entityname', 'partyguid' , 'partyguid')</i>">UpdateRecord('entityname', 'primarykeyid', SetAttribute('attributename', 'attributevalue' ))</span></a></li>                
                                <li class="file"><a class="ui-link"><span class="helpId" title="Updates a record within the system if the record exists. <br></br> You enter the name of the entity and then the record guid that you want to update. If the record guid is null or empty nothing will happen (i.e. NoOp returned) . And after this a list of all the attributes you want to set.  <br></br> <i> UpdateRecordIfExists('contact',</br> [account.primaryaccountid],</br> SetAttribute('firstname', 'Bill'),</br> SetAttribute('lastname', 'gates'),</br> SetAttribute('creditlimit', '5000'),</br> SetAttribute('description', '?'),</br> SetAttributeCustomer('parentcustomerid', 'account', '450dd379c-ee2f-11db-8314-0800200c777', 'Microsoft'),</br> SetAttributeLookup('perferredsystemuserid', 'systemuser', '670dd379c-ee2f-11db-8314-0800200c888')) <br></br>Note 1: Fields of type lookup  need SetAttributeLookup('fieldname', 'entityname', 'recordguid') </br>Note 2: Fields of type Customer need SetAttributeCustomer('fieldname', 'entityname', 'recordguid' , 'recordname') </br>Note 3: Fields of type PartyList need SetAttributePartyList('fieldname', 'entityname', 'partyguid' , 'partyguid')</i>">UpdateRecordIfExists('entityname', 'primarykeyid', SetAttribute('attributename', 'attributevalue' ))</span></a></li>                
                                <li class="file"><a class="ui-link"><span class="helpId" title="Bulk updates all activity parties in a collection.<br></br>Typically used on activities such as Appointment to bulk update all required attendees.<br></br> <i>UpdateActivityPartyBulk([appointment.requiredattendees], 'account.contact', 'lastusedincampaign.'+[appointment.modifiedon])</i><br></br>Note an empty string can be passed on the second parameter to indicate all activity party types</i>">UpdateActivityPartyBulk('ActivityPartyCollection', 'activitypartytype', SetAttribute('attributename', 'attributevalue'))</span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="ExtractSamples">*** Helper Functions ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="When using the CreateRecord or UpdateRecord functions this function allows you to set the status and status reason fields. <br></br><i>SetAttributeStatus('1', '5')</i>">SetAttributeStatus('status', 'statusreason')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="When using the CreateRecord or UpdateRecord functions this function allows you to set most field types except for the other specfic SetAttribute helper functions. <br></br> <i>SetAttribute('description', 'The quick fox')</i>">SetAttribute('fieldname', 'fieldvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="When using the CreateRecord or UpdateRecord functions this function allows you to set fields of type lookup. <br></br> <i>SetAttributeLookup('accountid', 'account', '30dd379c-4444-11db-8314-0800200c9a55')</i>">SetAttributeLookup('fieldname', 'entitylogicalname', 'guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="When using the CreateRecord or UpdateRecord functions this function allows you to set fields of type partylist. <br></br> <i>SetAttributePartyList('to', 'systemuser', '30dd379c-4444-11db-8314-0800200c9a55', '88dd379c-7777-11db-9999-0800200c9a55')  See xRM Sample 81 <br></br>SetAttributePartyList('to', 'systemuser', '30dd379c-4444-11db-8314-0800200c9a55,88dd379c-7777-11db-9999-0800200c9a55')  See xRM Sample 96 <br></br>SetAttributePartyList('to', 'systemuser', 'entitycollection', 'field_reference_from_entitycollection') See xRM Sample 24</i>">SetAttributePartyList('fieldname', 'entitylogicalname', 'guid', 'guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="When using the CreateRecord or UpdateRecord functions this function allows you to set fields of type customer. <br></br> <i>SetAttributeCustomer('accountid', 'account', '30dd379c-4444-11db-8314-0800200c9a55', 'Microsoft')</i>">SetAttributeCustomer('fieldname', 'entitylogicalname', 'guid', 'recordname')</span></a></li>
                             
                       </ul> 
                    </li> 
                      <li   class="folder"><a class="ui-link"><span>Regex</span></a> 
                        <ul> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Searches the specified 'string' for the first occurrence of the regular expression specified in the 'regex' parameter. <br></br> <i>  RegexMatch('^abc', «abcdefg») Returns abc</i>">RegexMatch('string', «regex»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if the defined 'regex' pattern has a match within the specified 'string' else false. <br></br> <i>  RegexIsMatch('abcdefg', «^abc»)   Returns True</i>">RegexIsMatch('string', «regex»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a string which is the 'string' but replaces all regex matches of 'regextofind' with 'regextoreplace'. <br></br> <i>  RegexReplace('0123456789', «(\d{3})(\d{3})(\d{4})», «($1) $2-$3»)  Returns (012) 345 6789</i>">RegexReplace('string', «regextofind», «regextoreplace»)</span></a></li>

                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="ExtractSamples">*** Extract Samples ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Extract the first 3 digits from a string">RegexMatch('abc1234def', «\d\d\d»)</span></a></li>

                                <li class="file"><a class="ui-link"><span title="CleanSamples">*** Cleaning Samples ***</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all digits from a string">RegexReplace('stringinput', «\d», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all characters from a string to only leave digits">RegexReplace('stringinput', «\D», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes duplicate white space (tabs, newlines, spaces, etc,) from a string">RegexReplace('stringinput', «\s+», ' ')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all non-ascii characters from a string">RegexReplace('stringinput', «[^\u0000-\u007F]», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all non-ascii characters and ascii control characters from a string">RegexReplace('stringinput', «[^\u0020-\u007F]», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes everthing except alpahnumeric ascii characters from a string">RegexReplace('stringinput', «[^A-Za-z0-9]», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all non-alphanumeric charcters except @, - (a dash), . (a period)">RegexReplace('stringinput', «[^\w\.@-]», '')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Formats a US telephone number">RegexReplace('US telephone number', «(\d{3})(\d{3})(\d{4})», «($1) $2-$3»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Formats a US telephone number with extensions">RegexReplace('US telephone number', «^\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d)\D*(\d{2,})$», «+1 ($1$2$3) $4$5$6-$7$8$9$10 Ext $11»)</span></a></li>

                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="ValidationSamples">*** Validation Samples ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates an email address">RegexIsMatch('Email address', «^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates an Uri">RegexIsMatch('Uri', «(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates any whole or decimal number">RegexIsMatch('Any whole or decimal number', «^([0-9]*|\d*\.\d{1}?\d*)$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates US Currency">RegexIsMatch('US Currency', «^\$(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates one numeric digit">RegexIsMatch('One numeric digit', «^\d$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates a percentage to 2 decimal places">RegexIsMatch('A percentage to 2 decimal places ', «^( 100(?:\.0{1,2})? | 0*?\.\d{1,2} | \d{1,2}(?:\.\d{1,2})? )% $»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates a password must be at least 8 characters, no more than 15 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit">RegexIsMatch('A password must be at least 8 characters, no more than 15 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit', «^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15}$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates a UK vehicle registration">RegexIsMatch('A UK vehicle registration', «^([A-Z]{3}\s?(\d{3}|\d{2}|d{1})\s?[A-Z])|([A-Z]\s?(\d{3}|\d{2}|\d{1})\s?[A-Z]{3})|(([A-HK-PRSVWY][A-HJ-PR-Y])\s?([0][2-9]|[1-9][0-9])\s?[A-HJ-PR-Z]{3})$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates alpha numberic values">RegexIsMatch('Alpha numberic values', «^[a-zA-Z0-9]+$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates a UK National Insurance Number">RegexIsMatch('A UK National Insurance Number', «^[A-CEGHJ-PR-TW-Z]{1}[A-CEGHJ-NPR-TW-Z]{1}[0-9]{6}[A-DFM]{0,1}$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates credit card numbers">RegexIsMatch('Credit card numbers', «^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates US telephone numbers">RegexIsMatch('US telephone numbers', «^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates US Zip Codes">RegexIsMatch('US Zip Codes', «(^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$)»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates German Post Codes">RegexIsMatch('German Post Codes', «\b((?:0[1-46-9]\d{3})|(?:[1-357-9]\d{4})|(?:[4][0-24-9]\d{3})|(?:[6][013-9]\d{3}))\b»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates UK Post Codes">RegexIsMatch('UK Post Codes', «^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates UK Telephone Number">RegexIsMatch('UK Telephone Number', «(\s*\(?0\d{4}\)?(\s*|-)\d{3}(\s*|-)\d{3}\s*)|(\s*\(?0\d{3}\)?(\s*|-)\d{3}(\s*|-)\d{4}\s*)|(\s*(7|8)(\d{7}|\d{3}(\-|\s{1})\d{4})\s*)»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates US Telephone Number">RegexIsMatch('US Telephone Number', «^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates date of birth (MM/DD/YYYY)">RegexIsMatch('Date of birth (MM/DD/YYYY)', «^((0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2})*$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates for digits only">RegexIsMatch('Digits only', «^[0-9]*$»)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Validates US social security numbers">RegexIsMatch('US social security number', «/^([0-9]{3}[-]*[0-9]{2}[-]*[0-9]{4})*$/»)</span></a></li>
                        </ul> 
                    </li> 
                         <li   class="folder"><a class="ui-link"><span>Native Fields</span></a> 
                        <ul> 
                             <li class="file"><a class="ui-link"><span class="helpId" title="Gets a party record id from a partylist. <br></br> <i> GetPartyListItemId([phone.from], 0) Returns '30dd379c-ee2f-11db-8314-0800200c9a55'</i>">GetPartyListItemId('partylist', 'index')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Gets a party record type from a partylist. <br></br> <i> GetPartyListItemType([phone.from], 0) Returns 'contact'</i>">GetPartyListItemType('partylist', 'index')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Gets a party record name from a partylist. <br></br> <i> GetPartyListItemName([phone.from], 0) Returns 'John Grace'</i>">GetPartyListItemName('partylist', 'index')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Gets the count of the the number of parties in a party list.<br></br> <i> GetPartyListCount([phone.from]) Returns 3</i>">GetPartyListCount('partylist')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the target property of a formula when it is of type customer. <br></br> <i> SetCustomerLookup('account', '630dd379c-ee2f-11db-8314-0800200c9a5', 'Microsoft')</i>">SetCustomerLookup('entityname', 'guid', 'Primary Field Text')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the target property of a formula when it is of type lookup. <br></br> Set a lookup with just the guid when the target property datatype is a lookup and not a Regarding field. <br></br> <i>  SetLookup('630dd379c-ee2f-11db-8314-0800200c9a5')</i>">SetLookup('guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the owner field of a record to a team represented by the guid. Only to be used with formulas of type Save To Current Record. <br></br><i>SetOwnerTeam('630dd379c-ee2f-11db-8314-0800200c9a5')</i>">SetOwnerTeam('guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the owner field of a record to a user represented by the guid. Only to be used with formulas of type Save To Current Record.<br></br><i>SetOwnerUser('630dd379c-ee2f-11db-8314-0800200c9a5')</i>">SetOwnerUser('guid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets values for a field of type Party List. <br></br>  Sets the party list field to 2 accounts as defined by the 2 account guids.<br></br> <i> SetPartyList('account','630dd379c-ee2f-11db-8314-0800200c9a5', '895dd379c-ee2f-11db-8314-0800200c6t6')</i>">SetPartyList('entityname','guidentity','guidentity')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Combines multiple SetPartList to a single combined list. Used when you need to mix the underlying entity types.<br></br> <i>  SetPartyListCombined(SetPartyList('account','630dd379c-ee2f-11db-8314-0800200c9a5', '895dd379c-ee2f-11db-8314-0800200c6t6'),SetPartyList('contact','450dd379c-ee2f-11db-8314-0800200c777'))</i>">SetPartyListCombined(SetPartyList('entityname','guidentity','guidentity'), SetPartyList('entityname','guidentity','guidentity'))</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the target property of a formula when it is of type lookup but is a regarding field.<br></br> <i>  SetRegardingLookup('account', '630dd379c-ee2f-11db-8314-0800200c9a5', 'Microsoft')</i>">SetRegardingLookup('entityname', 'guid', 'Primary Field Text')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the state and status of a record within Dynamics CRM. Only to be used with formulas of type Save To Current Record. <br></br><i>SetState(2,6)</i>">SetState(state,status)</span></a></li>
                        </ul> 
                    </li> 
                         <li   class="folder"><a class="ui-link"><span>String</span></a>  
                        <ul>
                                <li class="file"><a class="ui-link"><span class="helpId" title="The AppendFormat function takes a base string and a second string of comma, separated values which it uses to generate a set of strings.<br></br> <i>   AppendFormat('Value = {0}', 'Decision Maker,Champion')    Returns 'Value='Decision Maker' </br>'Value='Champion'</i>">AppendFormat('inputstring', param[0],param[1],param[n])</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a Base64 encoding of a string. <br></br><i>Base64Encode('The quick brown fox')</i>">Base64Encode('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a Base64 decoding of a string. <br></br><i>Base64Decode('The quick brown fox')</i>">Base64Decode('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Capitalize the first letter in a string. <br></br> <i>   Capitalize('microsoft') Returns 'Microsoft'</i>">Capitalize('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if the 'stringtofind' is found in the 'string' parameter.  <br></br> <i>  Contains('Formula Manager','Man') Returns True</i>">Contains('inputstring', 'stringtofind')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a compressed string. <br></br><i>Compress('The quick brown fox')</i>">Compress('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the number of characters that make up a string. <br></br> <i>   CountCharacters('Formula')  Returns 7</i>">CountCharacters('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a decompressed string. <br></br><i>Decompress('The quick brown fox')</i>">Decompress('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if one string ends with another. <br></br> <i>  EndsWith('microsoft', 'oft') Returns 'True'</i>">EndsWith('inputstring', 'endstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a Guid.  <br></br> <i>  GenerateGuid() Returns '630dd379c-ee2f-11db-8314-0800200c9a5'</i>">GenerateGuid()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a parameter from a URL.  <br></br> <i>  GetParamFromUrl('http://crm/main.aspx?etc=1&amp;id=630dd379c-ee2f-11db-8314-0800200c9a5&amp;pagetype=entityrecord', 'id') Returns '630dd379c-ee2f-11db-8314-0800200c9a5'</i>">GetParamFromUrl('url', 'parameter')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the position in 'string' where the first instance on 'stringtofind' was located starting at a position of 'startindex' in the 'string paremeter. <br></br> <i>  IndexOf('Formula Manager', 'Man', 0) Returns 9</i>">IndexOf('inputstring', 'stringtofind', 'startindex')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Inserts one string into another at a position.  <br></br> <i> Insert('The cat',4 'black ' ) Returns 'The black cat'</i>">Insert('inputstring', position, 'insertstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the left number of characters in a string.  <br></br> <i>  Left('microsoft', 5) Returns 'Micro'</i>">Left('inputstring', 'numberofcharacters')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Converts all string elements to lower case.  <br></br> <i> Lower('Formula')  Returns formula</i>">Lower('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a MD5 hash of a string. <br></br><i>MD5('The quick brown fox')</i>">MD5('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Puts a number of string characters to the left of an input string based on overall length. <br></br> <i>  PadLeft('1', 4, '0') Returns '0001'</i>">PadLeft('inputstring', totalLength, 'charToPad')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Puts a number of string characters to the right of an input string based on overall length. <br></br> <i>  PadRight('1', 4, '0') Returns '1000'</i>">PadRight('inputstring', totalLength, 'charToPad')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Replaces one string with another one given an input string  <br></br> <i>   Replace('Formula Manager Rocks', 'Rocks', 'is great') Returns 'Formula Manager is great'</i>">Replace('inputstring', 'stringtofind', 'stringtoreplace')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes a number of characters from a string at a starting position.  <br></br> <i> Remove('microsoft',4,2) Returns 'microft'</i>">Remove('inputstring', 'startpostion', 'numberofcharacterstoremove')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the right number of characters in a string.  <br></br> <i>  Right('microsoft', 4) Returns 'soft'</i>">Right('inputstring', numberofcharacters)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Reverse the contents of a string.  <br></br> <i>  Reverse('Formula')  Returns alumroF</i>">Reverse('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a SHA1 hash of a string. <br></br><i>SHA1('The quick brown fox')</i>">SHA1('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a substring from a string between a start and end position. <br></br> <i>  Slice('microsoft', 2, 4) Returns 'cr'</i>">Slice('inputstring', 'start', 'end')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a substring based on a split character and index. <br></br> <i>  Split('microsoft.north52.ibm', '.', 1) Returns 'north52'</i>">Split('inputstring', 'chartosplit', 'index')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if one string starts with another. <br></br> <i> StartsWith('microsoft', 'mic') Returns 'True'</i>">StartsWith('inputstring', 'startstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Takes a string and inserts the values with the params when it run. <br></br> <i>   StringFormat('Formula {0} Manager', 'Rocks') Returns 'Formula Rocks Manager'</i>">StringFormat('inputstring', 'param[0]','param[1]','param[n]')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns part of the input string based on a start position and length.  <br></br> <i>   Substring('Formula Manager', 8, 7) Returns 'Manager'</i>">Substring('inputstring', startposition, length)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Converts all string elements to upper case.  <br></br> <i>  Upper('Formula')  Returns FORMULA</i>">Upper('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a string representation of any number, decimal, currency or boolean value. An optional format may also be applied.<br></br> <i> ToString(99) Returns '99' <br></br>  ToString(LocalDate(), 'MMM-yyyy') Returns 'DEC-2011'</i>">ToString('valuetoconvert', 'format')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Converts the first character of a word to uppercase and the rest to lower case. <br></br> <i>  ToTitleCase('the quick brown fox') Returns 'The Quick Brown Fox'</i>">ToTitleCase('inputstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes all occurrences of a set of specified characters from the beginning and end of the string. <br></br> <i>  Trim(' Microsoft Rocks _', ' ', '_') Returns 'Microsoft Rocks'</i>">Trim('inputstring', 'param[0]','param[1]','param[n]')</span></a></li>                        </ul> 
                    </li> 
                        <li   class="folder"><a class="ui-link"><span>System</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a value which has been incremented by a defined formula. <br></br> <i> 'Acc-' + PadLeft(ToString(AutoNumber([account.accountnumber]+1)), 8, '0') Returns 'Acc-00001001' </i>">AutoNumber('autonumberstring')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if a test value lies between 2 other values. Works with numbers and date fields. <br></br> <i>Between(50, 25, 100, 'both') Inclusive both sides</br>Between(50, 25, 100, 'left') Inclusive only left side</br>Between(50, 25, 100, 'right') Inclusive only right side </br>Between(50, 25, 100, 'none') No inclusive</br></i>">Between('testvalue', 'minvalue', 'maxvalue', 'inclusive')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the target property of a formula to a null value. Effectively retuns the '?' character. <br></br><i>Clear()</i>">Clear()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Create an email from a template. Returns the guid of the new email<br></br> <i>CreateEmailFromTemplate('220dd379c-ee2f-11db-8314-0800200c9a5', '220dd379c-ee2f-11db-8314-0800200c9a5', 'quote', SetAttributePartyList('from', 'systemuser', WhoAmI(), SetAttributePartyList('to', 'systemuser', '220dd379c-ee2f-11db-8314-0800200c9a5')) </i>">CreateEmailFromTemplate('templateid', 'recordid', 'recordentityname', 'setattribute_on_email', 'setattribute_on_email')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Clones a record. <br></br>  Shows how to clone the current account entity along with all its related 1:M contacts and opportunities <br></br> <i> Clone('account',[account.accountid], 'contact_customer_accounts', 'opportunity_customer_accounts', false) </i><br></br>  Clone just the account itself. <br></br><i> Clone('account',[account.accountid])</i>">Clone('entityname', 'guidofentity', 'relationshipname', 'enableprefix')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if all of the 'fieldtocheck' arguments contains data. <br></br> <i>  ContainsData([account.description])  Returns True</i>">ContainsData('fieldtocheck1', 'fieldtocheck2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if all of the 'fieldtocheck' arguments contains data. <br></br> <i>  ContainsDataAndNotZero([account.description])  Returns True</i>">ContainsDataAndNotZero('fieldtocheck', 'fieldtocheck2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if all of the 'fieldtocheck' arguments do not contain data.  <br></br> <i> DoesNotContainData([account.description])  Returns True</i>">DoesNotContainData('fieldtocheck1', 'fieldtocheck2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="A DecisionTable allows you to execute multiple steps driven from a spreadsheet. <br></br><i>Use the search function to see examples.</i>">DecisionTable('step1', 'step2', 'step3')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if a user has a certain privilege.<br></br> <i> DoesUserHavePrivilege(WhoAmI(), 'prvCreateaccount') returns true </i>">DoesUserHavePrivilege('userid', 'privilegename')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a comma seperated list of a users roles. <br></br> <i>  GetUserRoles(WhoAmI())<br></br> Returns System Administrator, Customer Service Representative</i>">GetUserRoles('userid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a comma seperated list of a users teams. <br></br> <i>  GetUserTeams(WhoAmI())<br></br> Returns Sales Team, CSR Team</i>">GetUserTeams('userid')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns true if the user is in the list of security roles otherwise false. <br></br> <i> IsUserInSecurityRoles(WhoAmI(), 'System Administrator', 'Salesperson')<br></br> Returns true</i>">IsUserInSecurityRoles('userid', 'securityrole1', 'securityrole2')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Find the max of two values. <br></br> <i>  MaxOf(10,100) Returns 100</i>">MaxOf(value1, value2)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Find the min of two values. <br></br> <i> MinOf(10,100) Returns 10</i>">MinOf(value1, value2)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a random integer between the supplied min and max values. <br></br> <i>  Random(0,100) Returns 25</i>">Random(minvalue, maxvalue)</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Removes the attribute specified in the target property from the current operation. <br></br><i>RemoveAttribute('description')</i>">RemoveAttribute()</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the prior value of a field. <br></br> Allows for comparsion of previous values such as only execute a validation rule if a picklists prior value was 'Pending' and it is now going to 'Closed'<br></br> <i>  PriorValue('[account.description]')</i>">PriorValue('fieldreference')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Send an email. <br></br><i>SendEmail('30dd379c-ee2f-11db-8314-0800200c9a55')</i>">SendEmail('emailguid')</span></a></li> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Sets the currency symbol on a money\decimal field. Primary used to apply a custom currency symbol when using a calculated field.  <br></br> <i>  SetCurrencySymbol(Sum('HotOpps.estimatedvalue'), '$') Returns $ 121,387</i>">SetCurrencySymbol('Value', 'CurrencySymbol')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Shows the user an error message. <br></br><i>ThrowError('The start date must be before the end date.')</i>">ThrowError('message')</span></a></li> 
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a GUID represeting the current user.  <br></br> <i> WhoAmI() Returns 30dd379c-ee2f-11db-8314-0800200c9a55</i>">WhoAmI()</span></a></li> 
                                <li class="file"><a class="ui-link"><b><span title="">*** Misc. ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="SmartFlow allows you to execute multiple steps in a formula. <br></br><i>Use the search function to see examples.</i>">SmartFlow('step1', 'step2', 'step3')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="SetVar allows you to set a variable for later re-use. <br></br><i>Use the search function to see examples.</i>">SetVar('variablename', 'value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="SetVarConcat allows you to set a variable to itself plus andother value for later re-use. <br></br><i>Use the search function to see examples.</i>">SetVarConcat('variablename', 'value')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="GetVar allows you to retrieve a variable. <br></br><i>Use the search function to see examples.</i>">GetVar('variablename', 'defaultvaue')</span></a></li>
               
                        </ul> 
                    </li> 
                        <li   class="folder"><a class="ui-link"><span>WebFusion</span></a> 
                           <ul>

                            <li class="folder"><a class="ui-link"><span>Azure Services</span></a> 
                                <ul> 
                                    <li class="file"><a class="ui-link"><span title="Coming soon...">Coming soon...</span></a></li>
                                </ul> 
                            </li> 

                              <li class="folder"><a class="ui-link"><span>Process - JSON</span></a> 
                                <ul> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Creates a JSON Array.<br></br><i>Use the search function to see examples.</i>">CreateJArray(CreateJObject(), CreateJObject())</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Creates a JSON Array which will be populated with JObjects from FindRecords().<br></br><i>Use the search function to see examples.</i>">CreateJArrayChildren('entitycollection', CreateJObject())</span></a></li> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Creates a JSON Object.<br></br><i>Use the search function to see examples.</i>">CreateJObject(CreateJProperty(), CreateJProperty())</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Creates a JSON Property.<br></br><i>Use the search function to see examples.</i>">CreateJProperty('fieldname', 'fieldvalue')</span></a></li> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Used in-conjunction with the CreateJArrayChildren() function to build the data.<br></br><i>Use the search function to see examples.</i>">FindJArrayItem('fieldname', 'defaultvalue')</span></a></li> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Gets a value from a JSON document.<br></br><i>Use the search function to see examples.</i>">GetVarJsonValue('selecttoken', 'defaultvalue')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Get an EntityCollection from a JSON document.<br></br><i>Use the search function to see examples.</i>">GetVarJsonEC('selecttoken')</span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="JSON Samples">*** JSON Samples ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="JSONSamples">*** Basic JSON creation ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CreateJObject(
                   CreateJProperty('AccountName', [account.name]),  
                   CreateJProperty('AccountNumber', [account.accountnumber]),
                   CreateJProperty('Address_Line1', [account.address1_line1]),  
                   CreateJProperty('Address_Line2', [account.address1_line2]), 
                   CreateJProperty('Address_Line3', [account.address1_line3]), 
                   CreateJProperty('Address_City', [account.address1_city]),  
                   CreateJProperty('Address_Zip', [account.address1_postalcode]),  
                   CreateJProperty('Address_State', [account.address1_stateorprovince]),  
                   CreateJProperty('Address_Country', [account.address1_country])  
             )</span></a></li> 
             <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="JSONSamples">*** Shows how to add defaults on fields and sub-objects ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CreateJObject(
                   CreateJProperty('AccountName', [account.name], ''),
                   CreateJProperty('AccountNumber', [account.accountnumber], ''),
                   CreateJProperty('Address_Line1', [account.address1_line1], ''),
                   CreateJProperty('Address_Line2', [account.address1_line2], ''),
                   CreateJProperty('Address_Line3', [account.address1_line3], ''),
                   CreateJProperty('Address_City', [account.address1_city], ''),
                   CreateJProperty('Address_Zip', [account.address1_postalcode], ''),  
                   CreateJProperty('Address_State', [account.address1_stateorprovince], ''),  
                   CreateJProperty('Address_Country', [account.address1_country], ''),
                   CreateJProperty('MarketingData',
                            CreateJObject(
                                      CreateJProperty('DoNotBulkMail', [account.donotbulkemail]),
                                      CreateJProperty('DoNotBulkPostalMail', [account.donotbulkpostalmail]),
                                      CreateJProperty('DoNotEmail', [account.donotemail]),
                                      CreateJProperty('DoNotFax', [account.donotfax]), 
                                      CreateJProperty('DoNotPostalMail', [account.donotpostalmail]),
                                      CreateJProperty('DoNotPhone', [account.donotphone])
                                      ) 
                              )

                     ) 
             </span></a></li> 
              <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="JSONSamples">*** Shows how to add child nodes ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CreateJObject(
                   CreateJProperty('AccountName', [account.name], ''),
                   CreateJProperty('AccountNumber', [account.accountnumber], ''),
                   CreateJProperty('Address_Line1', [account.address1_line1], ''),
                   CreateJProperty('Address_Line2', [account.address1_line2], ''),
                   CreateJProperty('Address_Line3', [account.address1_line3], ''),
                   CreateJProperty('Address_City', [account.address1_city], ''),
                   CreateJProperty('Address_Zip', [account.address1_postalcode], ''),  
                   CreateJProperty('Address_State', [account.address1_stateorprovince], ''),  
                   CreateJProperty('Address_Country', [account.address1_country], ''),
                   CreateJProperty('MarketingData',
                            CreateJObject(
                                      CreateJProperty('DoNotBulkMail', [account.donotbulkemail]),
                                      CreateJProperty('DoNotBulkPostalMail', [account.donotbulkpostalmail]),
                                      CreateJProperty('DoNotEmail', [account.donotemail]),
                                      CreateJProperty('DoNotFax', [account.donotfax]), 
                                      CreateJProperty('DoNotPostalMail', [account.donotpostalmail]),
                                      CreateJProperty('DoNotPhone', [account.donotphone])
                                      ) 
                              ),
                CreateJProperty('Contacts', 
                            CreateJArrayChildren(
                                     FindRecords('contact', 'parentcustomerid', [account.accountid], '*' ),
                                     CreateJObject(
                                                   CreateJProperty('Fullname', FindJArrayItem('fullname')),
                                                   CreateJProperty('Jobtitle', FindJArrayItem('jobtitle')), 
                                                   CreateJProperty('Email', FindJArrayItem('emailaddress1')),
                                                   CreateJProperty('BusinessPhone', FindJArrayItem('telephone1'))
                                                             ) 
                                                           )
                                         ) 
                     ) </span></a></li> 

                                </ul> 
                            </li> 

                             <li class="folder"><a class="ui-link"><span>Process - XML</span></a> 
                        <ul> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates an XML Attribute. <br></br><i>Use the search function to see examples.</i>">CreateXmlAttribute('attributename', 'attributevalue')</span></a></li> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates a set of child XML Elements. <br></br><i>Use the search function to see examples.</i>">CreateXmlChildren('collectionname', 'collectionitemname', 'entitycollection', 'xmlelement', 'xmlelement')</span></a></li> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates an XML Declaration. <br></br><i>Use the search function to see examples.</i>">CreateXmlDeclaration('version','encoding','standalone')</span></a></li>
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates an XML Element. <br></br><i>Use the search function to see examples.</i>">CreateXmlElement('elementname', 'elementvalue')</span></a></li> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates an XML Declaration. <br></br><i>Use the search function to see examples.</i>">CreateXmlRootAttribute('name', 'value', 'name', 'value')</span></a></li>
                            <li class="file"><a class="ui-link"><span class="helpId" title="Creates the Xml Root Node for the document. <br></br><i>Use the search function to see examples.</i>">CreateXmlRootNode('nameofrootnode', 'xmldeclaration', 'xmlschemas\root attributes', 'xmlnodes')</span></a></li> 
                            <li class="file"><a class="ui-link"><span class="helpId" title="Used in conjunction with the CreateXmlChildren() function to lookup values. <br></br><i>Use the search function to see examples.</i>">FindXmlItem('fieldname')</span></a></li>
                            <li class="file"><a class="ui-link"><span class="helpId" title="Gets a value from a XML document. <br></br><i>Use the search function to see examples.</i>">GetVarXPathValue('xpath')</span></a></li>
                            <li class="file"><a class="ui-link"><span class="helpId" title="Get an EntityCollection from a XML document. <br></br><i>Use the search function to see examples.</i>">GetVarXPathEC('xpath')</span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><b><span title="XMLSamples">*** XML Samples ***</span></b></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><b><span title="XMLSamples">*** Basic XML document creation ***</span></b></a></li>
                            <li class="file"><a class="ui-link"><span  title="">CreateXmlRootNode('Account','', '',
                   CreateXmlElement('AccountName', [account.name]),  
                   CreateXmlElement('AccountNumber', [account.accountnumber]),
                   CreateXmlElement('Address_Line1', [account.address1_line1]),  
                   CreateXmlElement('Address_Line2', [account.address1_line2]), 
                   CreateXmlElement('Address_Line3', [account.address1_line3]), 
                   CreateXmlElement('Address_City', [account.address1_city]),  
                   CreateXmlElement('Address_Zip', [account.address1_postalcode]),  
                   CreateXmlElement('Address_State', [account.address1_stateorprovince]),  
                   CreateXmlElement('Address_Country', [account.address1_country]) 
             )</span></a></li> 
              <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><b><span title="XMLSamples">*** Shows how to add defaults on elements &amp; sub-elements ***</span></b></a></li>
                            <li class="file"><a class="ui-link"><span  title="">CreateXmlRootNode('Account','','',
    CreateXmlElement('AccountName', [account.name], ''), 
    CreateXmlElement('AccountNumber', [account.accountnumber], ''), 
    CreateXmlElement('Address_Line1', [account.address1_line1], ''), 
    CreateXmlElement('Address_Line2', [account.address1_line2], ''), 
    CreateXmlElement('Address_Line3', [account.address1_line3], ''), 
    CreateXmlElement('Address_City', [account.address1_city], ''), 
    CreateXmlElement('Address_Zip', [account.address1_postalcode], ''), 
    CreateXmlElement('Address_State', [account.address1_stateorprovince], ''), 
    CreateXmlElement('Address_Country', [account.address1_country], ''),
    CreateXmlElement('MarketingData', 
              CreateXmlElement('DoNotBulkMail', [account.donotbulkemail]),
              CreateXmlElement('DoNotBulkPostalMail', [account.donotbulkpostalmail]),
              CreateXmlElement('DoNotEmail', [account.donotemail]),
             CreateXmlElement('DoNotFax', [account.donotfax]), 
              CreateXmlElement('DoNotPostalMail', [account.donotpostalmail]),
              CreateXmlElement('DoNotPhone', [account.donotphone])
             )
)</span></a></li> 
              <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><b><span title="XMLSamples">*** Shows how to add XML attributes on an element ***</span></b></a></li>
                             <li class="file"><a class="ui-link"><span title="">CreateXmlRootNode('Account','','',
    CreateXmlElement('AccountName', [account.name], ''), 
    CreateXmlElement('AccountNumber', [account.accountnumber], ''), 
    CreateXmlElement('Address_Line1', [account.address1_line1], ''), 
    CreateXmlElement('Address_Line2', [account.address1_line2], ''), 
    CreateXmlElement('Address_Line3', [account.address1_line3], ''), 
    CreateXmlElement('Address_City', [account.address1_city], ''), 
    CreateXmlElement('Address_Zip', [account.address1_postalcode], ''), 
    CreateXmlElement('Address_State', [account.address1_stateorprovince], ''), 
    CreateXmlElement('Address_Country', [account.address1_country], ''),
    CreateXmlElement('MarketingData', 
              CreateXmlElement('DoNotBulkMail', [account.donotbulkemail],  '', ?
                                             CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?),
              CreateXmlElement('DoNotBulkPostalMail', [account.donotbulkpostalmail],  '', ?
                                            CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?),
              CreateXmlElement('DoNotEmail', [account.donotemail],  '', 
?                                          CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?),
             CreateXmlElement('DoNotFax', [account.donotfax],  '', ?
                                             CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?), 
              CreateXmlElement('DoNotPostalMail', [account.donotpostalmail],  '', ?
                                              CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?),
              CreateXmlElement('DoNotPhone', [account.donotphone],  '', 
                                             ?CreateXmlAttribute('flag1','abc'), CreateXmlAttribute('flag2','123')?)
             )
)</span></a></li> 
              <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><span></span></a></li>
                            <li class="file"><a class="ui-link"><b><span title="XMLSamples">*** Shows how to add child nodes ***</span></b></a></li>
                             <li class="file"><a class="ui-link"><span title="">CreateXmlRootNode('Account','','',
    CreateXmlElement('AccountName', [account.name], ''), 
    CreateXmlElement('AccountNumber', [account.accountnumber], ''), 
    CreateXmlElement('Address_Line1', [account.address1_line1], ''), 
    CreateXmlElement('Address_Line2', [account.address1_line2], ''), 
    CreateXmlElement('Address_Line3', [account.address1_line3], ''), 
    CreateXmlElement('Address_City', [account.address1_city], ''), 
    CreateXmlElement('Address_Zip', [account.address1_postalcode], ''), 
    CreateXmlElement('Address_State', [account.address1_stateorprovince], ''), 
    CreateXmlElement('Address_Country', [account.address1_country], ''),
    CreateXmlElement('MarketingData', 
              CreateXmlElement('DoNotBulkMail', [account.donotbulkemail]),
              CreateXmlElement('DoNotBulkPostalMail', [account.donotbulkpostalmail]),
              CreateXmlElement('DoNotEmail', [account.donotemail]),
             CreateXmlElement('DoNotFax', [account.donotfax]), 
              CreateXmlElement('DoNotPostalMail', [account.donotpostalmail]),
              CreateXmlElement('DoNotPhone', [account.donotphone])
             ),
    CreateXmlChildren('Contacts', 
              'Contact',
              FindRecords('contact', 'parentcustomerid', [account.accountid], '*' ),
              CreateXmlElement('FullName', FindXmlItem('fullname')),
             CreateXmlElement('JobTitle', FindXmlItem('jobtitle')), 
              CreateXmlElement('Email', FindXmlItem('emailaddress1')),
              CreateXmlElement('BusinessPhone', FindXmlItem('telephone1'))
             )
)</span></a></li>  
                        </ul> 
                    </li> 

                            <li class="folder"><a class="ui-link"><span>REST Services</span></a> 
                                <ul> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to call a web service that is REST based. <br></br><i>Use the search function to see examples.</i>">CallRestAPI( <br> SetRequestBaseURL('baseurl'),<br> SetRequestResource('resource'),<br> SetRequestDetails('method'),<br> SetRequestHeaders(),<br> SetRequestParams(),<br> SetRequestAuthenticationNone(),<br> SetRequestFiles(), <br> SetRequestExpected('responsestatuscode'),  <br> SetRequestActionPass('action'),<br> SetRequestActionFail('action')<br>)               </span></a></li>
                                
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="Rest Functions">*** Rest API Functions ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Sets the Base URL for an API call. <br></br><i>Use the search function to see examples.</i> ">SetRequestBaseURL('baseurl')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Sets the resource name for an API call.<br></br><i>Use the search function to see examples.</i> ">SetRequestResource('resource')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Sets one of these values POST, GET, PUT, PATCH. <br></br><i>Use the search function to see examples.</i> ">SetRequestDetails('method')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to pass in a name \ value set of headers. <br></br><i>Use the search function to see examples.</i> ">SetRequestHeaders('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to pass in a name \ value set of params. <br></br><i>Use the search function to see examples.</i> ">SetRequestParams('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to set the authentication. <br></br><i>Use the search function to see examples.</i> ">SetRequestAuthenticationNone()</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to pass any files as part of the API call. <br></br><i>Use the search function to see examples.</i> ">SetRequestFiles('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Sets the expected response status code. <br></br><i>Use the search function to see examples.</i> ">SetRequestExpected('responsestatuscode')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to execute one or more actions when the expected status code is found. <br></br><i>Use the search function to see examples.</i> ">SetRequestActionPass('action1', 'action2')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to execute one or more actions when the expected status code is not found. <br></br><i>Use the search function to see examples.</i> ">SetRequestActionFail('action1', 'action2')</span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="Rest Functions">*** Rest Processing Functions ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns a value within the Response Content (JSON) of the REST API call. <br></br><i>Use the search function to see examples.</i> ">GetVarJsonValue('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns an Entity Collection within the Response Content (JSON) of the REST API call. <br></br><i>Use the search function to see examples.</i>">GetVarJsonEC('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns a value within the Response Content (XML) of the REST API call. <br></br><i>Use the search function to see examples.</i>">GetVarXmlValue('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns an Entity Collection within the Response Content (XML) of the REST API call. <br></br><i>Use the search function to see examples.</i>">GetVarXmlEC('fieldpath')</span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="Rest Samples">*** Rest Samples ***</span></b></a></li>
                                    
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Send a SMS message on the Twilio platform ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CallRestAPI(
                  SetRequestBaseURL('https://api.twilio.com/2010-04-01'),
                  SetRequestResource('/Accounts/{0}/Messages.json', 'Twilio_AccountSID'),
                  SetRequestDetails('Post'), 
                  SetRequestHeaders(),
                  SetRequestParams('From', '+441403540192', 'To', '07748344932', 'Body', 'North52 Rocks!!'),
                  SetRequestAuthenticationBasic('Twilio_AccountSID', 'Twilio_AuthToken'),
                  SetRequestFiles(),
                  SetRequestExpected('Created'),
                  SetRequestActionPass(),
                  SetRequestActionFail()
         )
                                    </span></a></li> 

                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Send a SMS message on the Twilio platform, with an Action***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span  title="">CallRestAPI(
                  SetRequestBaseURL('https://api.twilio.com/2010-04-01'),
                  SetRequestResource('/Accounts/{0}/Messages.json', 'Twilio_AccountSID'),
                  SetRequestDetails('Post'), 
                  SetRequestHeaders(),
                  SetRequestParams('From', '+441403540192', 'To', '07748344932', 'Body', 'North52 Rocks!!'),
                  SetRequestAuthenticationBasic('Twilio_AccountSID', 'Twilio_AuthToken'),
                  SetRequestFiles(),
                  SetRequestExpected('Created'),
                  SetRequestActionPass(CreateRecord('task', 
                                                     1,
                                                     SetAttribute('subject', 'SMS ID:' + GetVarJsonValue('sid') + ' DateCreated:' + GetVarJsonValue('date_created')
                                                   )
                                       )
                  ),
                  SetRequestActionFail()
                   
                   
         )                          </span></a></li> 
                                    
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Retrieve all SMS messages on the Twilio platform, with an Action***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span  title="">CallRestAPI(
                  SetRequestBaseURL('https://api.twilio.com/2010-04-01'),
                  SetRequestResource('/Accounts/{0}/Messages.json', 'Twilio_AccountSID'),
                  SetRequestDetails('Get'),                            
                  SetRequestHeaders(),
                  SetRequestParams(),
                  SetRequestAuthenticationBasic('Twilio_AccountSID', 'Twilio_AuthToken'),
                  SetRequestFiles(),
                  SetRequestExpected('OK' ),
                  SetRequestActionPass(
                                         ForEachRecord(GetVarJsonEC('messages'),
                                             CreateRecord('task',
                                                           1,
                                                           SetAttribute('subject', 'SMS ID:' +  CurrentRecord('sid') )
                                                         )
                                                      )
                                      ),
                  SetRequestActionFail()
                  
         )                          </span></a></li>

                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Make an IDOL request to get content ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CallRestAPI(
                SetRequestBaseURL('https://api.idolondemand.com/'),
                SetRequestResource('1/api/sync/getcontent/v1),
                SetRequestDetails('Get'),
                SetRequestHeaders(),                            
                SetRequestParams('index_reference', 'http://en.wikipedia.org/wiki/Alan Turing', 'highlight_expression', 'Alan Turing', 'apikey', 'enter_apikey'),
                SetRequestAuthenticationNone(),
                SetRequestFiles(),
                SetRequestExpected('OK' ),
                SetRequestActionPass(
                                       UpdateRecord('account', 
                                                    [account.accountid] ,
                                                    SetAttribute('description', GetVarJsonValue('documents{0}.wikipedia_category{16}')
                                                   )
                                    ),
                  SetRequestActionFail()
         )
                                   </span></a></li>

                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Convert some HTML to a PDF document and store as an attachment ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CallRestAPI(
                            SetRequestBaseURL('https://htmlpdfapi.com/api/v1'),
                            SetRequestResource('/pdf'),
                            SetRequestDetails('Post'),                            
                            SetRequestHeaders('Authentication', 'Token'),
                            SetRequestParams('html', 'enter html here'),
                            SetRequestAuthenticationNone(),
                            SetRequestFiles(),
                            SetRequestExpected('OK' ),
                            SetRequestActionPass(
                                                   CreateNote('title', 'account', [account.accountid] , 'note', 'result.pdf', 'application/pdf', GetVar('file')) 
                                                 ),
                            SetRequestActionFail()
                ) 
                           </span></a></li>
                           
                           <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><span></span></a></li>
                                    <li class="file"><a class="ui-link"><b><span title="RestSamples">*** Convert some HTML in an attachment to a PDF document and store result as a attachment ***</span></b></a></li>
                                    <li class="file"><a class="ui-link"><span title="">CallRestAPI(
                            SetRequestBaseURL('https://htmlpdfapi.com/api/v1'),
                            SetRequestResource('/pdf'),
                            SetRequestDetails('Post'),                            
                            SetRequestHeaders('Authentication', 'Token'),
                            SetRequestParams(),
                            SetRequestAuthenticationNone(),
                            SetRequestFiles(
                                              SetRequestFile('file',
                                                             Base64Decode(FindValue('annotation', 'objectid', [account.accountid],'documentbody')),
                                                            'file.html',
                                                            'plain/text')
                                                          ),
                            SetRequestExpected('OK' ),
                            SetRequestActionPass(
                                                  CreateNote('title', 'account', [account.accountid] , 'note', 'result.pdf', 'application/pdf', GetVar('file'))
                                                ),
                            SetRequestActionFail()
                           )
                           </span></a></li>

                                </ul> 
                            </li> 
                              <li class="folder"><a class="ui-link"><span>Native Services</span></a> 
                                <ul> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns the latitude and longitude of the given address.<br></br> <i>  GeoCodeBing('16771 NE 72nd Way', 'Redmond', 'WA', '98052', 'USA') Returns '47.66898|-122.11675' </i><br></br>The bing maps key need to be entered in on the North52 Configuration entity">GeoCodeBing('addressLine', 'locality', 'adminDistrict', 'postalCode', 'countryRegion')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns the exchange rate between 2 curriences.<br></br>The Open Exchange Rates APP ID is stored on the North52 Configurtion object.">GetExchangeRate('from', 'to')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Returns the translation of the given text. The second and third parameters are optional. <br></br> <i>  Translate('Merci') Returns 'Thank you' </i>(Assumes user setting is set to English) <br></br> <i> Translate('Dank', 'de') Returns 'Thanks' </i> (German text to English) <br></br>The bing translator credentials need to be entered in on the North52 Configuration entity">Translate('text', 'to', 'from')</span></a></li> 
                                </ul> 
                            </li> 

                           <li class="folder"><a class="ui-link"><span>SharePoint Services</span></a> 
                                <ul> 
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Create a SharePoint File <br></br> <i> SharePointCreateFile('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'https://north52.sharepoint.com/CRMSite/CRMDocuments/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Test.pdf',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FindValue('annotation', 'objectid', [quote.quoteid], 'documentbody' ),</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePointSetItemMetaData('QuoteID', [quote.quotenumber] )<br></br> ) </i>">SharePointCreateFile('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'replaceexistingfile', 'documentlibrary', 'filename', 'documentdata', SharePointSetItemMetaData('fieldname', 'fieldvalue'))</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Create a SharePoint Folder <br></br> <i>SharePointCreateFolder('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'https://north52.sharepoint.com/CRMSite/CRMDocuments/FolderName'</br>&nbsp;&nbsp;&nbsp;&nbsp;) ">SharePointCreateFolder('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'foldertocreate')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Create a SharePoint Site <br></br> <i>SharePointCreateSite('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'MySite',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'MySite',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MySite,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '1033',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'sts',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'false' )<br></br> ) </i>">SharePointCreateSite('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'siteurlname', 'sitename', 'sitedesc', 'language', 'template', 'uniquepermissions')</span></a></li>
                            
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Delete a SharePoint File  <br></br> <i> SharePointDeleteFile('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'https://north52.sharepoint.com/CRMSite/CRMDocuments/Test.pdf'</br>&nbsp;&nbsp;&nbsp;&nbsp;) ">SharePointDeleteFile('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'filetodelete')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Find SharePoint documents for a particular record via fetchxml. <br></br><i>SharePointFindDocumentsByFetchXml('account','jhj3434343-764h-kj62-7djdkslckddc')</i>">SharePointFindDocumentsByFetchXml('entityname','recordid')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Get a SharePoint file <br></br> <i> CreateNote('title', 'contact', [contact.contactid] , 'notetext', 'john99.txt', 'text/plain',<br></br> SharePointGetFile('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'https://north52.sharepoint.com/CRMSite/CRMDocuments/john.txt'</br>&nbsp;&nbsp;&nbsp;&nbsp; )<br></br> ) </i>">SharePointGetFile('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'filetoretrieve')</span></a></li>
                           
                                    <li class="file"><a class="ui-link"><span class="helpId" title="SharePoint Get Item Metadata<br></br> <i>SmartFlow(</br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePointGetItemMetaData('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true,</br> 'Test.pdf'),</br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetVarJsonValue('d.Title') + GetVarJsonValue('d.GUID')<br></br> ) </i>">SharePointGetItemMetaData('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'filename')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="SharePoint Update Item Metadata<br></br> <i>SharePointUpdateItemMetaData('https://north52.sharepoint.com/CRMSite/',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bill@north52.com',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true,</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true,</br> 'Test.pdf',</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SharePointSetItemMetaData('QuoteID', [quote.quotenumber] )<br></br> ) </i>">SharePointUpdateItemMetaData('sharepointsite', 'sharepointusername', 'sharepointuserpassword', 'issharepointonline', 'filename', 'metadata')</span></a></li>
                                    <li class="file"><a class="ui-link"><span class="helpId" title="Allows you to set SharePoint Metadata when creating SharePoint files.<br></br> Only used as the last parameter of the SharePointCreateFile() function. See that function for an example. <br></br><i>Use the search function to see examples.</i>">SharePointSetItemMetaData('fieldname', 'fieldvalue', 'fieldname', 'fieldvalue')</span></a></li>
                                   
                                </ul> 
                            </li> 

                          </ul> 
                       </li> 

                  <li    class="folder"><a class="ui-link"><span>xCache</span></a> 
                        <ul> 
                                <li class="file"><a class="ui-link"><b><span title="xCacheGlobal">*** xCache Global ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the xCache value for the given key for the Global xCache.<br></br> <i> xCacheGetGlobal('Greeting') Returns Hello</i>">xCacheGetGlobal('key', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><span></span></a></li>
                                <li class="file"><a class="ui-link"><b><span title="xCacheLocal">*** xCache Local ***</span></b></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Adds a calculated field to an existing local xCache collection.<br></br> <i>   xCacheAddCalculatedFieldLocal('AllOrders', 'Total', 'Double', 'new_quantity * new_price') </i>">xCacheAddCalculatedFieldLocal('key', 'name', 'datatype', 'expression')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns a calculated value from  the local xCache collection based on an optional filter.<br></br> <i> xCacheCalculateLocal('Accounts', 'Sum(numberofemployees)', 'address1_city = &quot;London&quot; ', '0') Returns 2734</i>">xCacheCalculateLocal('key', 'expression', 'filter', 'defaultvalue')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Loads an xCache collection from based on an existing collection with a supplied filter.<br></br> <i>  xCacheFilterLocal('AllAccounts', 'address1_country =  &quot;USA&quot; ', 'address1_city')</i>">xCacheFilterLocal('key', 'filter', 'sort')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Returns the xCache value for the given key for the Local xCache.<br></br> <i>  xCacheGetLocal('AllAccounts', 'description') Returns Hello</i>">xCacheGetLocal('key', 'fieldname', 'defaultvalue', 'rownumber')</span></a></li>
                                <li class="file"><a class="ui-link"><span class="helpId" title="Loads an xCache collection from an EntityCollection.<br></br> <i>  xCacheLoadLocal('AllAccounts', FindRecords('account', '*', '*', '*')) </i>">xCacheLoadLocal('key', 'entitycollection')</span></a></li>
 
                        </ul> 
                    </li> 
                  
                  </ul></div>
                </div> <!---Tab--->


                <div id="tabs-source">
                        <div id="refreshContainer-source" style="display:flex;align-items:center;" class="refresh-container">
                        	<input id="txtFindSource"  class="controls-input" style="border:1px solid gray; width: 90%;" type="text" placeholder="Search source..."  /> 
                        	<input id="clearSource" style="padding-left: 10px; padding-right: 3px;"  onclick="North52.FormulaEditor.ClearSource();" type="image" src="north52_/css/image_clear" > 
                      		<input id="refreshSource" style="float: right;" onclick="North52.FormulaEditor.RefreshSource();" type="image" src="north52_image_refresh"> 
                        </div>
                        
                        <div id="targetContainer" style="height: 93%; overflow: auto">  
                        
                        <ul id="treesource">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Source</span></a>
                            </li>
                        </ul>
  

                        <ul id="treerelated">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Related (N:1)</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>
                        
                        <ul id="treerelatednn">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Related (N:N)</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>

                        <ul id="treeforms">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Forms</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>

                        
                        <ul id="treeprocesses">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Processes</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>

                        <ul id="treexcache">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>xCache</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>

                        <ul id="treecalculations">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Calculations</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">None found.</span></a></li>
                                </ul>
                            </li>
                        </ul>

                         <ul id="treedecisioncalculations">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Decision Table Calculations</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">None found.</span></a></li>
                                </ul>
                            </li>
                        </ul>

                        <ul id="treeactions">
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span>Actions</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">None found.</span></a></li>
                                </ul>
                            </li>
                        </ul>
                      </div>

                    </div> <!---Tab--->

                <div id="tabs-explore">

                        <div id="refreshContainer-explore" class="refresh-container">
                            <input id="txtFindExplore" class="controls-input" style="border:1px solid gray; width: 70% !important;" type="text" placeholder="Search explore..."  />&nbsp;&nbsp;&nbsp;&nbsp;
                            <div class="controls">
	                            <select class="controls-input-select" id="exploregenerator" onchange="North52.FormulaEditor.ExploreGenerator();">
	                                <option value="Select Generator">Select Generator</option>
	                                <option value="CreateRecord">CreateRecord</option>
	                                <option value="UpdateRecord">UpdateRecord</option>
	                                <option value="UpdateRecord">UpdateCreateRecord</option>
	                                <option value="XML">XML</option>
	                                <option value="JSON">JSON</option>
	                            </select>&nbsp;&nbsp;
	                        </div>
                            <input id="refreshExplore" type="image" src="north52_image_progress">
                        </div>

                     
                        <div id="targetContainer" style="height: 93%; overflow: auto">  

                        <ul id="treeexplore" >
                            <li style="padding-top: -5px; padding-bottom: -5px;" class="folder">
                                <a class="ui-link"><span >Entities</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>

                                </ul>
                            </li>
                        </ul>

					  </div>
                    </div> <!---Tab--->
                    
             
                    
                    
                <div id="tabs-fetchxml">

                      <div id="refreshContainer-fetchxml" class="refresh-container">
                        <input id="txtFindFetchXml"  class="controls-input" style="border:1px solid gray; width: 90%;" type="text" placeholder="Search fetch-xml..."  /> 
                        <input id="addFetchXml"  style="padding-left: 10px; padding-right: 3px; height:12px;" onclick="North52.FormulaEditor.AddFetchXML();" type="image" src="north52_image_bpa_add"> 
                        <input id="refreshFetchXml" style="float: right;" onclick="North52.FormulaEditor.RefreshSource();" type="image" src="north52_image_refresh"> 
                      </div>
                        
                        <div id="targetContainer" style="height: 93%; overflow: auto">  
                        

                        <ul id="treedetail">
                            <li  class="folder">
                                <a class="ui-link"><span>Query Details</span></a>
                                <ul>
                                    <li class="file"><a class="ui-link"><span title="">Loading...</span></a></li>
                                </ul>
                            </li>
                        </ul>
                        
                        </div>

					
                    </div> <!---Tab--->

                </div> <!---Tabs--->
            </div> <!---Panel1--->

            <div id="panel2alpha">

                <ul class="wijmo-wijribbon wijmo-wijribbon-simple ui-state-default ui-helper-clearfix" id="flyoutmenu" style="margin: 0px; border: 0px currentColor; width: 100%; height: 34px; position: relative; border-image: none;">
                    <li>
                        <a href="#">Operators</a>
                        <ul>
                            <li><a href="#">+</a></li>
                            <li><a href="#">-</a></li>
                            <li><a href="#">*</a></li>
                            <li><a href="#">/</a></li>
                            <li><a href="#">!</a></li>
                            <li><a href="#">=</a></li>
                            <li><a href="#">!=</a></li>
                            <li><a href="#">&lt;</a></li>
                            <li><a href="#">&gt;</a></li>
                            <li><a href="#">In</a></li>
                            <li><a href="#">Or</a></li>
                            <li><a href="#">And</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Snippets</a>
                        <ul>
                            <li><a href="#">NoOp</a></li>
                            <li><a href="#">Case</a></li>
                            <li><a href="#">If</a></li>
                            <li><a href="#">IfTrue</a></li>
                            <li><a href="#">ForEachRecord</a></li>
                            <li><a href="#">DoLoop</a></li>
                            <li><a href="#">SmartFlow</a></li>
                            <li><a href="#">Comment</a></li>
                        </ul>
                    </li>

                    <li>
                        <a href="#">Commands</a>
                        <ul>
                            <li><a href="#">Toggle Editor</a></li>
                        </ul>
                        
                    </li>

                    <div id="ribbon" style="height: 26px; float: right;">
                        <button type="button" name="btnValidate" title="Performs a basic and advanced syntax check on your formula. &#10;&#10;Note 1: You must save your formula changes before the advanced syntax check will pick them up." class="wijmo-wijribbon-button-validate"></button>
                        <button type="button" name="btnClear" title="Clears the contents of the formula description " class="wijmo-wijribbon-button-clear"></button>
                        <button type="button" name="btnFunctionWizard" title="Function Wizard" class="wijmo-wijribbon-button-function" onclick="$('#dialogFunctionWizard').wijdialog('open')"></button>
                        <button type="button" name="btnRunCommand" title="Executes the formula. Only available for formulas of type Command Console" class="wijmo-wijribbon-button-command"></button>
                    </div>

                </ul>
                
               
               
                <textarea class="ui-helper-reset" id="formulabox" style="border: 1px solid gray; width: 100%; height: 21px; overflow: hidden; margin-top: 2px; margin-bottom: 2px; display: none; resize: none;" spellcheck="false" onblur="North52.FormulaEditor.SetCursorPositionFormulaBox();"></textarea>


                     
                <div id="ss" style="border: 1px solid gray; width: 99.7%; height: 87%; display: none;"> </div>
                
                <div id="formula"></div>
                        

                        <div title="Function Wizard" id="dialogFunctionWizard">
                        </div>
                        <div title="Execute Command" id="dialogExecuteCommand">
                        </div>

                          <ul id="contextMenu" >
						    <li><a><span class="wijmo-wijmenu-text n52-menu-item">Cut</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Copy</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Paste</span></a></li>
                            <hr>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Insert Row</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Insert Condition</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Insert Action</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Insert Decision Sheet</span></a></li> 
                            <hr>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Delete Row</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Delete Column</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Delete Sheet</span></a></li>
                            <hr>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Toggle Column Or</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Toggle Formula Box</span></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item">Toggle Advanced Mode</span></a></li>
                            <hr>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item"> Exit this Decision Table on First Match </span><input style="margin-left:8px;margin-top:0px;margin-bottom:0px;" id="cbx_exitfirstmatch" type="checkbox" checked="checked"></a></li>
                            <li><a><span class="wijmo-wijmenu-text n52-menu-item"> Exit All Decision Tables on First Match </span><input style="margin-left:8px;margin-top:0px;margin-bottom:0px;" id="cbx_exitfirstmatchall"  type="checkbox" checked="checked"></a></li>
                            
                        </ul>

                    </div> <!---panel2alpha--->

                </div> <!---Splitter--->

            </div><!---Container--->

</body></html>