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.
- Loading branch information
Showing
5 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.../main/default/objects/Thread__c/fields/CRM_Journal_Status_Formula_Icons__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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>CRM_Journal_Status_Formula_Icons__c</fullName> | ||
<externalId>false</externalId> | ||
<formula>CASE(CRM_Journal_Status__c, | ||
'Journal Completed', IMAGE('/resource/circles/circle_green.svg', 'Journalført', 18,18)+ ' Journalført', | ||
'Journal Error', IMAGE('/resource/circles/circle_red.svg', 'Journalføring feilet', 18,18)+ ' Journalføring feilet', | ||
'Journal Started', IMAGE('/resource/circles/circle_blue.svg', 'Journalføring registrert', 18,18)+ ' Journalføring registrert', | ||
IMAGE('/resource/circles/circle_grey.svg', 'Ikke journalført', 18,18) + ' Ikke journalført' | ||
)</formula> | ||
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> | ||
<label>Journal Status</label> | ||
<required>false</required> | ||
<trackHistory>false</trackHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
12 changes: 1 addition & 11 deletions
12
force-app/main/default/objects/Thread__c/fields/CRM_Timeline_Name__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
27 changes: 27 additions & 0 deletions
27
force-app/main/default/objects/Thread__c/fields/CRM_Timeline_status__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,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>CRM_Timeline_status__c</fullName> | ||
<externalId>false</externalId> | ||
<formula>IF(CRM_isActive__c == false, | ||
'Lukket', | ||
IF(ISBLANK(CRM_Assignee_NAV_Unit__c), | ||
IF(ISBLANK(CRM_Case__c), | ||
'', | ||
CASE(CRM_Case__r.Status, | ||
'New', 'Åpen', | ||
'Escalated', 'Åpen', | ||
'Forwarded', 'Åpen', | ||
'On Hold', 'Besvart', | ||
'In progress', 'Under Arbeid', | ||
'Reserved', 'Under Arbeid', | ||
'Closed', 'Lukket', | ||
'')), | ||
'Under Arbeid'))</formula> | ||
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> | ||
<label>Timeline status</label> | ||
<required>false</required> | ||
<trackHistory>false</trackHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
22 changes: 22 additions & 0 deletions
22
force-app/main/default/objects/Thread__c/fields/STO_Timeline_Name__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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>STO_Timeline_Name__c</fullName> | ||
<externalId>false</externalId> | ||
<formula>IF(ISPICKVAL(CRM_Thread_Type__c, 'STO'),'Skriv til oss', IF(ISPICKVAL(CRM_Thread_Type__c, 'BTO'), 'Beskjed til oss', 'Skriv til bruker')) + IF(ISBLANK(CRM_Theme__c), IF(ISPICKVAL(STO_Category__c, ''), '', ' - ' + TEXT(STO_Category__c)), ' - ' + CRM_Theme__r.Name) + | ||
IF(CRM_Number_of_unread_Messages__c != 0, | ||
' (' + | ||
TEXT(CRM_Number_of_unread_Messages__c) + | ||
IF(CRM_Number_of_unread_Messages__c > 1, | ||
' uleste meldinger', | ||
' ulest melding' | ||
), | ||
' (Lest' | ||
) +')'</formula> | ||
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> | ||
<label>STO Timeline Name</label> | ||
<required>false</required> | ||
<trackHistory>false</trackHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
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