-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix naming, add workflow for configuration rule
- Loading branch information
Dylan Gerow
committed
Apr 24, 2018
1 parent
79c51d0
commit c24d5e1
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + ':' + 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> |