generated from navikt/crm-shared-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flytter nksType__c og Case_sensitive__c fra crm-nks-base
- Loading branch information
1 parent
e8dbe10
commit c504035
Showing
6 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...-app/main/default/objectTranslations/QuickText-no/QuickText-no.objectTranslation-meta.xml
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,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomObjectTranslation xmlns="http://soap.sforce.com/2006/04/metadata"/> |
5 changes: 5 additions & 0 deletions
5
...n/default/objectTranslations/QuickText-no/nksAbbreviationKey__c.fieldTranslation-meta.xml
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,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> |
13 changes: 13 additions & 0 deletions
13
force-app/main/default/objectTranslations/QuickText-no/nksType__c.fieldTranslation-meta.xml
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,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> |
11 changes: 11 additions & 0 deletions
11
force-app/main/default/objects/QuickText/fields/Case_sensitive__c.field-meta.xml
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,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> |
25 changes: 25 additions & 0 deletions
25
force-app/main/default/objects/QuickText/fields/nksType__c.field-meta.xml
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,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> |
8 changes: 8 additions & 0 deletions
8
...fault/objects/QuickText/validationRules/QuickText_Validation_Rule.validationRule-meta.xml
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,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, "Abbreviation"), ISBLANK(nksAbbreviationKey__c))</errorConditionFormula> | ||
<errorDisplayField>nksAbbreviationKey__c</errorDisplayField> | ||
<errorMessage>Abbreviation key cannot be empty for quick text of type Abbreviation.</errorMessage> | ||
</ValidationRule> |