Skip to content

Commit

Permalink
fix naming, add workflow for configuration rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Gerow committed Apr 24, 2018
1 parent 79c51d0 commit c24d5e1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<members>SBQQ__TemplateSection__c</members>
<members>SBQQ__DiscountTier__c</members>
<members>SBQQ__TermCondition__c</members>
<members>SBQQ__ConfigurationRules__c</members>
<members>SBQQ__ConfigurationRule__c</members>
<name>Workflow</name>
</types>
<version>40.0</version>
Expand Down
24 changes: 24 additions & 0 deletions src/workflows/SBQQ__ConfigurationRule__c.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
<fieldUpdates>
<fullName>Set_External_Id</fullName>
<description>Sets External Id to be the concatenation of the Org Id and the Record Id.</description>
<field>cpqma_ExternalId__c</field>
<formula>$Organization.Id + &apos;:&apos; + CASESAFEID(Id)</formula>
<name>Set External Id</name>
<notifyAssignee>false</notifyAssignee>
<operation>Formula</operation>
<protected>false</protected>
</fieldUpdates>
<rules>
<fullName>Set External Id</fullName>
<actions>
<name>Set_External_Id</name>
<type>FieldUpdate</type>
</actions>
<active>true</active>
<description>Sets External Id to be the concatenation of the Org Id and the Record Id.</description>
<formula>OR( ISBLANK(cpqma_ExternalId__c), AND(ISNEW(),ISCLONE()) )</formula>
<triggerType>onAllChanges</triggerType>
</rules>
</Workflow>

0 comments on commit c24d5e1

Please sign in to comment.