Skip to content

Commit

Permalink
Revert "Remove Add_Account_team_member_fro_FIA_Owner flow (#1588)" (#…
Browse files Browse the repository at this point in the history
…1589)

This reverts commit b0a14da.
  • Loading branch information
raac09 authored Nov 23, 2023
1 parent b0a14da commit b5c12b8
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>56.0</apiVersion>
<environments>Default</environments>
<interviewLabel>Add Account team member fro FIA Owner {!$Flow.CurrentDateTime}</interviewLabel>
<label>Add Account team member fro FIA Owner</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<recordCreates>
<name>Create_account_team_member</name>
<label>Create account team member</label>
<locationX>176</locationX>
<locationY>455</locationY>
<inputAssignments>
<field>AccountId</field>
<value>
<elementReference>$Record.Id</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>Departments__c</field>
<value>
<stringValue>Forebygge og redusere sykefravær og frafall</stringValue>
</value>
</inputAssignments>
<inputAssignments>
<field>TAG_Active__c</field>
<value>
<booleanValue>true</booleanValue>
</value>
</inputAssignments>
<inputAssignments>
<field>TeamMemberRole</field>
<value>
<stringValue>IA Consultant</stringValue>
</value>
</inputAssignments>
<inputAssignments>
<field>UserId</field>
<value>
<elementReference>Get_User_Record.Id</elementReference>
</value>
</inputAssignments>
<object>AccountTeamMember</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordCreates>
<recordLookups>
<description>Get user record from FIA Owner</description>
<name>Get_User_Record</name>
<label>Get User Record</label>
<locationX>176</locationX>
<locationY>335</locationY>
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
<connector>
<targetReference>Create_account_team_member</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>CRM_NAV_Ident__c</field>
<operator>EqualTo</operator>
<value>
<elementReference>$Record.TAG_FiaCaseOwner__c</elementReference>
</value>
</filters>
<getFirstRecordOnly>true</getFirstRecordOnly>
<object>User</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordLookups>
<start>
<locationX>50</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Get_User_Record</targetReference>
</connector>
<filterLogic>and</filterLogic>
<filters>
<field>TAG_FiaCaseStatus__c</field>
<operator>IsChanged</operator>
<value>
<booleanValue>true</booleanValue>
</value>
</filters>
<filters>
<field>RecordTypeId</field>
<operator>EqualTo</operator>
<value>
<stringValue>0122o000000RC7PAAW</stringValue>
</value>
</filters>
<filters>
<field>TAG_FiaCaseNr__c</field>
<operator>IsNull</operator>
<value>
<booleanValue>false</booleanValue>
</value>
</filters>
<filters>
<field>TAG_FiaCaseStatus__c</field>
<operator>EqualTo</operator>
<value>
<stringValue>Vi_Bistår</stringValue>
</value>
</filters>
<object>Account</object>
<recordTriggerType>Update</recordTriggerType>
<triggerType>RecordAfterSave</triggerType>
</start>
<status>Obsolete</status>
</Flow>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlowTest xmlns="http://soap.sforce.com/2006/04/metadata">
<flowApiName>Add_Account_team_member_fro_FIA_Owner</flowApiName>
<label>Test min bedrift</label>
<testPoints>
<elementApiName>Start</elementApiName>
<parameters>
<leftValueReference>$Record</leftValueReference>
<type>InputTriggeringRecordInitial</type>
<value>
<sobjectValue>{&quot;Alias__c&quot;:&quot;123&quot;,&quot;Bypass_Validation__c&quot;:false,&quot;CRM_IsPilot__c&quot;:false,&quot;CRM_UltimateParentAccount__c&quot;:&quot;0011x00001iLaqEAAS&quot;,&quot;FirstName&quot;:{},&quot;INT_IndustryCode__c&quot;:&quot;02.200&quot;,&quot;INT_Industry__c&quot;:&quot;Avvirkning&quot;,&quot;INT_IsBankrupt__c&quot;:false,&quot;INT_IsHasTombstone__c&quot;:false,&quot;INT_IsInForcedSettlementOrResolution__c&quot;:false,&quot;INT_IsInLiquidation__c&quot;:false,&quot;INT_OrganizationNumber__c&quot;:&quot;960507878&quot;,&quot;InvalidEmail__pc&quot;:{},&quot;IsDeletedEmployer__c&quot;:false,&quot;LastName&quot;:{},&quot;MiddleName&quot;:{},&quot;Name&quot;:&quot;Min bedrift&quot;,&quot;OwnerId&quot;:&quot;0051x00000CRT85AAH&quot;,&quot;PersonDoNotCall&quot;:false,&quot;PersonEmail&quot;:{},&quot;PersonHasOptedOutOfEmail&quot;:false,&quot;PersonHasOptedOutOfFax&quot;:false,&quot;PersonLeadSource&quot;:{},&quot;PersonMailingCity&quot;:{},&quot;PersonMailingCountry&quot;:{},&quot;PersonMailingLatitude&quot;:{},&quot;PersonMailingLongitude&quot;:{},&quot;PersonMailingPostalCode&quot;:{},&quot;PersonMailingState&quot;:{},&quot;PersonMailingStreet&quot;:{},&quot;PersonMobilePhone&quot;:{},&quot;PersonTitle&quot;:{},&quot;RecordTypeId&quot;:&quot;0121x000005MTfBAAW&quot;,&quot;Salutation&quot;:{},&quot;Source__pc&quot;:{},&quot;TAG_FiaCaseOwnerName__c&quot;:&quot;&quot;,&quot;TAG_FiaCaseOwner__c&quot;:&quot;&quot;,&quot;TAG_Force_Update__c&quot;:false,&quot;TAG_IAOwner__pc&quot;:{},&quot;TAG_InclusionOwner__pc&quot;:{},&quot;TAG_Informed__pc&quot;:false,&quot;TAG_IsDeleted__c&quot;:false,&quot;TAG_Theme__pc&quot;:{},&quot;Warning__c&quot;:false}</sobjectValue>
</value>
</parameters>
<parameters>
<leftValueReference>$Record</leftValueReference>
<type>InputTriggeringRecordUpdated</type>
<value>
<sobjectValue>{&quot;Bypass_Validation__c&quot;:false,&quot;CRM_IsPilot__c&quot;:false,&quot;CRM_UltimateParentAccount__c&quot;:&quot;0011x00001iLaqEAAS&quot;,&quot;FirstName&quot;:{},&quot;INT_IndustryCode__c&quot;:&quot;02.200&quot;,&quot;INT_Industry__c&quot;:&quot;Avvirkning&quot;,&quot;INT_IsBankrupt__c&quot;:false,&quot;INT_IsHasTombstone__c&quot;:false,&quot;INT_IsInForcedSettlementOrResolution__c&quot;:false,&quot;INT_IsInLiquidation__c&quot;:false,&quot;INT_OrganizationNumber__c&quot;:&quot;960507878&quot;,&quot;InvalidEmail__pc&quot;:{},&quot;IsDeletedEmployer__c&quot;:false,&quot;LastName&quot;:{},&quot;MiddleName&quot;:{},&quot;Name&quot;:&quot;Min bedrift&quot;,&quot;OwnerId&quot;:&quot;0051x00000CRT85AAH&quot;,&quot;PersonDoNotCall&quot;:false,&quot;PersonEmail&quot;:{},&quot;PersonHasOptedOutOfEmail&quot;:false,&quot;PersonHasOptedOutOfFax&quot;:false,&quot;PersonLeadSource&quot;:{},&quot;PersonMailingCity&quot;:{},&quot;PersonMailingCountry&quot;:{},&quot;PersonMailingLatitude&quot;:{},&quot;PersonMailingLongitude&quot;:{},&quot;PersonMailingPostalCode&quot;:{},&quot;PersonMailingState&quot;:{},&quot;PersonMailingStreet&quot;:{},&quot;PersonMobilePhone&quot;:{},&quot;PersonTitle&quot;:{},&quot;RecordTypeId&quot;:&quot;0121x000005MTfBAAW&quot;,&quot;Salutation&quot;:{},&quot;Source__pc&quot;:{},&quot;TAG_FiaCaseOwnerName__c&quot;:&quot;&quot;,&quot;TAG_FiaCaseOwner__c&quot;:&quot;&quot;,&quot;TAG_Force_Update__c&quot;:false,&quot;TAG_IAOwner__pc&quot;:{},&quot;TAG_InclusionOwner__pc&quot;:{},&quot;TAG_Informed__pc&quot;:false,&quot;TAG_IsDeleted__c&quot;:false,&quot;TAG_Theme__pc&quot;:{},&quot;Warning__c&quot;:false}</sobjectValue>
</value>
</parameters>
</testPoints>
<testPoints>
<assertions>
<conditions>
<leftValueReference>Get_User_Record</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
<errorMessage>Finner ikke NAV ansatt</errorMessage>
</assertions>
<elementApiName>Finish</elementApiName>
</testPoints>
</FlowTest>

0 comments on commit b5c12b8

Please sign in to comment.