-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsersToSalesAreaMap.json
More file actions
1 lines (1 loc) · 24.6 KB
/
Copy pathUsersToSalesAreaMap.json
File metadata and controls
1 lines (1 loc) · 24.6 KB
1
[{"Description":"This will assign Users to the Sales Areas they are associated with.","Valid":true,"Id":18528833,"LastModificationDate":"2026-01-16T15:41:12.513","LastRunDate":null,"MapType":"IntegrationServicesAdvancedMap","Name":"Assign Users to Sales Areas","NetChange":false,"NetChangeFieldName":null,"ProcessDefinitionDbId":"a1c7b5eb-b146-43e8-be5f-c941eeca2f87","SourceConnectionId":"2850e403-06e4-4347-bc4b-60310dcd0d72","SourceConnectionName":"Ergon Legacy SF (M4-MLM)","SourceConnectionAlias":"ErgonLegacySFM4MLM","StartingBlockId":"1afbbfef-ea92-4404-a83f-0faee5fff122","SourceConnectionType":"Salesforce","TargetConnections":[{"ConnectionAlias":"ScribePlatformAPI","ConnectionId":"14a0402b-1a15-4678-a245-1d86ea3b93ce","ConnectionName":"Scribe Platform API","ConnectionType":"Scribe Platform API"},{"ConnectionAlias":"UATxTestServiceUser","ConnectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","ConnectionName":"UATxTest Service User","ConnectionType":"Salesforce"},{"ConnectionAlias":"ScribeLabVariables","ConnectionId":"6787e1d9-d2d4-48aa-a5a3-3bae9e6a3ee0","ConnectionName":"Scribe Lab Variables","ConnectionType":"Variables"}],"Version":"2.5","Blocks":[{"id":"7c560b6b-cbfb-4619-86af-745356438db5","blockType":"Query","category":"Target","name":"LookupTable","description":"","label":"Query \"ESS Users\" LookupTable","originalBlockLabel":"Query","nextBlockId":"088f04e2-250d-4513-a5d7-35e97dc5f2d1","parentBlockId":"","prevBlockId":"","x":352.0,"y":69.0,"entity":"LookupTable","actionName":"Query","connectionId":"14a0402b-1a15-4678-a245-1d86ea3b93ce","filterItems":[{"compareValue":"\"c933b642-4574-49d1-827b-30fb0428e408\"","comparisonOperator":0,"fieldName":"Id","logicalOperator":0,"id":"889a31bc-7c97-4408-956f-11808e00d7c0"},{"compareValue":"60495","comparisonOperator":0,"fieldName":"OrganizationId","logicalOperator":0,"id":"4e507a36-fe9a-4055-b6f0-335a706271a2"}],"relationships":[{"childPropertyName":"","entityName":"LookupTableValue","isRequired":false,"parentPropertyName":"LookupTableValues","relationshipType":3,"id":"5ada1806-8767-4593-927c-3fcfd2f65220","path":"LookupTable.LookupTableValues","relationshipAlias":"LookupTableValues"}]},{"id":"088f04e2-250d-4513-a5d7-35e97dc5f2d1","blockType":"ForEach","category":"Control","name":"ForEach","description":"","label":"For Each Result","originalBlockLabel":"For Each Result","nextBlockId":"","parentBlockId":"","prevBlockId":"7c560b6b-cbfb-4619-86af-745356438db5","firstChildBlockId":"c51a2d1e-8459-4986-9330-6454382181e6"},{"id":"c51a2d1e-8459-4986-9330-6454382181e6","blockType":"Comment","category":"Documentation","name":"Comment3","description":"This is a copy of another flow, it needs to be updated once Valerie finishes building out the spreadsheet. Link to spreadsheet is https://ergonus.sharepoint.com/:x:/s/ErgonProjectPolaris/Eec2SXrXegNLh-B_LS8B7O4B5Ff7vQqtj4VpN7waSl3XCA?e=iFJUo0&nav=MTVfezAwMDAwMDAwLTAwMDEtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMH0","label":"***READ ME***","originalBlockLabel":"Comment","nextBlockId":"43d8be5f-a47d-4b5b-bcf7-efc1fb8c7bce","parentBlockId":"088f04e2-250d-4513-a5d7-35e97dc5f2d1","prevBlockId":""},{"id":"43d8be5f-a47d-4b5b-bcf7-efc1fb8c7bce","blockType":"IfElse","category":"Control","name":"IfElse3","description":"","label":"If Association Exists, Skip; Else, Create","originalBlockLabel":"If","nextBlockId":"","parentBlockId":"088f04e2-250d-4513-a5d7-35e97dc5f2d1","prevBlockId":"c51a2d1e-8459-4986-9330-6454382181e6","firstChildBlockContainer1Id":"45ef5b7a-4150-4bf4-997c-d62f8bc85576","firstChildBlockContainer2Id":"7934f8e0-ff7a-465c-9934-ad10c2cff4c3","elseLabel":"else","expressionItems":[]},{"id":"45ef5b7a-4150-4bf4-997c-d62f8bc85576","blockType":"Comment","category":"Documentation","name":"Comment4","description":"","label":"User-Territory Association Exists","originalBlockLabel":"Comment","nextBlockId":"","parentBlockId":"43d8be5f-a47d-4b5b-bcf7-efc1fb8c7bce","prevBlockId":""},{"id":"7934f8e0-ff7a-465c-9934-ad10c2cff4c3","blockType":"Insert","category":"Target","name":"UserTerritory2AssociationCreate","description":"","label":"Create UserTerritory2Association","originalBlockLabel":"Create","nextBlockId":"","parentBlockId":"43d8be5f-a47d-4b5b-bcf7-efc1fb8c7bce","prevBlockId":"","containerIndex":1,"bulkCountPerOperation":2000,"useBulk":false,"entity":"UserTerritory2Association","actionName":"Create","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","fieldMappings":[],"skipNullAssignments":false},{"id":"4b55d239-2107-467a-a974-985723e81dfe","blockType":"ForEachChild","category":"Control","name":"ForEachChild","description":"","label":"For Each Child LookupTable.LookupTableValues","originalBlockLabel":"For Each Child","nextBlockId":"","parentBlockId":"","prevBlockId":"","x":72.0,"y":207.0,"relationshipNameForChild":"LookupTable.LookupTableValues","firstChildBlockId":"ec28497f-9ad1-4b7d-b916-1cf1e0b6231b"},{"id":"ec28497f-9ad1-4b7d-b916-1cf1e0b6231b","blockType":"Upsert","category":"Target","name":"SetFederationID","description":"","label":"Set Federation ID","originalBlockLabel":"Upsert","nextBlockId":"d5776602-f14c-4bb5-a745-f096f5d820cd","parentBlockId":"4b55d239-2107-467a-a974-985723e81dfe","prevBlockId":"","bulkCountPerOperation":2000,"useBulk":false,"entity":"StringVariable","actionName":"Upsert","connectionId":"6787e1d9-d2d4-48aa-a5a3-3bae9e6a3ee0","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","fieldMappings":[{"id":"da7851ee-b2ae-4cb7-bdb6-78f2af9d9816","targetDataType":"System.String","targetField":"name","targetFormula":"\"FederationID\"","path":"StringVariable","fieldConditionalType":0,"conditionalExpression":""},{"id":"ed11ef42-8091-4ab7-b7b5-d991d3c69466","targetDataType":"System.String","targetField":"val","targetFormula":"LookupTable.LookupTableValues.Value1","path":"StringVariable","fieldConditionalType":0,"conditionalExpression":""}],"skipNullAssignments":false},{"id":"d5776602-f14c-4bb5-a745-f096f5d820cd","blockType":"Upsert","category":"Target","name":"SetUserRole","description":"","label":"Set User Role","originalBlockLabel":"Upsert","nextBlockId":"21ce0bbb-5cf0-4c1e-8de9-057d7ffdd677","parentBlockId":"4b55d239-2107-467a-a974-985723e81dfe","prevBlockId":"ec28497f-9ad1-4b7d-b916-1cf1e0b6231b","bulkCountPerOperation":2000,"useBulk":false,"entity":"StringVariable","actionName":"Upsert","connectionId":"6787e1d9-d2d4-48aa-a5a3-3bae9e6a3ee0","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","fieldMappings":[{"id":"15c7d6bc-b1cb-48c3-9c87-d3a6e2aee2d5","targetDataType":"System.String","targetField":"name","targetFormula":"\"UserRole\"","path":"StringVariable","fieldConditionalType":0,"conditionalExpression":""},{"id":"1d8d9364-518e-402b-b1a6-182f176a2398","targetDataType":"System.String","targetField":"val","targetFormula":"IF(\nOR(\nLookupTable.LookupTableValues.Value2 = \"REGIONAL SALES MANAGER\",\n// Check on this with GZ, he did not provide this to us.LookupTable.LookupTableValues.Value2 = \"SALES AND MARKETING DIRECTOR\",\nLookupTable.LookupTableValues.Value2 = \"SALES AND MARKETING VICE PRESIDENT\",\nLookupTable.LookupTableValues.Value2 = \"SALES AND MARKETING SENIOR VICE PRESIDENT\",\nLookupTable.LookupTableValues.Value2 = \"SALES AND MARKETING MANAGER\"\n), \"Sales Management\", \nIF(\nLookupTable.LookupTableValues.Value2 = \"SALES EXECUTIVE\",\n\"Sales Executives\", \nNULL))\n","path":"StringVariable","fieldConditionalType":0,"conditionalExpression":""}],"skipNullAssignments":false},{"id":"21ce0bbb-5cf0-4c1e-8de9-057d7ffdd677","blockType":"Lookup","category":"Target","name":"UserLookup","description":"","label":"Lookup User","originalBlockLabel":"Lookup","nextBlockId":"8a436074-eaba-457a-8e0f-896d90ad944c","parentBlockId":"4b55d239-2107-467a-a974-985723e81dfe","prevBlockId":"d5776602-f14c-4bb5-a745-f096f5d820cd","entity":"User","cacheResults":false,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"LookupTable.LookupTableValues.Value1 & \".invalid\"","comparisonOperator":0,"fieldName":"FederationIdentifier","logicalOperator":0,"id":"131308a1-3d35-4af2-b97a-415d8459d865"}],"fieldsToLookup":["Id","FederationIdentifier"]},{"id":"8a436074-eaba-457a-8e0f-896d90ad944c","blockType":"IfElse","category":"Control","name":"IfElse","description":"","label":"If User Found, Update Role","originalBlockLabel":"If","nextBlockId":"f2a2af8f-15b9-4035-a010-f164f63be230","parentBlockId":"4b55d239-2107-467a-a974-985723e81dfe","prevBlockId":"21ce0bbb-5cf0-4c1e-8de9-057d7ffdd677","firstChildBlockContainer1Id":"f1389219-f1d2-4ae4-9c1d-7f426be6359a","firstChildBlockContainer2Id":"a8650d75-49da-4e49-8b8a-5c6268824d03","elseLabel":"else","expressionItems":[{"conditionOperator":0,"leftExpression":"UATxTestServiceUser_UserLookup.Result.RecordsMatched","logicalOperator":0,"rightExpression":"1","id":"cdb9139d-baf5-4a85-a676-d9a614c7f59d"}]},{"id":"f1389219-f1d2-4ae4-9c1d-7f426be6359a","blockType":"Lookup","category":"Target","name":"UserRoleLookup","description":"","label":"Lookup UserRole","originalBlockLabel":"Lookup","nextBlockId":"058fb684-186e-47e4-b9f4-bcbe16374764","parentBlockId":"8a436074-eaba-457a-8e0f-896d90ad944c","prevBlockId":"","containerIndex":0,"entity":"UserRole","cacheResults":true,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"ScribeLabVariables_SetUserRole.val","comparisonOperator":0,"fieldName":"Name","logicalOperator":0,"id":"51c266fc-5cdb-460b-a65d-4e1629d955a9"}],"fieldsToLookup":["Id"]},{"id":"058fb684-186e-47e4-b9f4-bcbe16374764","blockType":"Update","category":"Target","name":"UserUpdate","description":"","label":"Update User","originalBlockLabel":"Update","nextBlockId":"","parentBlockId":"8a436074-eaba-457a-8e0f-896d90ad944c","prevBlockId":"f1389219-f1d2-4ae4-9c1d-7f426be6359a","containerIndex":0,"bulkCountPerOperation":2000,"useBulk":false,"entity":"User","actionName":"Update","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnNoMatchMessage":true,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"UATxTestServiceUser_UserLookup.Id","comparisonOperator":0,"fieldName":"Id","logicalOperator":0,"id":"14c6dff8-f126-4be4-ba1b-2d8ed28eac0f"}],"fieldMappings":[{"id":"c3261a04-5211-4db3-9f1d-17cbe3dad4f0","targetDataType":"System.String","targetField":"UserRoleId","targetFormula":"UATxTestServiceUser_UserRoleLookup.Id","path":"User","fieldConditionalType":0,"conditionalExpression":""}],"skipNullAssignments":false},{"id":"a8650d75-49da-4e49-8b8a-5c6268824d03","blockType":"Comment","category":"Documentation","name":"Comment","description":"","label":"User Not Found, Skip","originalBlockLabel":"Comment","nextBlockId":"","parentBlockId":"8a436074-eaba-457a-8e0f-896d90ad944c","prevBlockId":""},{"id":"f2a2af8f-15b9-4035-a010-f164f63be230","blockType":"IfElse","category":"Control","name":"IfElse2","description":"These are Roles to skip for now until we determine the full process for assigning user roles.\nSALES SUPPORT SPECIALIST\nSUPPLY AND DISTRIBUTION DIRECTOR","label":"If Role that should be excluded, Skip","originalBlockLabel":"If","nextBlockId":"","parentBlockId":"4b55d239-2107-467a-a974-985723e81dfe","prevBlockId":"8a436074-eaba-457a-8e0f-896d90ad944c","firstChildBlockContainer1Id":"95ac377d-6e4a-4cd1-8497-6777cc5c56af","firstChildBlockContainer2Id":"","elseLabel":"else","expressionItems":[{"conditionOperator":0,"leftExpression":"LookupTable.LookupTableValues.Value2","logicalOperator":0,"rightExpression":"\"SALES SUPPORT SPECIALIST\"","id":"7c2f8f16-d1ee-4cb7-b5d4-6d6d751f9470"},{"conditionOperator":0,"leftExpression":"LookupTable.LookupTableValues.Value2","logicalOperator":1,"rightExpression":"\"SUPPLY AND DISTRIBUTION DIRECTOR\"","id":"e40beae5-20c5-4b37-b521-9f7e369e534d"}]},{"id":"95ac377d-6e4a-4cd1-8497-6777cc5c56af","blockType":"Comment","category":"Documentation","name":"Comment2","description":"","label":"Skip setting the UserRole for this User.","originalBlockLabel":"Comment","nextBlockId":"","parentBlockId":"f2a2af8f-15b9-4035-a010-f164f63be230","prevBlockId":""},{"id":"d6f4a2d1-cc00-43a0-9d3d-ce0d50b45479","blockType":"Fetch","category":"Target","name":"Territory2Fetch","description":"","label":"Fetch Sales Area Territory2 Recs","originalBlockLabel":"Fetch","nextBlockId":"","parentBlockId":"","prevBlockId":"","x":596.0,"y":274.0,"entity":"Territory2","firstChildBlockId":"","actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"UATxTestServiceUser_LookupSalesAreaTerritory2Type.Id","comparisonOperator":0,"fieldName":"Territory2TypeId","logicalOperator":0,"id":"8ae8b853-1230-495c-8e4c-b27c7b70b9de"}],"relationships":[]},{"id":"b62f5926-fe97-4179-9238-5f206ace1297","blockType":"Query","category":"Target","name":"Query","description":"","label":"Query","originalBlockLabel":"Query","nextBlockId":"","parentBlockId":"","prevBlockId":"","x":630.0,"y":108.0,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","filterItems":[],"relationships":[]},{"id":"1afbbfef-ea92-4404-a83f-0faee5fff122","blockType":"Query","category":"Source","name":"Ergon_Company_User__c","description":"","label":"Query Ergon_Company_User__c","originalBlockLabel":"Query","nextBlockId":"a7122ff8-857b-4e35-8733-36d9d69ff3e7","parentBlockId":"","prevBlockId":"","x":854.0,"y":157.0,"entity":"Ergon_Company_User__c","actionName":"Query","connectionId":"2850e403-06e4-4347-bc4b-60310dcd0d72","filterItems":[],"relationships":[{"childPropertyName":"Ergon_Companies__c","entityName":"Ergon_Companies__c","isRequired":true,"parentPropertyName":"Id","relationshipType":0,"id":"f937da73-f44f-4b69-a55d-0da73ea84aa1","path":"Ergon_Company_User__c.Ergon_Companies__r_Ergon_Companies__c","relationshipAlias":"Ergon_Companies__r_Ergon_Companies__c"},{"childPropertyName":"User__c","entityName":"User","isRequired":true,"parentPropertyName":"Id","relationshipType":0,"id":"1e8f8dbc-bae2-4d8c-9bef-af0286cb6dfc","path":"Ergon_Company_User__c.User__r_User","relationshipAlias":"User__r_User"}]},{"id":"a7122ff8-857b-4e35-8733-36d9d69ff3e7","blockType":"ForEach","category":"Control","name":"ForEach2","description":"","label":"For Each Result","originalBlockLabel":"For Each Result","nextBlockId":"","parentBlockId":"","prevBlockId":"1afbbfef-ea92-4404-a83f-0faee5fff122","firstChildBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a"},{"id":"fc42b304-cca4-47cf-88be-3941711a7b9a","blockType":"IfElse","category":"Control","name":"IfElse4","description":"","label":"If User IsActive = TRUE & ESS Migration = TRUE, Cont","originalBlockLabel":"If","nextBlockId":"","parentBlockId":"a7122ff8-857b-4e35-8733-36d9d69ff3e7","prevBlockId":"","firstChildBlockContainer1Id":"95d8b251-db96-4133-b75c-24e828524180","firstChildBlockContainer2Id":"b8f48614-adbc-48f9-b98c-0a0dbc2015d5","elseLabel":"else","expressionItems":[{"conditionOperator":0,"leftExpression":"Ergon_Company_User__c.User__r_User.IsActive","logicalOperator":0,"rightExpression":"true","id":"d9cd1da9-d210-4891-a9bf-e5ba71b42495"},{"conditionOperator":0,"leftExpression":"Ergon_Company_User__c.User__r_User.ESS_Migration__c","logicalOperator":0,"rightExpression":"true","id":"7bcdd9e8-a219-4178-8073-89a032022f83"},{"conditionOperator":0,"leftExpression":"Ergon_Company_User__c.Ergon_Companies__r_Ergon_Companies__c.PSMD_Companies__c","logicalOperator":0,"rightExpression":"true","id":"0fdc9df2-e9a4-49fd-b03a-101dbcd2c934"}]},{"id":"95d8b251-db96-4133-b75c-24e828524180","blockType":"Lookup","category":"Target","name":"LookupSalesAreaTerritory2Type","description":"","label":"Lookup Sales Area Territory2Type","originalBlockLabel":"Lookup","nextBlockId":"63a506ec-278f-478f-8e31-39927563ab49","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":"","containerIndex":0,"entity":"Territory2Type","cacheResults":false,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"\"Sales_Area\"","comparisonOperator":0,"fieldName":"DeveloperName","logicalOperator":0,"id":"a7872e0d-abe9-4470-9ed8-4b2efc434b7b"}],"fieldsToLookup":["Id"]},{"id":"63a506ec-278f-478f-8e31-39927563ab49","blockType":"Lookup","category":"Target","name":"LookupUsersAssignedTerritory","description":"","label":"Lookup User's Assigned Territory","originalBlockLabel":"Lookup","nextBlockId":"17558946-b74b-4eb5-ba0c-6082c67d1711","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":"95d8b251-db96-4133-b75c-24e828524180","containerIndex":0,"entity":"Territory2","cacheResults":false,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"\"SA_\" & \nLOOKUPTABLEVALUE2_DEFAULT(\"Ergon Companies Lookup\", Ergon_Company_User__c.Ergon_Companies__r_Ergon_Companies__c.SAP_ID__c, \nIF(Ergon_Company_User__c.Ergon_Companies__r_Ergon_Companies__c.SAP_ID__c = \"063\", \"9064\", \"Unknown Company\"))\n& \"_10_80\"","comparisonOperator":0,"fieldName":"DeveloperName","logicalOperator":0,"id":"9c499acb-46aa-4005-95ca-fdf1e4a22b7c"},{"compareValue":"UATxTestServiceUser_LookupSalesAreaTerritory2Type.Id","comparisonOperator":0,"fieldName":"Territory2TypeId","logicalOperator":0,"id":"5343bde4-d3d9-4dd3-ae85-cfa3e033520b"}],"fieldsToLookup":["Id"]},{"id":"17558946-b74b-4eb5-ba0c-6082c67d1711","blockType":"Lookup","category":"Target","name":"LookupUser","description":"","label":"Lookup User","originalBlockLabel":"Lookup","nextBlockId":"dd309c0f-50b5-4491-b4ac-be7353fc51ed","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":"63a506ec-278f-478f-8e31-39927563ab49","containerIndex":0,"entity":"User","cacheResults":false,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"Ergon_Company_User__c.User__c","comparisonOperator":0,"fieldName":"Legacy_Salesforce_ID__c","logicalOperator":0,"id":"4dcc8270-df5a-4d48-8980-3ce8a598c737"}],"fieldsToLookup":["Id"]},{"id":"dd309c0f-50b5-4491-b4ac-be7353fc51ed","blockType":"Lookup","category":"Target","name":"LookupUserTerritoryAssociation","description":"","label":"Lookup User-Territory Association","originalBlockLabel":"Lookup","nextBlockId":"b72676d5-b940-45ec-aa78-6e9058ef3b77","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":"17558946-b74b-4eb5-ba0c-6082c67d1711","containerIndex":0,"entity":"UserTerritory2Association","cacheResults":false,"actionName":"Query","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnMoreThanOneMessage":false,"onMoreThanOneMessage":"Operation returned more than 1 result. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnOneOrMoreMessage":false,"onOneOrMoreMessage":"Operation returned 1 or more results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnNoMatchMessage":false,"onNoMatchMessage":"Operation returned no results. Label: [BLOCK LABEL], Name: [BLOCK NAME]","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","filterItems":[{"compareValue":"UATxTestServiceUser_LookupUser.Id","comparisonOperator":0,"fieldName":"UserId","logicalOperator":0,"id":"319ba592-4597-4a35-8286-b4efb26e70ce"},{"compareValue":"UATxTestServiceUser_LookupUsersAssignedTerritory.Id","comparisonOperator":0,"fieldName":"Territory2Id","logicalOperator":0,"id":"4c03e079-2415-4ed8-9612-9decff555505"}],"fieldsToLookup":["Id"]},{"id":"b72676d5-b940-45ec-aa78-6e9058ef3b77","blockType":"IfElse","category":"Control","name":"IfElse5","description":"","label":"If Association Found, Skip; Else, Create","originalBlockLabel":"If","nextBlockId":"","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":"dd309c0f-50b5-4491-b4ac-be7353fc51ed","containerIndex":0,"firstChildBlockContainer1Id":"6e17491a-4cd0-4990-8ad3-e326aef59167","firstChildBlockContainer2Id":"9199789a-2fb5-463e-a00a-19a5d6c3c7c6","elseLabel":"else","expressionItems":[{"conditionOperator":0,"leftExpression":"UATxTestServiceUser_LookupUserTerritoryAssociation.Result.RecordsMatched","logicalOperator":0,"rightExpression":"1","id":"672a161b-ddef-4549-9129-8d670bb335e3"}]},{"id":"6e17491a-4cd0-4990-8ad3-e326aef59167","blockType":"Comment","category":"Documentation","name":"Comment5","description":"","label":"User already associated to SA","originalBlockLabel":"Comment","nextBlockId":"","parentBlockId":"b72676d5-b940-45ec-aa78-6e9058ef3b77","prevBlockId":""},{"id":"9199789a-2fb5-463e-a00a-19a5d6c3c7c6","blockType":"Insert","category":"Target","name":"AssignUsertoTerritory2","description":"","label":"Assign User to Territory2","originalBlockLabel":"Create","nextBlockId":"","parentBlockId":"b72676d5-b940-45ec-aa78-6e9058ef3b77","prevBlockId":"","containerIndex":1,"bulkCountPerOperation":2000,"useBulk":false,"entity":"UserTerritory2Association","actionName":"Create","connectionId":"ec5e5e1b-28c6-4987-a7d4-a1f810fb5fbf","isOnErrorMessage":true,"onErrorMessage":"Operation failed. Label: [BLOCK LABEL], Name: [BLOCK NAME], Message: [ORIGINAL MESSAGE]","fieldMappings":[{"id":"ab34842e-098d-41b4-a61a-ed7d821a8942","targetDataType":"System.String","targetField":"Territory2Id","targetFormula":"UATxTestServiceUser_LookupUsersAssignedTerritory.Id","path":"UserTerritory2Association","fieldConditionalType":0,"conditionalExpression":""},{"id":"98775456-bca6-4993-bc50-75f6864fb85e","targetDataType":"System.String","targetField":"UserId","targetFormula":"UATxTestServiceUser_LookupUser.Id","path":"UserTerritory2Association","fieldConditionalType":0,"conditionalExpression":""}],"skipNullAssignments":false},{"id":"b8f48614-adbc-48f9-b98c-0a0dbc2015d5","blockType":"Comment","category":"Documentation","name":"Comment6","description":"","label":"User does not satisfy criteria","originalBlockLabel":"Comment","nextBlockId":"","parentBlockId":"fc42b304-cca4-47cf-88be-3941711a7b9a","prevBlockId":""}],"Revision":8,"RevisionDate":"2025-10-24T04:41:56.84","RevisionComment":null}]