<tooltips>
  <entity name="north52_schedule">
<attribute name="north52_fetchxmlquerylimit_c">
      <height>200</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This relates to how many records can be retrieved by a single fetch xml call</td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
<attribute name="north52_pagingcookie_c">
      <height>200</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This stores and provides the paging information required between calls</td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
<attribute name="north52_maxpagecount_c">
      <height>200</height>
      <width>300</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This relates to the end position of the page count in relation to the defined Advanced Find Query (fetch-xml). </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If you have a query returning 1,000 records in total and the  Query Record Limit set to 250 then you will have 4 pages to process.  </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- So if you just wanted to process the set of records in the range 250-750  you would set the Min Page Count to 2 and the Max Page Count to 3. </td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
<attribute name="north52_minpagecount_c">
      <height>200</height>
      <width>300</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This relates to the starting position of the page count in relation to the defined Advanced Find Query (fetch-xml). </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If you have a query returning 1,000 records in total and the  Query Record Limit set to 250 then you will have 4 pages to process.  </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- So if you just wanted to process the last 500 records you would set the Min Page Count to 3. </td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
 <attribute name="north52_currentpagecount_c">
      <height>200</height>
      <width>300</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The current page count relates to what page of the record set the schedule is working on in relation to the Advanced Find Query (fetch-xml). </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If you have a query returning 1,000 records in total and a Query Record Limit set to 250 then you will have 4 pages to process.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td> Then for each workflow instance executed in the background a single page of 250 records will be processed and the current page count will increment by 1 each time.</td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
 <attribute name="north52_queryrecordlimit_c">
      <height>100</height>
      <width>250</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Controls how many records will be retrieved by the Advanced Find (fetch-xml) query. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
 <attribute name="north52_maxinfiniteloopdepth_c">
      <height>300</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Allows you to sync. your CRM platform setting for infinite loop detection. The default set by Microsoft is 8 so this field defaults within a schedule to 8. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If you are using an on premise \ ifd installation you can increase the 'MessageProcessorMaximunDepth' setting to allow for more recrusive calls if required.  </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- So if we wanted to increase from the default of 8 to 16 we have two options available, </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>via SQL Server:</b> </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- update DeploymentProperties set IntColumn = 16 where columnname = 'MessageProcessorMaximunDepth'. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>via PowerShell</b> (http://msdn.microsoft.com/en-us/library/gg328563.aspx) </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- On the CRM Server, Start PowerShell and enter the commands, </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Add-PSSnapin Microsoft.Crm.PowerShell </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>$setting = Get-CrmSetting WorkflowSettings </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>$setting.MaxDepth=16 </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Set-CrmSetting $setting </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
 <attribute name="north52_mininactiveseconds_c">
      <height>300</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Allows you to sync. your CRM platform setting for minimim inactive seconds. The default set by Microsoft is 3600 so this field defaults within a schedule to 3600. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If you are using an on premise \ ifd installation you can reduce the 'MessageProcessorMinimumInactiveSeconds' setting to allow for a schedule to be active for more than the default of 1 hour.  </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- So if we wanted to reduce the default of 3600 (1 hour) to 6 (10 minutes) we have two options available, </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>via SQL Server:</b> </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- update DeploymentProperties set IntColumn = 600 where columnname = 'MessageProcessorMinimumInactiveSeconds' . </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>via PowerShell</b> (http://msdn.microsoft.com/en-us/library/gg328563.aspx) </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- On the CRM Server, Start PowerShell and enter the commands, </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Add-PSSnapin Microsoft.Crm.PowerShell </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>$setting = Get-CrmSetting WorkflowSettings </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>$setting.MinInactiveSeconds=600 </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Set-CrmSetting $setting </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_name_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The name of the schedule. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_workflowid_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The selected workflow that will execute against each record retrieved by the query defined in the advanced find. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_stopschedule_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- If this field is set to true the schedule will no longer process any records. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_startdatetime_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Indicates the start date and time that this schedule will start processing. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_scheduletype_c">
      <height>300</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>Entity Update:</b> Means that for all the records retrieved by the query in the advanced find, an update command will be executed against these records. What it does is just set the columns to the same values as they are but this in turn can trigger workflows and formulas. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- So if you had the field 'name' on the account entity being retrieved then an update command setting the name of the account record to itself would occur.  
 </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This is the primary mechanism to use if you had to execute formulas associated to an entity. As if the formula was set to trigger off the field being update then the formula would execute. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>Workflow:</b> Means that for all the records retrieved by the query in the advanced find, a workflow will be executed for each record as defined by the selected workflow </td><td></td></tr>
<tr><td></td><td></td></tr>

</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_nextrundatetime_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Indicates the next datetime that the schedule will execute. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_maxexecutioncount_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Used to put a limit on the number of times a schedule can execute. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_lastrundatetime_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Indicates the last datetime that the schedule sucessfully executed. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_everyx_c">
      <height>100</height>
      <width>300</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Used in a frequency with a name of 'Every X' is used. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- It just takes a whole number field so if it was set to 4 and the frequency was set to 'Every X hours', then this would mean the schedule would execute every 4 hours. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_enddatetime_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This date indicates when to stop a schedule from processing. So if the end date has expired then the Stop Schedule field will be set to true and the schedule will stop. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_currentexecutioncount_c">
      <height>200</height>
      <width>300</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Keeps a running counter of the number of times this schedule has executed. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This field is used in conjunction with the Max Execution Count if you need to put a limit on the number of times you want a schedule to execute. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
   
    <attribute name="north52_frequency_c">
      <height>100</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Indicates how often the schedule will execute. </td><td></td></tr>
<tr><td></td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>
  </entity>
  <entity name="north52_formula">
    <attribute name="north52_name_c">
      <height>125</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The name of the formula. </td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This is automatically generated by the system but can be modified at anytime.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The name of the formula is used if you are using formulas of type Calculated Field, Calculated Hyperlink or any of the Notification formula types. As when you place a Web Resource control on to an entity form you need to specify the formula name.</td><td> </td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_autonumbervalue_c">
      <height>100</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Stores the current value for a formula of type autonumber.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- It will increment each time a record is created of the type defined in the source entity.</td><td> </td></tr>
</table>-->
      </tooltip>
    </attribute>
    <attribute name="north52_formulatype_c">
      <height>400</height>
      <width>700</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>AutoNumber</b></td><td>Select this option when you need to generate an auto number which increments by defined value.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Calculated Field</b></td><td>Select this option when you need to just display the results of a formula on an entity form.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Calculated Hyperlink</b></td><td>Select this option when you need to just display the results of a formula on an entity form & you want the result to be in the form of a hyperlink.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>ClientSide - Perform Action</b></td><td>Select this option when you need to perform an action on a form such as hide tab, filter a picklist, add a custom view.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>ClientSide - Calculation</b></td><td>Select this option when you need use the result of a formula within your own Javascript code.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Dialog\Workflow Result</b></td><td>Select this option when you need to execute a formula as part of a dialog\workflow where a result is needed.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Notification Critical</b></td><td>Select this option when you need to display the results of a formula at the top of an entity form with a critical icon.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Notification Information</b></td><td>Select this option when you need to display the results of a formula at the top of an entity form with a information icon.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Notification Warning</b></td><td>Select this option when you need to display the results of a formula at the top of an entity form with a warning icon.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Save - To Parent</b></td><td>Select this option when you need the result of the formula to be saved to a parent of the source entity. These are typically for N:1 relationships.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Save - To Children</b></td><td>Select this option when you need the result of the formula to be saved to the children of the source entity. These are typically for 1:N relationships.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Save - To Current Record</b></td><td>Select this option when you need to save the result of the formula into a field on the same entity as the source entity.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Save - Perform Action</b></td><td>Allows you to perform an action on the save event. e.g. Create a note, etc.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Validation</b></td><td>Select this option when you need to provide validation of data within fields. This allows you to stop a user from entering in data on a form unless is passes your data validation requirements.</td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="north52_displayformat_c">
      <height>125</height>
      <width>250</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Only applicable for the formula type Calculated Field.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Allows you to control how the results of a formula will display on an entity form.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- You will need to choose the correct format depending on the result of the formula.</td><td> </td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="north52_validationmessage_c">
      <height>125</height>
      <width>400</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Allows for a message to be displayed to a user.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- You can define custom strings with parameter placeholders that can be used in the formula. Typically they are used to display messages to the user.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The north52_formula entity translation file can be exported out and multiple languages can then be specified so that the message is in the language of the user.</td><td> </td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="north52_pipelinestage_c">
      <height>125</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>PreValidation - Synchronous</b></td><td>Executes the formula before the source entity completes its operation and is outside the transaction.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>PreOperation - Synchronous</b></td><td>Executes the formula before the source entity completes its operation and is inside the transaction.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>PostOperation - Asynchronous</b></td><td>Executes the formula after the source entity completes its operation.</td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="north52_pipelineevent_c">
      <height>125</height>
      <width>400</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Create</b></td><td>Only executes the formula when a record from the source entity is created.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Create\Update</b></td><td>Executes the formula when a record from the source entity is created or updated.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Update</b></td><td>Only executes the formula when a record from the source entity is updated.</td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="WebResource_html_sourceentity_c">
      <height>100</height>
      <width>400</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The source entity is in effect the trigger entity.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This means when a record from this entity gets created \ updated the associated formula will execute.</td><td> </td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="WebResource_html_metadata_sourceproperty_c">
      <height>150</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The source entity property is in effect the trigger property.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This means that the formula will only execute when this property on the source entity gets created, updated or deleted. </td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This allows for alot of control over when a formula executes and also helps performance as the formula does not execute for every change.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The one exception to when this field is not used to determine if the formula should execute is if the formula type is validation and the occuring event create. In this case the formula will always execute. </td><td> </td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="WebResource_html_sourcerelationship_c">
      <height>125</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This is the property on the source entity that is used to navigate up to the parent entity of the source entity.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- What you choose here controls what entity appears in the Target Entity picklist.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td> </td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="WebResource_html_targetentity_c">
      <height>350</height>
      <width>250</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Defines where the result of the formula will go. This value is calculated by the system and depends on the formula type choosen.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Formula type: Save to parent</br>
Displays a single entity name which is dervied from the source relationship property.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Formula type: Save to current entity</br>
Displays the same entity name as the source.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Formula type: Save to children</br>
Displays the list of formula detail query names which are of type target.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Note:</b></br>
When the formula type is 'Save - To Children', you will need to define a formula detail record of type Target for data to appear here. You will also need to click the refresh button in the ribbon when the formula detail record has just been created to get the data to display.</td><td> </td></tr>

</table>-->

      </tooltip>
    </attribute>

    <attribute name="north52_executionorder_c">
      <height>200</height>
      <width>500</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This field is used to specify the execution order of formulae that are hooked into an entity.</td><td></td></tr>
<tr><td><td><td></td></tr>
<tr><td>-This is primarily used when you want to use the output of one formula as the input to another formula. This means that you can effectively daisy chain formulae together that are all related to one entity, pipeline stage & pipeline event combination <td><td></td></tr>
<tr><td><td><td></td></tr>
<tr><td>-The Execution Order field just takes a whole number as input so if you set it to 1 this will be the first formula to execute & if you set it to 2 then this would be the second formula to execute for one entity, pipeline stage & pipeline event combination <td><td></td></tr>

</table>-->
      </tooltip>
    </attribute>

 <attribute name="north52_mode_c">
      <height>200</height>
      <width>500</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Client Side</b> Enables a formula to execute on a form (ClientSide) via either the onchange, onload, onsave form events.</td><td></td></tr>
<tr><td><td><td></td></tr>
<tr><td><b>Server Side</b> Enables a formula to execute on the server side typically via the create, update or delete events of a record.<td><td></td></tr>
<tr><td><td><td></td></tr>
<tr><td><b>Client Side & Server Side</b> Make the formula available for  both the Client & Server side.<td><td></td></tr>

</table>-->
      </tooltip>
    </attribute>



    <attribute name="WebResource_html_metadata_targetproperty_c">
      <height>75</height>
      <width>200</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Puts the result of the formula into this property on the target entity.</td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="north52_tracinglevel_c">
      <height>100</height>
      <width>400</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- This is allows you to turn on tracing for just one single formula. This tracing will output to the N52 Trace entity within Dynamics CRM. Here you will find all the system generated information about the execution of your formula.</td><td></td></tr>
</table>-->
      </tooltip>
    </attribute>


  </entity>
  <entity name="north52_formuladetail">
    <attribute name="north52_name_c">
      <height>550</height>
      <width>750</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td><b>Summary </b><br></br>
Formula Detail records allow you to define queries that can be executed as part of an overall formula. The Formula Detail query & its columns can be accessed from the main formula. You can define as many Formula Detail records as you need.
<br></br>
The following are the recommended set of steps to follow in creating a Formula Detail record,</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Step 1: ['Name']</b>  Give your Formula Detail record a descriptive name. This is used within the main formula to reference the formula detail results.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Step 2: ['Query Type'] </b>Ask yourself is this query just going to be another another data source (i.e. value(s) ) for the main formula, if so pick 'Source'. 
<br></br>
If the main formula type is 'Save - To Children' and you want to define a set of records that needs to be updated then pick 'Target'.  
 </td><td></td></tr>

<tr><td></td><td></td></tr>
<tr><td><b>Step 3: ['Generate Fetch Xml']</b> Create an Advanced Find query adding to it the necessary filtering, columns and sorting. When complete click the results button (red exclamation button) to see the results.</td><td></td></tr>
<tr><td></td><td></td></tr>

<tr><td><b>Step 4: ['Filter']</b> This allows you to alter the Advanced Find query at runtime based on the following values, 
<br></br>
Pick 'All records returned by Advanced Find (FetchXml Query)' if you want it to run exactly as it. This is great for getting ad-hoc data values into your formula.
<br></br>
 e.g. If you had a configuration entity that you used to store data values you can use this to bring them into your formula.  

<br></br>
Pick 'Only records that match the main formula source entity field' when you want to filter at runtime the records retrieved by injecting the source entity field value on the main formula. This is great for, 
<br></br>
e.g. When you want to sum up the estimate revenue values on opportunities for a particular account and use as a value in your formula.
<br></br>

Pick 'Only records that match the main formula target entity field' when you want to filter at runtime the records retrieved by injecting the target entity field value on the main formula. This is great for,
<br></br>
e.g. You are using the formula type 'Save - To Parent' where the source entity is opportunity and the target is account. This allows you 
to query all the estimate revenue for that particular account.</td><td></td></tr>
<tr><td></td><td></td></tr>

<tr><td><b>Step 5: ['Filter Relationship']</b> Lists the set of relationships on the primary entity in the Advanced Find that are valid for filtering purposes.
<br></br>
This is the field which will be injected into the Advanced Find query at runtime using the relevant value from the source\target entity.</td><td></td></tr>

</table>-->

      </tooltip>
    </attribute>
    <attribute name="north52_formula_north52_formuladetail_id_c">
      <height>50</height>
      <width>200</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The associated parent formula. </img></td><td></td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="north52_querytype_c">
      <height>100</height>
      <width>600</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Source</b></td><td>The query will be used in the execution of the formula to build the result.</td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Target</b></td><td>The query will be used to select records that will be updated by the formula with the result. This is displayed in the target entity name on the main formula when the formula type is set to Save - To Children.</td></tr>
</table>-->
      </tooltip>
    </attribute>

    <attribute name="north52_filter_c">
      <height>250</height>
      <width>600</width>
      <tooltip>

        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>All records returned by the Advanced Find (FetchXml Query)</b></td><td>Means the fetch Xml query (as defined by the Advanced Find) will run exactly as is.</td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Only records that match the main formula source entity field</b></td><td>Means that the fetch Xml query will be modified at runtime to only return records associated with the current source entity that
you have defined on the main formula.
<br></br>

e.g. You build an Advanced Find query that returns all opportunity records and the formula source entity is set to Account. So if you  were working on the Account named 'Microsoft' the system will filter the list of opportunities to only return the 'Microsoft' ones.</td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td><b>Only records that match the main formula target entity field</b></td><td>Means that the fetch Xml query will be modified at runtime to only return records associated with the current target entity that
you have defined on the main formula.
<br></br>
e.g. You build an Advanced Find query that returns all opportunity records and the formula target entity is set to Contact. So if you  were working on the Contact named 'Bill Gates' the system will filter the list of opportunities to only return the 'Bill Gates' ones.</td></tr>
</table>-->

      </tooltip>
    </attribute>

    <attribute name="WebResource_fm_relationship_c">
      <height>175</height>
      <width>400</width>
      <tooltip>
        <!--<table style='font-size:xx-small'>
<tr><td><img src="../WebResources/north52_image_note">&nbsp;<b>Tip</b></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- Lists the set of relationships on the primary entity in the Advanced Find that are valid for filtering purposes.</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>- The list is determined by using the entity named in the source\target in the main formula. </td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- And whether to use source or target is determined by the above selection in the 'Filter' field.</td><td> </td></tr>
<tr><td></td><td></td></tr>
<tr><td>- <b>Whenever an Advanced Find is defined and you click on the results button (red exclamation) you will need to click on this field (drop down) to refresh and select from the list of valid relationships.</b></td><td> </td></tr>
</table>-->
      </tooltip>
    </attribute>

  </entity>

</tooltips>