Skip to content

Commit

Permalink
Flytter nksType__c og Case_sensitive__c fra crm-nks-base
Browse files Browse the repository at this point in the history
  • Loading branch information
olsenrasmus committed Jan 7, 2025
1 parent e8dbe10 commit c504035
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObjectTranslation xmlns="http://soap.sforce.com/2006/04/metadata"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label>Forkortelse</label>
<name>nksAbbreviationKey__c</name>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<label>Type</label>
<name>nksType__c</name>
<picklistValues>
<masterLabel>Abbreviation</masterLabel>
<translation>Forkortelse</translation>
</picklistValues>
<picklistValues>
<masterLabel>Regular</masterLabel>
<translation>Regulær</translation>
</picklistValues>
</CustomFieldTranslation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Case_sensitive__c</fullName>
<defaultValue>true</defaultValue>
<description>Check if quick text should be case sensitive.</description>
<externalId>false</externalId>
<inlineHelpText>Check if quick text should be case sensitive.</inlineHelpText>
<label>Case-sensitive</label>
<trackHistory>false</trackHistory>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>nksType__c</fullName>
<externalId>false</externalId>
<label>Type</label>
<required>false</required>
<trackHistory>false</trackHistory>
<type>Picklist</type>
<valueSet>
<restricted>true</restricted>
<valueSetDefinition>
<sorted>false</sorted>
<value>
<fullName>Regular</fullName>
<default>false</default>
<label>Regular</label>
</value>
<value>
<fullName>Abbreviation</fullName>
<default>false</default>
<label>Abbreviation</label>
</value>
</valueSetDefinition>
</valueSet>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>QuickText_Validation_Rule</fullName>
<active>true</active>
<errorConditionFormula>AND(ISPICKVAL(nksType__c, &quot;Abbreviation&quot;), ISBLANK(nksAbbreviationKey__c))</errorConditionFormula>
<errorDisplayField>nksAbbreviationKey__c</errorDisplayField>
<errorMessage>Abbreviation key cannot be empty for quick text of type Abbreviation.</errorMessage>
</ValidationRule>

0 comments on commit c504035

Please sign in to comment.