Skip to main content

For those times an action sequence just isn’t beneficial without significant inputs, use the action sequence to copy / paste actions somewhere.


Follow these steps:


  1. Convert to an action sequence


  1. Break it back down in it’s original location

Screenshot 2023-03-17 9.06.00 AM


  1. Add the new sequence to another location


  1. Break it down

Screenshot 2023-03-17 9.06.00 AM


  1. Update the settings of each step as needed.

Voila. I’ve often used this to build just that much faster without having to think too hard. 😉

Can you share an example of when the inputs required make it impractical to consolidate to a sequence? We’ve been thinking about moving all actions to a consolidated list - actually to promote reuse - and wonder what problems are forcing you to break out the action into a separate instance?


Bad example but the premise it is the same. This example is pretty much at the tipping point of being better off as separate actions. Knowing upfront that you would be better off making an action sequence also is a factor of doing so or not. Point of no return in order to gain efficiency sorta thing.


This page originally was just actions in the table of global actions. Also, I know table toggle filters is a much better way of doing this on this page. I was practicing on the page. 😉


<skuid__page unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false">
<models>
<model id="UIOnly" limit="20" query="true" datasource="Ui-Only" createrowifnonefound="true">
<fields>
<field id="Filter" displaytype="PICKLIST" length="255" label="Filter" ogdisplaytype="TEXT" picklistsource="manual" returntype="TEXT" defaultvaluetype="fieldvalue" defaultValue="Yesterday">
<picklistentries>
<entry value="Today" label="Today"/>
<entry value="Yesterday" label="Yesterday"/>
<entry label="Last 7 Days" value="Last 7 Days"/>
</picklistentries>
</field>
</fields>
<conditions/>
<actions/>
</model>
<model id="PagesRevisionsAgg" limit="" query="true" createrowifnonefound="false" datasource="salesforce" sobject="skuid__Page_Version__c" type="aggregate" queryallrows="true" orderby="COUNT(Id) DESC">
<fields>
<field id="Id" name="countId" function="COUNT"/>
<field id="CreatedDate" name="maxCreatedDate" function="MAX"/>
<field id="CreatedDate" name="minCreatedDate" function="MIN"/>
</fields>
<conditions>
<condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableoff" inactive="true" name="Today"/>
<condition type="fieldvalue" value="YESTERDAY" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableon" inactive="false" name="Yesterday"/>
<condition type="fieldvalue" value="LAST_N_DAYS:7" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableoff" inactive="true" name="Last 7 Days"/>
</conditions>
<actions/>
<groupby method="simple">
<field id="skuid__Page__c" name="skuidPagec"/>
<field id="skuid__Page__r.Name" name="skuidPagerName"/>
<field id="skuid__Page__r.skuid__Module__c" name="skuidPagerSkuidModulec"/>
</groupby>
</model>
<model id="PagesRevisions" query="false" createrowifnonefound="false" datasource="salesforce" sobject="skuid__Page_Version__c" queryallrows="true" limit="" orderby="CreatedDate DESC">
<fields>
<field id="skuid__Page__c"/>
<field id="skuid__Page__r.Name"/>
<field id="CreatedDate"/>
<field id="Name"/>
</fields>
<conditions>
<condition type="fieldvalue" value="" enclosevalueinquotes="true" field="skuid__Page__c" fieldtargetobjects="skuid__Page__c" clientorserver="server" state="filterableoff" inactive="true" name="skuid__Page__c"/>
<condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableoff" inactive="true" name="Today"/>
<condition type="fieldvalue" value="YESTERDAY" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableoff" inactive="true" name="Yesterday"/>
<condition type="fieldvalue" value="LAST_N_DAYS:7" enclosevalueinquotes="false" field="CreatedDate" clientorserver="server" state="filterableoff" inactive="true" name="Last 7 Days"/>
</conditions>
<actions/>
<groupby method="simple"/>
</model>
</models>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="PagesRevisionsAgg" uniqueid="sk-3e2K-24157" mode="readonly" showSaveCancel="false" pageSize="10" enableDrawers="true">
<fields>
<field id="Id" name="countId" label="Count id" uniqueid="fi-3e2K-24717"/>
<field id="skuid__Page__r.Name" name="skuidPagerName" label="Skuid Page" uniqueid="fi-3e4T-68110"/>
<field id="skuid__Page__r.skuid__Module__c" name="skuidPagerSkuidModulec" label="Module" uniqueid="fi-3e4m-74339"/>
<field id="CreatedDate" name="minCreatedDate" label="Min created date" uniqueid="fi-3e4w-75794"/>
<field id="CreatedDate" name="maxCreatedDate" label="Max created date" uniqueid="fi-3e4w-75795"/>
</fields>
<filtering enableSearch="false"/>
<actions displayType="attached">
<action type="multi" label="Today">
<actions>
<action type="action-sequence" action-sequence-id="c4ac4c74-5a20-4013-bfcf-6cd3976478ea">
<inputs>
<input name="RevAgg" value="PagesRevisionsAgg"/>
<input name="RevDetails" value="PagesRevisions"/>
<input name="" value="Today"/>
<input name="Rev Details Condition To Activate" value="Today"/>
<input name="Rev Agg Condition To Activate" value="Today"/>
<input name="Rev Details" value="PagesRevisions"/>
<input name="Filter" value="Today"/>
</inputs>
</action>
</actions>
<renderConditions logictype="and"/>
<enableconditions logictype="and">
<condition type="multiple" fieldmodel="UIOnly" sourcetype="fieldvalue" sourceproperty="isNew" operator="in" nosourcerowbehavior="deactivate" field="Filter" value="" enclosevalueinquotes="true">
<values>
<value>Yesterday</value>
<value>Last 7 Days</value>
</values>
</condition>
</enableconditions>
<styleVariantConditions/>
</action>
<action type="multi" label="Yesterday">
<actions>
<action type="action-sequence" action-sequence-id="c4ac4c74-5a20-4013-bfcf-6cd3976478ea">
<inputs>
<input name="RevAgg" value="PagesRevisionsAgg"/>
<input name="Rev Details" value="PagesRevisions"/>
<input name="Rev Agg Condition To Activate" value="Yesterday"/>
<input name="Rev Details Condition To Activate" value="Yesterday"/>
<input name="Filter" value="Yesterday"/>
<input name="RevDetails" value="PagesRevisions"/>
</inputs>
</action>
</actions>
<renderConditions logictype="and"/>
<enableconditions logictype="and">
<condition type="multiple" operator="in" fieldmodel="UIOnly" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Filter" value="" enclosevalueinquotes="true">
<values>
<value>Today</value>
<value>Last 7 Days</value>
</values>
</condition>
</enableconditions>
<styleVariantConditions/>
</action>
<action type="multi" label="Last 7 Days">
<actions>
<action type="action-sequence" action-sequence-id="c4ac4c74-5a20-4013-bfcf-6cd3976478ea">
<inputs>
<input name="RevAgg" value="PagesRevisionsAgg"/>
<input name="Rev Details" value="PagesRevisions"/>
<input name="Rev Agg Condition To Activate" value="Last 7 Days"/>
<input name="Rev Details Condition To Activate" value="Last 7 Days"/>
<input name="Filter" value="Last 7 Days"/>
<input name="RevDetails" value="PagesRevisions"/>
</inputs>
</action>
</actions>
<renderConditions logictype="and"/>
<enableconditions logictype="and">
<condition type="multiple" operator="in" fieldmodel="UIOnly" sourcetype="fieldvalue" nosourcerowbehavior="deactivate" field="Filter" value="" enclosevalueinquotes="true">
<values>
<value>Today</value>
<value>Yesterday</value>
</values>
</condition>
</enableconditions>
<styleVariantConditions/>
</action>
</actions>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true" sanitizeRecords="true"/>
<sorting enable="false"/>
<drawer>
<beforeLoad>
<action type="blockUI" styleSettingsVariant="dark"/>
<action type="updateCondition" model="PagesRevisions" behavior="set" condition="skuid__Page__c" valuesource="formula">
<formula>{{skuidPagec}}</formula>
</action>
<action type="requeryModels" behavior="loadmore">
<models>
<model>PagesRevisions</model>
</models>
</action>
<action type="unblockUI"/>
</beforeLoad>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="PagesRevisions" uniqueid="sk-3e2v-42023" mode="read" pageSize="Infinity">
<fields>
<field id="Name" redirectType="none" uniqueid="fi-3e33-48017">
<renderConditions logictype="and" onhidedatabehavior="keep"/>
<enableConditions/>
<styleVariantConditions/>
</field>
<field id="CreatedDate" uniqueid="fi-3e2--43934"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true" sanitizeRecords="true"/>
<sorting enable="false"/>
<conditions>
<condition type="contextrow" field="skuid__Page__c" mergefield="skuidPagec" operator="=" fieldtargetobjects="skuid__Page__c"/>
</conditions>
</skuid__table>
</components>
</drawer>
<renderConditions logictype="and"/>
<styleVariantConditions/>
<filters/>
</skuid__table>
</components>
<resources>
<labels/>
<javascript/>
<css/>
<actionsequences>
<actionsequence id="c4ac4c74-5a20-4013-bfcf-6cd3976478ea" label="Set Date" type="reusable">
<actions>
<action type="blockUI" styleSettingsVariant="dark"/>
<action type="deactivateFilterableConditions">
<models>
<model>{{$Input.RevAgg}}</model>
<model>{{$Input.RevDetails}}</model>
</models>
</action>
<action type="updateCondition" model="{{$Input.RevAgg}}" behavior="activate" condition="{{$Input.Rev Agg Condition To Activate}}"/>
<action type="updateCondition" model="{{$Input.RevDetails}}" behavior="activate" condition="{{$Input.Rev Details Condition To Activate}}"/>
<action type="requeryModels" behavior="standard">
<models>
<model>{{$Input.RevAgg}}</model>
<model>{{$Input.RevDetails}}</model>
</models>
</action>
<action type="updateRow" fieldmodel="UIOnly" affectedrows="context">
<updates>
<update valuesource="formula" field="Filter" enclosevalueinquotes="true" value="{{$Input.Filter}}">
<formula>{{$Input.Filter}}</formula>
</update>
</updates>
</action>
<action type="unblockUI"/>
</actions>
<description/>
<inputs>
<input type="model-condition" name="Rev Agg Condition To Activate" model-source="RevAgg"/>
<input type="model" name="RevAgg"/>
<input type="model-condition" name="Rev Details Condition To Activate" model-source="RevDetails"/>
<input type="model" name="RevDetails"/>
<input type="value" name="Filter"/>
</inputs>
</actionsequence>
</actionsequences>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuid__page>

Reply