{
	"ProcessTemplates": [
		{
			"Name": "JSON to Salesforce - Customers",
			"Modified": "2024-07-10T07:46:32.1914579",
			"Modifier": "janne.pennanen@frends.com",
			"Tags": [
				"Json",
				"Salesforce"
			],
			"TemplateProcessTags": [],
			"Description": "This template process reads a JSON file from the local fileshare containing customer data, and imports the customers into Salesforce as contacts.",
			"Version": 1,
			"UniqueIdentifier": "0cb5b30b-1b3e-451e-8453-7eba579eb91d",
			"ProcessVariablesJson": "{\"InputPath\":{\"Value\":\"\\\"/path/customers.json\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The path to the JSON file that contains the customer data.\"},\"SalesforceUser\":{\"Value\":\"\\\"myUsername\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The username for Salesforce.\"},\"SalesforcePassword\":{\"Value\":\"\\\"myPassword\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The password for the Salesforce user.\"},\"SalesforceSecurityToken\":{\"Value\":\"\\\"\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The security token for your Salesforce instance.\"},\"SalesforceClientID\":{\"Value\":\"\\\"\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The client ID for Salesforce.\"},\"SalesforceClientSecret\":{\"Value\":\"\\\"\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The client secret for Salesforce.\"},\"SalesforceBaseURL\":{\"Value\":\"\\\"https://<my-salesforce-instance>.my.salesforce.com\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base URL for Salesforce, ending in my.salesforce.com.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "JSON to Salesforce - Customers",
					"Modified": "2024-07-10T07:46:32.1914579",
					"Modifier": "janne.pennanen@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This template process reads a JSON file from the local fileshare containing customer data, and imports the customers into Salesforce as contacts.",
					"Version": 1,
					"UniqueIdentifier": "edbc06ec-4e9f-4dd6-a011-e6ca9843d0ff",
					"GraphJson": null,
					"Bpmn": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn2:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><bpmn2:process id=\"Process_1\" isExecutable=\"false\"><bpmn2:startEvent id=\"StartEvent_1\" name=\"Manual\"><bpmn2:outgoing>Flow_0s6aa99</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_1bd2ugg\" name=\"Read JSON file from local fileshare\"><bpmn2:incoming>Flow_0s6aa99</bpmn2:incoming><bpmn2:outgoing>Flow_1ecf5fg</bpmn2:outgoing><bpmn2:property id=\"Property_09rqev4\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_0q29s2n\"><bpmn2:sourceRef>DataObjectReference_1u9hzc4</bpmn2:sourceRef><bpmn2:targetRef>Property_09rqev4</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0s6aa99\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1bd2ugg\" /><bpmn2:exclusiveGateway id=\"Gateway_1b95n72\" name=\"File read and content converted successfully?\" default=\"Flow_0gnf01k\"><bpmn2:incoming>Flow_0x2dxph</bpmn2:incoming><bpmn2:outgoing>Flow_0gnf01k</bpmn2:outgoing><bpmn2:outgoing>Flow_035szr3</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:intermediateThrowEvent id=\"Event_0mhb2t8\" name=\"Throw an exception if the file couldn&#39;t be read or it was empty.\"><bpmn2:incoming>Flow_0gnf01k</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_0gnf01k\" name=\"no\" sourceRef=\"Gateway_1b95n72\" targetRef=\"Event_0mhb2t8\" /><bpmn2:scriptTask id=\"Activity_1hexoaq\" name=\"Initialize errors variable\"><bpmn2:incoming>Flow_035szr3</bpmn2:incoming><bpmn2:outgoing>Flow_1el398j</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_035szr3\" name=\"yes\" sourceRef=\"Gateway_1b95n72\" targetRef=\"Activity_1hexoaq\" /><bpmn2:scriptTask id=\"Activity_1h6kahs\" name=\"Initialize inserted count\"><bpmn2:incoming>Flow_1el398j</bpmn2:incoming><bpmn2:outgoing>Flow_03pv85l</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_1el398j\" sourceRef=\"Activity_1hexoaq\" targetRef=\"Activity_1h6kahs\" /><bpmn2:scriptTask id=\"Activity_0oo8mjm\" name=\"Initialize updated count\"><bpmn2:incoming>Flow_03pv85l</bpmn2:incoming><bpmn2:outgoing>Flow_1sjm7nr</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_03pv85l\" sourceRef=\"Activity_1h6kahs\" targetRef=\"Activity_0oo8mjm\" /><bpmn2:sequenceFlow id=\"Flow_1sjm7nr\" sourceRef=\"Activity_0oo8mjm\" targetRef=\"Activity_0f8rnnq\" /><bpmn2:endEvent id=\"Event_1g13p2o\" name=\"Return a message with the insert and update counts and possible errors\"><bpmn2:incoming>Flow_0anb2rl</bpmn2:incoming></bpmn2:endEvent><bpmn2:subProcess id=\"Activity_0f8rnnq\" name=\"For each customer in the JSON\"><bpmn2:incoming>Flow_1sjm7nr</bpmn2:incoming><bpmn2:outgoing>Flow_0anb2rl</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:endEvent id=\"Event_02eb2dm\" name=\"Add error to errors variable and move to the next customer\"><bpmn2:incoming>Flow_0tm1y1t</bpmn2:incoming></bpmn2:endEvent><bpmn2:endEvent id=\"Event_0zqss8g\" name=\"Add error to errors variable and move to the next customer\"><bpmn2:incoming>Flow_007mz02</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_1rk8tp7\" name=\"Creation successful?\" default=\"Flow_0tm1y1t\"><bpmn2:incoming>Flow_0u5sgyq</bpmn2:incoming><bpmn2:outgoing>Flow_0tm1y1t</bpmn2:outgoing><bpmn2:outgoing>Flow_0qe77fk</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0tm1y1t\" name=\"no\" sourceRef=\"Gateway_1rk8tp7\" targetRef=\"Event_02eb2dm\" /><bpmn2:exclusiveGateway id=\"Gateway_01bphdg\" name=\"Update successful?\" default=\"Flow_007mz02\"><bpmn2:incoming>Flow_11d9e06</bpmn2:incoming><bpmn2:outgoing>Flow_007mz02</bpmn2:outgoing><bpmn2:outgoing>Flow_145uboy</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_007mz02\" name=\"no\" sourceRef=\"Gateway_01bphdg\" targetRef=\"Event_0zqss8g\" /><bpmn2:task id=\"Activity_0pway03\" name=\"Update contact on Salesforce\"><bpmn2:incoming>Flow_1nalc47</bpmn2:incoming><bpmn2:outgoing>Flow_11d9e06</bpmn2:outgoing><bpmn2:dataOutputAssociation id=\"DataOutputAssociation_1l7mym9\"><bpmn2:targetRef>DataStoreReference_10ic3o2</bpmn2:targetRef></bpmn2:dataOutputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_11d9e06\" sourceRef=\"Activity_0pway03\" targetRef=\"Gateway_01bphdg\" /><bpmn2:task id=\"Activity_1cnnrvm\" name=\"Insert customer to Salesforce as a contact\"><bpmn2:incoming>Flow_1d9tdjo</bpmn2:incoming><bpmn2:outgoing>Flow_0u5sgyq</bpmn2:outgoing><bpmn2:dataOutputAssociation id=\"DataOutputAssociation_1fp9q7i\"><bpmn2:targetRef>DataStoreReference_10ic3o2</bpmn2:targetRef></bpmn2:dataOutputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0u5sgyq\" sourceRef=\"Activity_1cnnrvm\" targetRef=\"Gateway_1rk8tp7\" /><bpmn2:dataStoreReference id=\"DataStoreReference_10ic3o2\" name=\"Salesforce\" /><bpmn2:endEvent id=\"Event_1thpomt\" name=\"Add error to errors variable and move to the next customer\"><bpmn2:incoming>Flow_1artlwu</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_17ig5za\" name=\"Contact information gotten successfully?\" default=\"Flow_1artlwu\"><bpmn2:incoming>Flow_0ixz4u5</bpmn2:incoming><bpmn2:outgoing>Flow_1artlwu</bpmn2:outgoing><bpmn2:outgoing>Flow_0w79vko</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1artlwu\" name=\"no\" sourceRef=\"Gateway_17ig5za\" targetRef=\"Event_1thpomt\" /><bpmn2:exclusiveGateway id=\"Gateway_0a685pi\" name=\"Is the customer already in Salesforce as a contact?\" default=\"Flow_1d9tdjo\"><bpmn2:incoming>Flow_0w79vko</bpmn2:incoming><bpmn2:outgoing>Flow_1d9tdjo</bpmn2:outgoing><bpmn2:outgoing>Flow_1nalc47</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1d9tdjo\" name=\"no\" sourceRef=\"Gateway_0a685pi\" targetRef=\"Activity_1cnnrvm\" /><bpmn2:sequenceFlow id=\"Flow_1nalc47\" name=\"yes\" sourceRef=\"Gateway_0a685pi\" targetRef=\"Activity_0pway03\" /><bpmn2:sequenceFlow id=\"Flow_0w79vko\" name=\"yes\" sourceRef=\"Gateway_17ig5za\" targetRef=\"Gateway_0a685pi\" /><bpmn2:dataStoreReference id=\"DataStoreReference_0gzr7j9\" name=\"Salesforce\" /><bpmn2:task id=\"Activity_0owpg0a\" name=\"Get contact information from Salesforce\"><bpmn2:incoming>Flow_0ex20na</bpmn2:incoming><bpmn2:outgoing>Flow_0ixz4u5</bpmn2:outgoing><bpmn2:property id=\"Property_0m41ky0\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_06bgqxg\"><bpmn2:sourceRef>DataStoreReference_0gzr7j9</bpmn2:sourceRef><bpmn2:targetRef>Property_0m41ky0</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0ixz4u5\" sourceRef=\"Activity_0owpg0a\" targetRef=\"Gateway_17ig5za\" /><bpmn2:startEvent id=\"Event_0kby6c1\"><bpmn2:outgoing>Flow_0ex20na</bpmn2:outgoing></bpmn2:startEvent><bpmn2:sequenceFlow id=\"Flow_0ex20na\" sourceRef=\"Event_0kby6c1\" targetRef=\"Activity_0owpg0a\" /><bpmn2:endEvent id=\"Event_07093qc\" name=\"Increment update count and move to next product\"><bpmn2:incoming>Flow_145uboy</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_145uboy\" name=\"yes\" sourceRef=\"Gateway_01bphdg\" targetRef=\"Event_07093qc\" /><bpmn2:endEvent id=\"Event_1vxrr7o\" name=\"Increment insert count and move to next product\"><bpmn2:incoming>Flow_0qe77fk</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0qe77fk\" name=\"yes\" sourceRef=\"Gateway_1rk8tp7\" targetRef=\"Event_1vxrr7o\" /><bpmn2:textAnnotation id=\"TextAnnotation_0xs7hna\"><bpmn2:text>Check if a contact with the same email as the customer to be inserted already exists.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1yxkucb\" sourceRef=\"Activity_0owpg0a\" targetRef=\"TextAnnotation_0xs7hna\" /></bpmn2:subProcess><bpmn2:sequenceFlow id=\"Flow_0anb2rl\" sourceRef=\"Activity_0f8rnnq\" targetRef=\"Event_1g13p2o\" /><bpmn2:task id=\"Activity_1vchs21\" name=\"Convert file content to JToken\"><bpmn2:incoming>Flow_1ecf5fg</bpmn2:incoming><bpmn2:outgoing>Flow_0x2dxph</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_1ecf5fg\" sourceRef=\"Activity_1bd2ugg\" targetRef=\"Activity_1vchs21\" /><bpmn2:sequenceFlow id=\"Flow_0x2dxph\" sourceRef=\"Activity_1vchs21\" targetRef=\"Gateway_1b95n72\" /><bpmn2:dataObjectReference id=\"DataObjectReference_1u9hzc4\" name=\"JSON file in local fileshare\" dataObjectRef=\"DataObject_0lqeusa\" /><bpmn2:dataObject id=\"DataObject_0lqeusa\" /><bpmn2:group id=\"Group_1l4wjlx\" categoryValueRef=\"CategoryValue_1lvsvv9\" /><bpmn2:group id=\"Group_0dhpae2\" categoryValueRef=\"CategoryValue_088kei0\" /><bpmn2:textAnnotation id=\"TextAnnotation_1fe1yjs\"><bpmn2:text>Variables are initialized for keeping track of errors and insert/update counts.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_067oetx\" sourceRef=\"Activity_1h6kahs\" targetRef=\"TextAnnotation_1fe1yjs\" /><bpmn2:association id=\"Association_1l0ahri\" sourceRef=\"Activity_1hexoaq\" targetRef=\"TextAnnotation_1fe1yjs\" /><bpmn2:association id=\"Association_1pfv4am\" sourceRef=\"Activity_0oo8mjm\" targetRef=\"TextAnnotation_1fe1yjs\" /></bpmn2:process><bpmn2:category id=\"Category_1tehr59\"><bpmn2:categoryValue id=\"CategoryValue_1lvsvv9\" value=\"Read file from local fileshare\" /></bpmn2:category><bpmn2:category id=\"Category_0vthyx3\"><bpmn2:categoryValue id=\"CategoryValue_088kei0\" value=\"Insert or update the customers as contacts to Salesforce\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"TextAnnotation_1fe1yjs_di\" bpmnElement=\"TextAnnotation_1fe1yjs\"><dc:Bounds x=\"1150\" y=\"80\" width=\"100.00000762939453\" height=\"98.00000762939453\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"362\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"362\" y=\"276\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1bd2ugg_di\" bpmnElement=\"Activity_1bd2ugg\"><dc:Bounds x=\"530\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1b95n72_di\" bpmnElement=\"Gateway_1b95n72\" isMarkerVisible=\"true\"><dc:Bounds x=\"925\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"906\" y=\"188\" width=\"88\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0mhb2t8_di\" bpmnElement=\"Event_0mhb2t8\"><dc:Bounds x=\"932\" y=\"362\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"913\" y=\"405\" width=\"75\" height=\"66\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1hexoaq_di\" bpmnElement=\"Activity_1hexoaq\"><dc:Bounds x=\"1065\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1h6kahs_di\" bpmnElement=\"Activity_1h6kahs\"><dc:Bounds x=\"1185\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0oo8mjm_di\" bpmnElement=\"Activity_0oo8mjm\"><dc:Bounds x=\"1305\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1g13p2o_di\" bpmnElement=\"Event_1g13p2o\"><dc:Bounds x=\"2642\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2617\" y=\"167\" width=\"86\" height=\"66\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0f8rnnq_di\" bpmnElement=\"Activity_0f8rnnq\" isExpanded=\"true\"><dc:Bounds x=\"1410\" y=\"-50\" width=\"1140\" height=\"660\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_02eb2dm_di\" bpmnElement=\"Event_02eb2dm\"><dc:Bounds x=\"2282\" y=\"492\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2261\" y=\"535\" width=\"80\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0zqss8g_di\" bpmnElement=\"Event_0zqss8g\"><dc:Bounds x=\"2282\" y=\"212\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2260\" y=\"255\" width=\"80\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1rk8tp7_di\" bpmnElement=\"Gateway_1rk8tp7\" isMarkerVisible=\"true\"><dc:Bounds x=\"2275\" y=\"375\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2271\" y=\"348\" width=\"58\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_01bphdg_di\" bpmnElement=\"Gateway_01bphdg\" isMarkerVisible=\"true\"><dc:Bounds x=\"2275\" y=\"85\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2271\" y=\"56\" width=\"58\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0pway03_di\" bpmnElement=\"Activity_0pway03\"><dc:Bounds x=\"2070\" y=\"70\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1cnnrvm_di\" bpmnElement=\"Activity_1cnnrvm\"><dc:Bounds x=\"2070\" y=\"360\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_10ic3o2_di\" bpmnElement=\"DataStoreReference_10ic3o2\"><dc:Bounds x=\"2095\" y=\"229\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2153\" y=\"249\" width=\"53\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1thpomt_di\" bpmnElement=\"Event_1thpomt\"><dc:Bounds x=\"1782\" y=\"368\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1760\" y=\"411\" width=\"80\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_17ig5za_di\" bpmnElement=\"Gateway_17ig5za\" isMarkerVisible=\"true\"><dc:Bounds x=\"1775\" y=\"229\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1756\" y=\"188\" width=\"89\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0a685pi_di\" bpmnElement=\"Gateway_0a685pi\" isMarkerVisible=\"true\"><dc:Bounds x=\"1905\" y=\"229\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1966\" y=\"229\" width=\"77\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_0gzr7j9_di\" bpmnElement=\"DataStoreReference_0gzr7j9\"><dc:Bounds x=\"1615\" y=\"101\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1614\" y=\"79\" width=\"53\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0owpg0a_di\" bpmnElement=\"Activity_0owpg0a\"><dc:Bounds x=\"1590\" y=\"214\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0kby6c1_di\" bpmnElement=\"Event_0kby6c1\"><dc:Bounds x=\"1450\" y=\"236\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0xs7hna_di\" bpmnElement=\"TextAnnotation_0xs7hna\"><dc:Bounds x=\"1590\" y=\"371\" width=\"109.99713707298503\" height=\"98.99599006377072\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_07093qc_di\" bpmnElement=\"Event_07093qc\"><dc:Bounds x=\"2432\" y=\"92\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2407\" y=\"40\" width=\"86\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1vxrr7o_di\" bpmnElement=\"Event_1vxrr7o\"><dc:Bounds x=\"2432\" y=\"382\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2410\" y=\"330\" width=\"79\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0tm1y1t_di\" bpmnElement=\"Flow_0tm1y1t\"><di:waypoint x=\"2300\" y=\"425\" /><di:waypoint x=\"2300\" y=\"492\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2309\" y=\"455\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_007mz02_di\" bpmnElement=\"Flow_007mz02\"><di:waypoint x=\"2300\" y=\"135\" /><di:waypoint x=\"2300\" y=\"212\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2309\" y=\"170\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_11d9e06_di\" bpmnElement=\"Flow_11d9e06\"><di:waypoint x=\"2170\" y=\"110\" /><di:waypoint x=\"2275\" y=\"110\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0u5sgyq_di\" bpmnElement=\"Flow_0u5sgyq\"><di:waypoint x=\"2170\" y=\"400\" /><di:waypoint x=\"2275\" y=\"400\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1artlwu_di\" bpmnElement=\"Flow_1artlwu\"><di:waypoint x=\"1800\" y=\"279\" /><di:waypoint x=\"1800\" y=\"368\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1809\" y=\"321\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1d9tdjo_di\" bpmnElement=\"Flow_1d9tdjo\"><di:waypoint x=\"1930\" y=\"279\" /><di:waypoint x=\"1930\" y=\"400\" /><di:waypoint x=\"2070\" y=\"400\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1994\" y=\"382\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1nalc47_di\" bpmnElement=\"Flow_1nalc47\"><di:waypoint x=\"1930\" y=\"229\" /><di:waypoint x=\"1930\" y=\"110\" /><di:waypoint x=\"2070\" y=\"110\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1993\" y=\"92\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0w79vko_di\" bpmnElement=\"Flow_0w79vko\"><di:waypoint x=\"1825\" y=\"254\" /><di:waypoint x=\"1905\" y=\"254\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1857\" y=\"236\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ixz4u5_di\" bpmnElement=\"Flow_0ixz4u5\"><di:waypoint x=\"1690\" y=\"254\" /><di:waypoint x=\"1775\" y=\"254\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ex20na_di\" bpmnElement=\"Flow_0ex20na\"><di:waypoint x=\"1486\" y=\"254\" /><di:waypoint x=\"1590\" y=\"254\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1yxkucb_di\" bpmnElement=\"Association_1yxkucb\"><di:waypoint x=\"1640\" y=\"294\" /><di:waypoint x=\"1640\" y=\"371\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_145uboy_di\" bpmnElement=\"Flow_145uboy\"><di:waypoint x=\"2325\" y=\"110\" /><di:waypoint x=\"2432\" y=\"110\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2370\" y=\"92\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0qe77fk_di\" bpmnElement=\"Flow_0qe77fk\"><di:waypoint x=\"2325\" y=\"400\" /><di:waypoint x=\"2432\" y=\"400\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2370\" y=\"382\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_1vchs21_di\" bpmnElement=\"Activity_1vchs21\"><dc:Bounds x=\"720\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataObjectReference_1u9hzc4_di\" bpmnElement=\"DataObjectReference_1u9hzc4\"><dc:Bounds x=\"562\" y=\"95\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"538\" y=\"65\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Association_067oetx_di\" bpmnElement=\"Association_067oetx\"><di:waypoint x=\"1200\" y=\"243\" /><di:waypoint x=\"1200\" y=\"178\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1l0ahri_di\" bpmnElement=\"Association_1l0ahri\"><di:waypoint x=\"1093\" y=\"247\" /><di:waypoint x=\"1170\" y=\"180\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1pfv4am_di\" bpmnElement=\"Association_1pfv4am\"><di:waypoint x=\"1307\" y=\"247\" /><di:waypoint x=\"1230\" y=\"180\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Group_1l4wjlx_di\" bpmnElement=\"Group_1l4wjlx\"><dc:Bounds x=\"440\" y=\"20\" width=\"600\" height=\"470\" /><bpmndi:BPMNLabel><dc:Bounds x=\"708\" y=\"27\" width=\"69\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0dhpae2_di\" bpmnElement=\"Group_0dhpae2\"><dc:Bounds x=\"1380\" y=\"-130\" width=\"1200\" height=\"770\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1939\" y=\"-123\" width=\"83\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"DataInputAssociation_0q29s2n_di\" bpmnElement=\"DataInputAssociation_0q29s2n\"><di:waypoint x=\"580\" y=\"145\" /><di:waypoint x=\"580\" y=\"218\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0s6aa99_di\" bpmnElement=\"Flow_0s6aa99\"><di:waypoint x=\"398\" y=\"258\" /><di:waypoint x=\"530\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0gnf01k_di\" bpmnElement=\"Flow_0gnf01k\"><di:waypoint x=\"950\" y=\"283\" /><di:waypoint x=\"950\" y=\"362\" /><bpmndi:BPMNLabel><dc:Bounds x=\"959\" y=\"320\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_035szr3_di\" bpmnElement=\"Flow_035szr3\"><di:waypoint x=\"975\" y=\"258\" /><di:waypoint x=\"1065\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1012\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1el398j_di\" bpmnElement=\"Flow_1el398j\"><di:waypoint x=\"1095\" y=\"258\" /><di:waypoint x=\"1185\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_03pv85l_di\" bpmnElement=\"Flow_03pv85l\"><di:waypoint x=\"1215\" y=\"258\" /><di:waypoint x=\"1305\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1sjm7nr_di\" bpmnElement=\"Flow_1sjm7nr\"><di:waypoint x=\"1335\" y=\"258\" /><di:waypoint x=\"1410\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataOutputAssociation_1l7mym9_di\" bpmnElement=\"DataOutputAssociation_1l7mym9\"><di:waypoint x=\"2120\" y=\"150\" /><di:waypoint x=\"2120\" y=\"229\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataOutputAssociation_1fp9q7i_di\" bpmnElement=\"DataOutputAssociation_1fp9q7i\"><di:waypoint x=\"2120\" y=\"360\" /><di:waypoint x=\"2120\" y=\"279\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_06bgqxg_di\" bpmnElement=\"DataInputAssociation_06bgqxg\"><di:waypoint x=\"1640\" y=\"151\" /><di:waypoint x=\"1640\" y=\"214\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0anb2rl_di\" bpmnElement=\"Flow_0anb2rl\"><di:waypoint x=\"2550\" y=\"258\" /><di:waypoint x=\"2642\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1ecf5fg_di\" bpmnElement=\"Flow_1ecf5fg\"><di:waypoint x=\"630\" y=\"258\" /><di:waypoint x=\"720\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0x2dxph_di\" bpmnElement=\"Flow_0x2dxph\"><di:waypoint x=\"820\" y=\"258\" /><di:waypoint x=\"925\" y=\"258\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{},\"SelectedTypeId\":\"ManualTrigger\",\"PromoteResultAs\":null,\"Name\":\"Manual\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1bd2ugg\",\"Type\":1,\"Parameters\":{\"input\":{\"Path\":{\"mode\":\"csharp\",\"value\":\"#var.InputPath\"}},\"options\":{\"UseGivenUserCredentialsForRemoteConnections\":{\"mode\":\"toggle\",\"value\":false},\"UserName\":{\"mode\":\"text\",\"value\":\"domain\\\\username\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"FileEncoding\":{\"mode\":\"select\",\"value\":\"UTF8\"},\"EnableBom\":{\"mode\":\"toggle\",\"value\":false},\"EncodingInString\":{\"mode\":\"text\",\"value\":\"\"}}},\"SelectedTypeId\":\"/ProcessTask/7bef1e4f-5122-471b-8456-e52a2b0e9ba0/v1\",\"PromoteResultAs\":null,\"Name\":\"Read JSON file from local fileshare\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1b95n72\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"!String.IsNullOrWhiteSpace(#result[Read JSON file from local fileshare].Content) && #result[Convert file content to JToken].Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"File read and content converted successfully?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0mhb2t8\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An exception occurred when reading the JSON file or converting it into a JToken.\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0gnf01k\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_035szr3\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1hexoaq\",\"Type\":12,\"Parameters\":{\"variableName\":\"errors\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"\\\"\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize errors variable\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1h6kahs\",\"Type\":12,\"Parameters\":{\"variableName\":\"insertedCount\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize inserted count\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0oo8mjm\",\"Type\":12,\"Parameters\":{\"variableName\":\"updatedCount\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize updated count\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1g13p2o\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"$\\\"{#var.insertedCount} contacts inserted and {#var.updatedCount} updated into Salesforce.\\\" + (#var.errors == \\\"\\\" ? \\\"\\\" : $\\\"The following exceptions occurred: {#var.errors}\\\")\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0kby6c1\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0owpg0a\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceBaseURL\"},\"Query\":{\"mode\":\"text\",\"value\":\"SELECT Id, Name\\r\\nFROM Contact\\r\\nWHERE Email = '{{#var.customer.Email}}'\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"text\",\"value\":\"https://login.salesforce.com/services/oauth2/token\",\"disableWordWrap\":false},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientID\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforcePassword\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceSecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false},\"ThrowAnErrorIfNotFound\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/12e91c58-734a-451e-87e2-4c23385c1c43/v1\",\"PromoteResultAs\":null,\"Name\":\"Get contact information from Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_0gzr7j9\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0a685pi\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"(int)#result[Get contact information from Salesforce].Body[\\\"totalSize\\\"] != 0\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Is the customer already in Salesforce as a contact?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0w79vko\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1nalc47\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1d9tdjo\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_17ig5za\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Contact information gotten successfully?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1artlwu\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1thpomt\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nFailed to get contact information from Salesforce: {#result.ErrorMessage}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_10ic3o2\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1cnnrvm\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceBaseURL\"},\"SObjectAsJson\":{\"mode\":\"text\",\"value\":\"{\\r\\n    \\\"FirstName\\\": \\\"{{#var.customer.FirstName}}\\\",\\r\\n    \\\"LastName\\\": \\\"{{#var.customer.LastName}}\\\",\\r\\n    \\\"Fax\\\": \\\"{{#var.customer.Fax}}\\\",\\r\\n    \\\"Email\\\": \\\"{{#var.customer.Email}}\\\",\\r\\n    \\\"MobilePhone\\\": \\\"{{#var.customer.MobilePhone}}\\\",\\r\\n    \\\"HomePhone\\\": \\\"{{#var.customer.HomePhone}}\\\",\\r\\n    \\\"Phone\\\": \\\"{{#var.customer.Phone}}\\\",\\r\\n    \\\"MailingStreet\\\": \\\"{{#var.customer.MailingStreet}}\\\",\\r\\n    \\\"MailingCity\\\": \\\"{{#var.customer.MailngCity}}\\\",\\r\\n    \\\"MailingPostalCode\\\": \\\"{{#var.customer.MailingPostalCode}}\\\",\\r\\n    \\\"MailingCountry\\\": \\\"{{#var.customer.MailingCountry}}\\\",\\r\\n    \\\"MailingState\\\": \\\"{{#var.customer.MailingState}}\\\",\\r\\n    \\\"OtherStreet\\\": \\\"{{#var.customer.OtherStreet}}\\\",\\r\\n    \\\"OtherCity\\\": \\\"{{#var.customer.OtherCity}}\\\",\\r\\n    \\\"OtherPostalCode\\\": \\\"{{#var.customer.OtherPostalCode}}\\\",\\r\\n    \\\"OtherCountry\\\": \\\"{{#var.customer.OtherCountry}}\\\",\\r\\n    \\\"OtherState\\\": \\\"{{#var.customer.OtherState}}\\\",\\r\\n    \\\"OtherPhone\\\": \\\"{{#var.customer.OtherPhone}}\\\",\\r\\n    \\\"Salutation\\\": \\\"{{#var.customer.Salutation}}\\\",\\r\\n    \\\"Title\\\": \\\"{{#var.customer.Title}}\\\",\\r\\n    \\\"AssistantName\\\": \\\"{{#var.customer.AssistantName}}\\\",\\r\\n    \\\"AssistantPhone\\\": \\\"{{#var.customer.AssistantPhone}}\\\",\\r\\n    \\\"Description\\\": \\\"{{#var.customer.Description}}\\\"\\r\\n}\"},\"SObjectType\":{\"mode\":\"text\",\"value\":\"Contact\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"text\",\"value\":\"https://login.salesforce.com/services/oauth2/token\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientID\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforcePassword\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceSecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/c5fbbd06-fd05-4d72-af74-ae8805a458de/v1\",\"PromoteResultAs\":null,\"Name\":\"Insert customer to Salesforce as a contact\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0pway03\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceBaseURL\"},\"SObjectAsJson\":{\"mode\":\"text\",\"value\":\"{\\r\\n    \\\"FirstName\\\": \\\"{{#var.customer.FirstName}}\\\",\\r\\n    \\\"LastName\\\": \\\"{{#var.customer.LastName}}\\\",\\r\\n    \\\"Fax\\\": \\\"{{#var.customer.Fax}}\\\",\\r\\n    \\\"Email\\\": \\\"{{#var.customer.Email}}\\\",\\r\\n    \\\"MobilePhone\\\": \\\"{{#var.customer.MobilePhone}}\\\",\\r\\n    \\\"HomePhone\\\": \\\"{{#var.customer.HomePhone}}\\\",\\r\\n    \\\"Phone\\\": \\\"{{#var.customer.Phone}}\\\",\\r\\n    \\\"MailingStreet\\\": \\\"{{#var.customer.MailingStreet}}\\\",\\r\\n    \\\"MailingCity\\\": \\\"{{#var.customer.MailngCity}}\\\",\\r\\n    \\\"MailingPostalCode\\\": \\\"{{#var.customer.MailingPostalCode}}\\\",\\r\\n    \\\"MailingCountry\\\": \\\"{{#var.customer.MailingCountry}}\\\",\\r\\n    \\\"MailingState\\\": \\\"{{#var.customer.MailingState}}\\\",\\r\\n    \\\"OtherStreet\\\": \\\"{{#var.customer.OtherStreet}}\\\",\\r\\n    \\\"OtherCity\\\": \\\"{{#var.customer.OtherCity}}\\\",\\r\\n    \\\"OtherPostalCode\\\": \\\"{{#var.customer.OtherPostalCode}}\\\",\\r\\n    \\\"OtherCountry\\\": \\\"{{#var.customer.OtherCountry}}\\\",\\r\\n    \\\"OtherState\\\": \\\"{{#var.customer.OtherState}}\\\",\\r\\n    \\\"OtherPhone\\\": \\\"{{#var.customer.OtherPhone}}\\\",\\r\\n    \\\"Salutation\\\": \\\"{{#var.customer.Salutation}}\\\",\\r\\n    \\\"Title\\\": \\\"{{#var.customer.Title}}\\\",\\r\\n    \\\"AssistantName\\\": \\\"{{#var.customer.AssistantName}}\\\",\\r\\n    \\\"AssistantPhone\\\": \\\"{{#var.customer.AssistantPhone}}\\\",\\r\\n    \\\"Description\\\": \\\"{{#var.customer.Description}}\\\"\\r\\n}\"},\"SObjectId\":{\"mode\":\"csharp\",\"value\":\"#result[Get contact information from Salesforce].Body[\\\"records\\\"][0][\\\"Id\\\"]\"},\"SObjectType\":{\"mode\":\"text\",\"value\":\"Contact\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"text\",\"value\":\"https://login.salesforce.com/services/oauth2/token\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientID\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforcePassword\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceSecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false},\"ThrowAnErrorIfNotFound\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/401db187-fbf0-4886-b7bc-927ac0c35324/v1\",\"PromoteResultAs\":null,\"Name\":\"Update contact on Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_01bphdg\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Update successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_007mz02\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1rk8tp7\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Creation successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0tm1y1t\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0zqss8g\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nFailed to update the customer {#var.customer.firstname} {#var.customer.lastname} in Salesforce: {#result.Body}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_02eb2dm\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nFailed to insert the customer {#var.customer.firstname} {#var.customer.lastname} into Salesforce: {#result.Body}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0f8rnnq\",\"Type\":10,\"Parameters\":{\"variable\":\"customer\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Convert file content to JToken].Jtoken\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each customer in the JSON\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1vchs21\",\"Type\":1,\"Parameters\":{\"input\":{\"Json\":{\"mode\":\"csharp\",\"value\":\"#result.Content\"}}},\"SelectedTypeId\":\"/ProcessTask/fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6/v2\",\"PromoteResultAs\":null,\"Name\":\"Convert file content to JToken\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_1u9hzc4\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"JSON file in local fileshare\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_145uboy\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_07093qc\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.updatedCount++\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0qe77fk\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1vxrr7o\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.insertedCount++\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ManualTrigger\",\"config\":{},\"name\":\"Manual\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/7BEF1E4F-5122-471B-8456-E52A2B0E9BA0/v1\",\"/ProcessTask/FC3F0FFD-4F6D-4A54-8D19-EF4D00A6B1A6/v2\",\"/ProcessTask/12E91C58-734A-451E-87E2-4C23385C1C43/v1\",\"/ProcessTask/401DB187-FBF0-4886-B7BC-927AC0C35324/v1\",\"/ProcessTask/C5FBBD06-FD05-4D72-AF74-AE8805A458DE/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.3.1743",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 0,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"edbc06ec-4e9f-4dd6-a011-e6ca9843d0ff": [
						{
							"Id": "7bef1e4f-5122-471b-8456-e52a2b0e9ba0",
							"PackageId": "Frends.Files.Read",
							"PackageVersion": "1.0.0",
							"Name": "Frends.Files.Read.Files.Read(Input, Options)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6",
							"PackageId": "Frends.JSON.ConvertJSONStringToJToken",
							"PackageVersion": "1.0.1",
							"Name": "Frends.JSON.ConvertJSONStringToJToken.JSON.ConvertJSONStringToJToken(Input)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "12e91c58-734a-451e-87e2-4c23385c1c43",
							"PackageId": "Frends.Salesforce.ExecuteQuery",
							"PackageVersion": "1.0.1",
							"Name": "Frends.Salesforce.ExecuteQuery.Salesforce.ExecuteQuery(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "401db187-fbf0-4886-b7bc-927ac0c35324",
							"PackageId": "Frends.Salesforce.UpdateSObject",
							"PackageVersion": "1.0.0",
							"Name": "Frends.Salesforce.UpdateSObject.Salesforce.UpdateSObject(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "c5fbbd06-fd05-4d72-af74-ae8805a458de",
							"PackageId": "Frends.Salesforce.CreateSObject",
							"PackageVersion": "1.0.1",
							"Name": "Frends.Salesforce.CreateSObject.Salesforce.CreateSObject(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}