Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Gjelder value in flow #1717

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions force-app/main/default/flows/NKS_Case_Log_Call_v_2.flow-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<elementReference>$User.Department</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>Journal_Subtheme_Code</name>
<value>
<elementReference>Selected_Subtheme</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>Journal_Theme_Code</name>
<value>
Expand Down Expand Up @@ -261,6 +267,13 @@
<elementReference>Selected_Theme_SF_Id</elementReference>
</value>
</assignmentItems>
<assignmentItems>
<assignToReference>Get_Case.NKS_Subtheme__c</assignToReference>
<operator>Assign</operator>
<value>
<elementReference>Selected_Subtheme_SF_Id</elementReference>
</value>
</assignmentItems>
<connector>
<targetReference>Journal_Conversation_Note_Assignment</targetReference>
</connector>
Expand Down Expand Up @@ -1035,7 +1048,8 @@
</connector>
<fields>
<name>Error_Text</name>
<fieldText>&lt;p&gt;&lt;strong style=&quot;color: rgb(0, 0, 0);&quot;&gt;Velg en temagruppe for å opprette samtalereferat.&lt;/strong&gt;&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;&lt;strong style=&quot;color: rgb(0, 0, 0);&quot;&gt;Velg en
temagruppe for å opprette samtalereferat.&lt;/strong&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<nextOrFinishButtonLabel>Prøv på nytt</nextOrFinishButtonLabel>
Expand Down Expand Up @@ -1082,7 +1096,8 @@
</fields>
<fields>
<name>Disclaimer_Text_Journal</name>
<fieldText>&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); color:
<fieldText>
&lt;p&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); color:
rgb(144, 133,
133);&quot;&gt;{!$Label.NKS_Conversation_Note_Disclaimer_Text}&lt;/span&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
Expand Down Expand Up @@ -1145,6 +1160,14 @@
<assignToReference>Selected_Theme_Group_SF_Id</assignToReference>
<name>selectedThemeGroupSfId</name>
</outputParameters>
<outputParameters>
<assignToReference>Selected_Subtheme</assignToReference>
<name>selectedSubtheme</name>
</outputParameters>
<outputParameters>
<assignToReference>Selected_Subtheme_SF_Id</assignToReference>
<name>selectedSubthemeSfId</name>
</outputParameters>
</fields>
<nextOrFinishButtonLabel>Journalfør og del med brukeren</nextOrFinishButtonLabel>
<showFooter>true</showFooter>
Expand Down Expand Up @@ -1183,7 +1206,8 @@
</fields>
<fields>
<name>Disclaimer_Text</name>
<fieldText>&lt;p&gt;&lt;span style=&quot;color: rgb(144, 133,
<fieldText>
&lt;p&gt;&lt;span style=&quot;color: rgb(144, 133,
133);&quot;&gt;{!$Label.NKS_Conversation_Note_Disclaimer_Text}&lt;/span&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
Expand Down Expand Up @@ -1348,7 +1372,8 @@
</fields>
<fields>
<name>Disclaimer_Text_Conversation_Note</name>
<fieldText>&lt;p&gt;&lt;span style=&quot;color: rgb(144, 133,
<fieldText>
&lt;p&gt;&lt;span style=&quot;color: rgb(144, 133,
133);&quot;&gt;{!$Label.NKS_Conversation_Note_Disclaimer_Text}&lt;/span&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
Expand Down Expand Up @@ -1702,6 +1727,20 @@
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Subtheme</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Subtheme_SF_Id</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Theme_Code</name>
<dataType>String</dataType>
Expand Down Expand Up @@ -1745,4 +1784,4 @@
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
</Flow>
39 changes: 30 additions & 9 deletions force-app/main/default/flows/NKS_Case_Log_a_Call.flow-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<elementReference>$User.Department</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>Journal_Subtheme_Code</name>
<value>
<elementReference>Case_Overview.selectedSubtheme</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>Journal_Theme_Code</name>
<value>
Expand All @@ -47,6 +53,8 @@
<elementReference>Conversation_Note_Record.Id</elementReference>
</value>
</inputParameters>
<nameSegment>CRM_ConvNoteJournalHelper</nameSegment>
<versionSegment>1</versionSegment>
</actionCalls>
<apiVersion>49.0</apiVersion>
<assignments>
Expand Down Expand Up @@ -301,6 +309,13 @@
<elementReference>Case_Overview.selectedCaseThemeSfId</elementReference>
</value>
</assignmentItems>
<assignmentItems>
<assignToReference>Get_Case.NKS_Subtheme__c</assignToReference>
<operator>Assign</operator>
<value>
<elementReference>Case_Overview.selectedSubthemeSfId</elementReference>
</value>
</assignmentItems>
<connector>
<targetReference>Conversation_Note_Assignment</targetReference>
</connector>
Expand Down Expand Up @@ -420,7 +435,8 @@
</rules>
</decisions>
<decisions>
<description>Checks the status if the case. If it is closed, the conversation note is already made.</description>
<description>Checks the status if the case. If it is closed, the conversation note is
already made.</description>
<name>Check_Case_Status</name>
<label>Check Case Status</label>
<locationX>468</locationX>
Expand Down Expand Up @@ -573,9 +589,9 @@
<name>CONV_NOTE_THEME_GROUP_CODDE</name>
<dataType>String</dataType>
<expression>IF({!Create_Journal_Entry.value},
{!Case_Overview.selectedThemeGroup},
{!Conversation_Theme_Categorization.themeGroupCode}
)</expression>
{!Case_Overview.selectedThemeGroup},
{!Conversation_Theme_Categorization.themeGroupCode}
)</expression>
</formulas>
<interviewLabel>Case Log a Call {!$Flow.CurrentDateTime}</interviewLabel>
<label>Case Log a Call</label>
Expand Down Expand Up @@ -1001,7 +1017,8 @@
</fields>
<fields>
<name>Conversation_Summary</name>
<fieldText>&lt;p&gt;&lt;strong style=&quot;color: rgb(62, 62, 60); background-color: rgb(255, 255, 255);&quot;&gt;Flere handlinger&lt;/strong&gt;&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;&lt;strong style=&quot;color: rgb(62, 62, 60); background-color:
rgb(255, 255, 255);&quot;&gt;Flere handlinger&lt;/strong&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
<visibilityRule>
<conditionLogic>and</conditionLogic>
Expand All @@ -1022,6 +1039,7 @@
<defaultSelectedChoiceReference>Create_Nav_Task_Action</defaultSelectedChoiceReference>
<fieldText>Velg handling:</fieldText>
<fieldType>DropdownBox</fieldType>
<inputsOnNextNavToAssocScrn>UseStoredValues</inputsOnNextNavToAssocScrn>
<isRequired>false</isRequired>
<visibilityRule>
<conditionLogic>and</conditionLogic>
Expand Down Expand Up @@ -1194,7 +1212,9 @@
</fields>
<fields>
<name>Disclaimer_Text</name>
<fieldText>&lt;p&gt;&lt;span style=&quot;font-size: 12px; color: rgb(144, 133, 133);&quot;&gt;Samtalereferatet blir delt med bruker når det opprettes.&lt;/span&gt;&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;&lt;span style=&quot;font-size: 12px; color: rgb(144, 133,
133);&quot;&gt;Samtalereferatet blir delt med bruker når det
opprettes.&lt;/span&gt;&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -1498,7 +1518,8 @@
</fields>
<fields>
<name>Update_Account_Text</name>
<fieldText>&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Henvendelsen er ikke tilknyttet en bruker. Vennligst oppdater med riktig bruker referat skal knyttes til.&lt;/p&gt;</fieldText>
<fieldText>&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Henvendelsen er ikke tilknyttet en
bruker. Vennligst oppdater med riktig bruker referat skal knyttes til.&lt;/p&gt;</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
<fields>
Expand Down Expand Up @@ -1610,8 +1631,8 @@
<isViewedAsPlainText>false</isViewedAsPlainText>
<text>Takk for at du tok kontakt

Du har fått informasjon om
-</text>
Du har fått informasjon om
-</text>
</textTemplates>
<variables>
<name>Account_Name</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>49.0</apiVersion>
<environments>Default</environments>
<interviewLabel>Conversation Note Create Journal Entry {!$Flow.CurrentDateTime}</interviewLabel>
<label>Conversation Note Create Journal Entry</label>
<processMetadataValues>
Expand All @@ -26,7 +27,7 @@
<name>Get_Conversation_Note</name>
<label>Get Conversation Note</label>
<locationX>176</locationX>
<locationY>158</locationY>
<locationY>134</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Journal_Screen</targetReference>
Expand All @@ -48,7 +49,7 @@
<name>Journal_Screen</name>
<label>Journal Screen</label>
<locationX>176</locationX>
<locationY>278</locationY>
<locationY>242</locationY>
<allowBack>false</allowBack>
<allowFinish>true</allowFinish>
<allowPause>false</allowPause>
Expand Down Expand Up @@ -97,7 +98,7 @@
<name>Post_Journal_Entry</name>
<label>Post Journal Entry</label>
<locationX>176</locationX>
<locationY>398</locationY>
<locationY>350</locationY>
<flowName>CRM_Journal_Conversation_Note</flowName>
<inputAssignments>
<name>Journal_Case_ID</name>
Expand All @@ -123,6 +124,12 @@
<elementReference>$User.Department</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<name>Journal_Subtheme_Code</name>
<value>
<elementReference>Case_Overview.selectedSubtheme</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<name>Journal_Theme_Code</name>
<value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
<assignToReference>Selected_Theme_SF_Id</assignToReference>
<name>selectedCaseThemeSfId</name>
</outputParameters>
<outputParameters>
<assignToReference>Selected_Subtheme</assignToReference>
<name>selectedSubtheme</name>
</outputParameters>
<outputParameters>
<assignToReference>Selected_Subtheme_Id</assignToReference>
<name>selectedSubthemeSfId</name>
</outputParameters>
</fields>
<nextOrFinishButtonLabel>Journalfør</nextOrFinishButtonLabel>
<showFooter>true</showFooter>
Expand Down Expand Up @@ -194,6 +202,12 @@
<elementReference>$User.Department</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<name>Journal_Subtheme_Code</name>
<value>
<elementReference>Selected_Subtheme</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<name>Journal_Theme_Code</name>
<value>
Expand Down Expand Up @@ -257,6 +271,20 @@
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Subtheme</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Subtheme_Id</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>Selected_Theme</name>
<dataType>String</dataType>
Expand Down
Loading