{
	"ProcessTemplates": [
		{
			"Name": "JSON to HubSpot - Products",
			"Modified": "2024-07-18T12:55:50.8846041",
			"Modifier": "charlotta.bergstrom@frends.com",
			"Tags": [],
			"TemplateProcessTags": [],
			"Description": "This template reads a JSON file containing product data from a local fileshare and either inserts or updates each product in HubSpot.",
			"Version": 3,
			"UniqueIdentifier": "5f677c83-80c0-4fa3-8e7e-2e5117cfa9da",
			"ProcessVariablesJson": "{\"InFilePath\":{\"Value\":\"\\\"/example_directory/example_filename.json\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The full path of the JSON file, including the file name.\"},\"HubSpotAccessToken\":{\"Value\":\"\\\"ExampleAccessToken\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The access token for the HubSpot API.\"},\"HubSpotBaseUrl\":{\"Value\":\"\\\"https://api.hubapi.com/crm/v3\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base URL of the HubSpot API.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "JSON to HubSpot - Products",
					"Modified": "2024-07-18T12:55:50.8846041",
					"Modifier": "charlotta.bergstrom@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This template reads a JSON file containing product data from a local fileshare and either inserts or updates each product in HubSpot.",
					"Version": 1,
					"UniqueIdentifier": "1c578787-7601-45f9-acea-f4672dcf3b20",
					"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_1dqo21i</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_1xttsd6\" name=\"Read file from local fileshare\"><bpmn2:incoming>Flow_1dqo21i</bpmn2:incoming><bpmn2:outgoing>Flow_16vta08</bpmn2:outgoing><bpmn2:property id=\"Property_1c4u98x\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_1a0sm1p\"><bpmn2:sourceRef>DataObjectReference_0t324yn</bpmn2:sourceRef><bpmn2:targetRef>Property_1c4u98x</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:dataObjectReference id=\"DataObjectReference_0t324yn\" name=\"JSON file\" dataObjectRef=\"DataObject_09gfq3i\" /><bpmn2:dataObject id=\"DataObject_09gfq3i\" /><bpmn2:subProcess id=\"Activity_0uy4186\" name=\"For each product\"><bpmn2:incoming>Flow_18b1kej</bpmn2:incoming><bpmn2:outgoing>Flow_1wc3wx9</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_0y89nbv\"><bpmn2:outgoing>Flow_1caxfe2</bpmn2:outgoing></bpmn2:startEvent><bpmn2:endEvent id=\"Event_0aoor6t\" name=\"Increase inserted count\"><bpmn2:incoming>Flow_008wpfe</bpmn2:incoming></bpmn2:endEvent><bpmn2:task id=\"Activity_15r9naq\" name=\"Insert product into HubSpot\"><bpmn2:incoming>Flow_1ht67w9</bpmn2:incoming><bpmn2:outgoing>Flow_1htpzlk</bpmn2:outgoing><bpmn2:dataOutputAssociation id=\"DataOutputAssociation_1gu5h9f\"><bpmn2:targetRef>DataStoreReference_1y19xbe</bpmn2:targetRef></bpmn2:dataOutputAssociation></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_12a9t0o\" name=\"Product exists in HubSpot?\" default=\"Flow_1ht67w9\"><bpmn2:incoming>Flow_0fex8iw</bpmn2:incoming><bpmn2:outgoing>Flow_1ht67w9</bpmn2:outgoing><bpmn2:outgoing>Flow_03nd5fi</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:task id=\"Activity_17ysanq\" name=\"Update product in HubSpot\"><bpmn2:incoming>Flow_03nd5fi</bpmn2:incoming><bpmn2:outgoing>Flow_170ckvu</bpmn2:outgoing><bpmn2:dataOutputAssociation id=\"DataOutputAssociation_1on34o7\"><bpmn2:targetRef>DataStoreReference_1y19xbe</bpmn2:targetRef></bpmn2:dataOutputAssociation></bpmn2:task><bpmn2:endEvent id=\"Event_140j469\" name=\"Increase updated count\"><bpmn2:incoming>Flow_0738b95</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_1e2y6rp\" name=\"Insert successful?\" default=\"Flow_1dnabiz\"><bpmn2:incoming>Flow_1htpzlk</bpmn2:incoming><bpmn2:outgoing>Flow_008wpfe</bpmn2:outgoing><bpmn2:outgoing>Flow_1dnabiz</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_0g5tcyv\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_1dnabiz</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_0vg69db\" name=\"Update successful?\" default=\"Flow_1pl326x\"><bpmn2:incoming>Flow_170ckvu</bpmn2:incoming><bpmn2:outgoing>Flow_0738b95</bpmn2:outgoing><bpmn2:outgoing>Flow_1pl326x</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_0hv2hf2\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_1pl326x</bpmn2:incoming></bpmn2:endEvent><bpmn2:task id=\"Activity_1ucbuqm\" name=\"Check if product exists in HubSpot\"><bpmn2:incoming>Flow_1caxfe2</bpmn2:incoming><bpmn2:outgoing>Flow_05smycz</bpmn2:outgoing></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_0hfumon\" name=\"Check if product exists successful?\" default=\"Flow_1prq20y\"><bpmn2:incoming>Flow_05smycz</bpmn2:incoming><bpmn2:outgoing>Flow_0fex8iw</bpmn2:outgoing><bpmn2:outgoing>Flow_1prq20y</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_0o5sixs\" name=\"Return and add error message to errors variable\"><bpmn2:incoming>Flow_1prq20y</bpmn2:incoming></bpmn2:endEvent><bpmn2:dataStoreReference id=\"DataStoreReference_1y19xbe\" name=\"HubSpot\" /><bpmn2:sequenceFlow id=\"Flow_1caxfe2\" sourceRef=\"Event_0y89nbv\" targetRef=\"Activity_1ucbuqm\" /><bpmn2:sequenceFlow id=\"Flow_008wpfe\" name=\"yes\" sourceRef=\"Gateway_1e2y6rp\" targetRef=\"Event_0aoor6t\" /><bpmn2:sequenceFlow id=\"Flow_1ht67w9\" name=\"no\" sourceRef=\"Gateway_12a9t0o\" targetRef=\"Activity_15r9naq\" /><bpmn2:sequenceFlow id=\"Flow_1htpzlk\" sourceRef=\"Activity_15r9naq\" targetRef=\"Gateway_1e2y6rp\" /><bpmn2:sequenceFlow id=\"Flow_0fex8iw\" name=\"yes\" sourceRef=\"Gateway_0hfumon\" targetRef=\"Gateway_12a9t0o\" /><bpmn2:sequenceFlow id=\"Flow_03nd5fi\" name=\"yes\" sourceRef=\"Gateway_12a9t0o\" targetRef=\"Activity_17ysanq\" /><bpmn2:sequenceFlow id=\"Flow_170ckvu\" sourceRef=\"Activity_17ysanq\" targetRef=\"Gateway_0vg69db\" /><bpmn2:sequenceFlow id=\"Flow_0738b95\" name=\"yes\" sourceRef=\"Gateway_0vg69db\" targetRef=\"Event_140j469\" /><bpmn2:sequenceFlow id=\"Flow_1dnabiz\" name=\"no\" sourceRef=\"Gateway_1e2y6rp\" targetRef=\"Event_0g5tcyv\" /><bpmn2:sequenceFlow id=\"Flow_1pl326x\" name=\"no\" sourceRef=\"Gateway_0vg69db\" targetRef=\"Event_0hv2hf2\" /><bpmn2:sequenceFlow id=\"Flow_05smycz\" sourceRef=\"Activity_1ucbuqm\" targetRef=\"Gateway_0hfumon\" /><bpmn2:sequenceFlow id=\"Flow_1prq20y\" name=\"no\" sourceRef=\"Gateway_0hfumon\" targetRef=\"Event_0o5sixs\" /><bpmn2:textAnnotation id=\"TextAnnotation_0k5e5jz\"><bpmn2:text>Search for a matching product SKU.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_0owykly\" sourceRef=\"Activity_1ucbuqm\" targetRef=\"TextAnnotation_0k5e5jz\" /></bpmn2:subProcess><bpmn2:exclusiveGateway id=\"Gateway_0pk9f8p\" name=\"Read file successful?\" default=\"Flow_033d98f\"><bpmn2:incoming>Flow_16vta08</bpmn2:incoming><bpmn2:outgoing>Flow_1iqxnug</bpmn2:outgoing><bpmn2:outgoing>Flow_033d98f</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:intermediateThrowEvent id=\"Event_093k26y\" name=\"Throw an error if the file can&#39;t be read\"><bpmn2:incoming>Flow_033d98f</bpmn2:incoming><bpmn2:signalEventDefinition id=\"SignalEventDefinition_1drcny5\" /></bpmn2:intermediateThrowEvent><bpmn2:endEvent id=\"Event_0g7ncnu\"><bpmn2:incoming>Flow_1wc3wx9</bpmn2:incoming></bpmn2:endEvent><bpmn2:task id=\"Activity_0zk6rfm\" name=\"Convert to JToken\"><bpmn2:incoming>Flow_1iqxnug</bpmn2:incoming><bpmn2:outgoing>Flow_0kpprax</bpmn2:outgoing></bpmn2:task><bpmn2:scriptTask id=\"Activity_1jq92cn\" name=\"Assign errors\"><bpmn2:incoming>Flow_0kpprax</bpmn2:incoming><bpmn2:outgoing>Flow_0cl68sb</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:scriptTask id=\"Activity_130kuj9\" name=\"Assign inserted\"><bpmn2:incoming>Flow_0cl68sb</bpmn2:incoming><bpmn2:outgoing>Flow_1pphpvj</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:scriptTask id=\"Activity_0p4ify2\" name=\"Assign updated\"><bpmn2:incoming>Flow_1pphpvj</bpmn2:incoming><bpmn2:outgoing>Flow_18b1kej</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_1dqo21i\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1xttsd6\" /><bpmn2:sequenceFlow id=\"Flow_16vta08\" sourceRef=\"Activity_1xttsd6\" targetRef=\"Gateway_0pk9f8p\" /><bpmn2:sequenceFlow id=\"Flow_18b1kej\" sourceRef=\"Activity_0p4ify2\" targetRef=\"Activity_0uy4186\" /><bpmn2:sequenceFlow id=\"Flow_1wc3wx9\" sourceRef=\"Activity_0uy4186\" targetRef=\"Event_0g7ncnu\" /><bpmn2:sequenceFlow id=\"Flow_1iqxnug\" name=\"yes\" sourceRef=\"Gateway_0pk9f8p\" targetRef=\"Activity_0zk6rfm\" /><bpmn2:sequenceFlow id=\"Flow_033d98f\" name=\"no\" sourceRef=\"Gateway_0pk9f8p\" targetRef=\"Event_093k26y\" /><bpmn2:sequenceFlow id=\"Flow_0kpprax\" sourceRef=\"Activity_0zk6rfm\" targetRef=\"Activity_1jq92cn\" /><bpmn2:sequenceFlow id=\"Flow_0cl68sb\" sourceRef=\"Activity_1jq92cn\" targetRef=\"Activity_130kuj9\" /><bpmn2:sequenceFlow id=\"Flow_1pphpvj\" sourceRef=\"Activity_130kuj9\" targetRef=\"Activity_0p4ify2\" /><bpmn2:textAnnotation id=\"TextAnnotation_0yjvuug\"><bpmn2:text>Returns the count of inserted and updated products and possible errors.</bpmn2:text></bpmn2:textAnnotation><bpmn2:textAnnotation id=\"TextAnnotation_1r0f1up\"><bpmn2:text>Create variables for possible errors and inserted/updated count.</bpmn2:text></bpmn2:textAnnotation><bpmn2:group id=\"Group_1it4riu\" categoryValueRef=\"CategoryValue_1nfblqb\" /><bpmn2:group id=\"Group_0etgl2a\" categoryValueRef=\"CategoryValue_1gq6ye8\" /><bpmn2:textAnnotation id=\"TextAnnotation_0b11tbh\"><bpmn2:text>Convert data from JSON string to JToken.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1y6dk0g\" sourceRef=\"Event_0g7ncnu\" targetRef=\"TextAnnotation_0yjvuug\" /><bpmn2:association id=\"Association_1wky01v\" sourceRef=\"Activity_0zk6rfm\" targetRef=\"TextAnnotation_0b11tbh\" /><bpmn2:association id=\"Association_0dh5zn0\" sourceRef=\"Activity_1jq92cn\" targetRef=\"TextAnnotation_1r0f1up\" /><bpmn2:association id=\"Association_06mi7li\" sourceRef=\"Activity_130kuj9\" targetRef=\"TextAnnotation_1r0f1up\" /><bpmn2:association id=\"Association_1u0arqx\" sourceRef=\"Activity_0p4ify2\" targetRef=\"TextAnnotation_1r0f1up\" /></bpmn2:process><bpmn2:category id=\"Category_0q6q4nl\"><bpmn2:categoryValue id=\"CategoryValue_1nfblqb\" value=\"Read JSON file\" /></bpmn2:category><bpmn2:category id=\"Category_1oox9hc\"><bpmn2:categoryValue id=\"CategoryValue_1gq6ye8\" value=\"Insert into HubSpot\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"BPMNShape_0zx5wxk\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"62\" y=\"472\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"62\" y=\"508\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1xttsd6_di\" bpmnElement=\"Activity_1xttsd6\"><dc:Bounds x=\"180\" y=\"450\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataObjectReference_0t324yn_di\" bpmnElement=\"DataObjectReference_0t324yn\"><dc:Bounds x=\"212\" y=\"310\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"207\" y=\"286\" width=\"46\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0uy4186_di\" bpmnElement=\"Activity_0uy4186\" isExpanded=\"true\"><dc:Bounds x=\"990\" y=\"220\" width=\"1070\" height=\"580\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0y89nbv_di\" bpmnElement=\"Event_0y89nbv\"><dc:Bounds x=\"1030\" y=\"472\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0aoor6t_di\" bpmnElement=\"Event_0aoor6t\"><dc:Bounds x=\"1942\" y=\"330\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1918\" y=\"373\" width=\"85\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_15r9naq_di\" bpmnElement=\"Activity_15r9naq\"><dc:Bounds x=\"1600\" y=\"308\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_12a9t0o_di\" bpmnElement=\"Gateway_12a9t0o\" isMarkerVisible=\"true\"><dc:Bounds x=\"1465\" y=\"465\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1499\" y=\"456\" width=\"82\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_17ysanq_di\" bpmnElement=\"Activity_17ysanq\"><dc:Bounds x=\"1600\" y=\"570\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_140j469_di\" bpmnElement=\"Event_140j469\"><dc:Bounds x=\"1942\" y=\"592\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1917\" y=\"635\" width=\"86\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1e2y6rp_di\" bpmnElement=\"Gateway_1e2y6rp\" isMarkerVisible=\"true\"><dc:Bounds x=\"1815\" y=\"323\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1795\" y=\"299\" width=\"89\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0g5tcyv_di\" bpmnElement=\"Event_0g5tcyv\"><dc:Bounds x=\"1822\" y=\"432\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1799\" y=\"475\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0vg69db_di\" bpmnElement=\"Gateway_0vg69db\" isMarkerVisible=\"true\"><dc:Bounds x=\"1815\" y=\"585\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1812\" y=\"555\" width=\"57\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0hv2hf2_di\" bpmnElement=\"Event_0hv2hf2\"><dc:Bounds x=\"1822\" y=\"682\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1799\" y=\"725\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1ucbuqm_di\" bpmnElement=\"Activity_1ucbuqm\"><dc:Bounds x=\"1140\" y=\"450\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0hfumon_di\" bpmnElement=\"Gateway_0hfumon\" isMarkerVisible=\"true\"><dc:Bounds x=\"1325\" y=\"465\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1306\" y=\"435\" width=\"90\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0o5sixs_di\" bpmnElement=\"Event_0o5sixs\"><dc:Bounds x=\"1332\" y=\"592\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1309\" y=\"635\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_1y19xbe_di\" bpmnElement=\"DataStoreReference_1y19xbe\"><dc:Bounds x=\"1625\" y=\"465\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1688\" y=\"483\" width=\"44\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0k5e5jz_di\" bpmnElement=\"TextAnnotation_0k5e5jz\"><dc:Bounds x=\"1140\" y=\"350\" width=\"110\" height=\"55\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1caxfe2_di\" bpmnElement=\"Flow_1caxfe2\"><di:waypoint x=\"1066\" y=\"490\" /><di:waypoint x=\"1140\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_008wpfe_di\" bpmnElement=\"Flow_008wpfe\"><di:waypoint x=\"1865\" y=\"348\" /><di:waypoint x=\"1942\" y=\"348\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1874\" y=\"330\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1ht67w9_di\" bpmnElement=\"Flow_1ht67w9\"><di:waypoint x=\"1490\" y=\"465\" /><di:waypoint x=\"1490\" y=\"348\" /><di:waypoint x=\"1600\" y=\"348\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1499\" y=\"404\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1htpzlk_di\" bpmnElement=\"Flow_1htpzlk\"><di:waypoint x=\"1700\" y=\"348\" /><di:waypoint x=\"1815\" y=\"348\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0fex8iw_di\" bpmnElement=\"Flow_0fex8iw\"><di:waypoint x=\"1375\" y=\"490\" /><di:waypoint x=\"1465\" y=\"490\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1392\" y=\"468\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_03nd5fi_di\" bpmnElement=\"Flow_03nd5fi\"><di:waypoint x=\"1490\" y=\"515\" /><di:waypoint x=\"1490\" y=\"610\" /><di:waypoint x=\"1600\" y=\"610\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1498\" y=\"560\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_170ckvu_di\" bpmnElement=\"Flow_170ckvu\"><di:waypoint x=\"1700\" y=\"610\" /><di:waypoint x=\"1815\" y=\"610\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0738b95_di\" bpmnElement=\"Flow_0738b95\"><di:waypoint x=\"1865\" y=\"610\" /><di:waypoint x=\"1942\" y=\"610\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1874\" y=\"593\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1dnabiz_di\" bpmnElement=\"Flow_1dnabiz\"><di:waypoint x=\"1840\" y=\"373\" /><di:waypoint x=\"1840\" y=\"432\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1849\" y=\"399\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1pl326x_di\" bpmnElement=\"Flow_1pl326x\"><di:waypoint x=\"1840\" y=\"635\" /><di:waypoint x=\"1840\" y=\"682\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1849\" y=\"654\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_05smycz_di\" bpmnElement=\"Flow_05smycz\"><di:waypoint x=\"1240\" y=\"490\" /><di:waypoint x=\"1325\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1prq20y_di\" bpmnElement=\"Flow_1prq20y\"><di:waypoint x=\"1350\" y=\"515\" /><di:waypoint x=\"1350\" y=\"592\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1359\" y=\"551\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0owykly_di\" bpmnElement=\"Association_0owykly\"><di:waypoint x=\"1190\" y=\"450\" /><di:waypoint x=\"1190\" y=\"405\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Gateway_0pk9f8p_di\" bpmnElement=\"Gateway_0pk9f8p\" isMarkerVisible=\"true\"><dc:Bounds x=\"355\" y=\"465\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"353\" y=\"435\" width=\"57\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_093k26y_di\" bpmnElement=\"Event_093k26y\"><dc:Bounds x=\"362\" y=\"627\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"340\" y=\"670\" width=\"81\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0g7ncnu_di\" bpmnElement=\"Event_0g7ncnu\"><dc:Bounds x=\"2182\" y=\"472\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0zk6rfm_di\" bpmnElement=\"Activity_0zk6rfm\"><dc:Bounds x=\"490\" y=\"450\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1jq92cn_di\" bpmnElement=\"Activity_1jq92cn\"><dc:Bounds x=\"675\" y=\"475\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_130kuj9_di\" bpmnElement=\"Activity_130kuj9\"><dc:Bounds x=\"765\" y=\"475\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0p4ify2_di\" bpmnElement=\"Activity_0p4ify2\"><dc:Bounds x=\"865\" y=\"475\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0yjvuug_di\" bpmnElement=\"TextAnnotation_0yjvuug\"><dc:Bounds x=\"2135\" y=\"330\" width=\"130\" height=\"70\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1r0f1up_di\" bpmnElement=\"TextAnnotation_1r0f1up\"><dc:Bounds x=\"720\" y=\"330\" width=\"120\" height=\"69\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_1it4riu_di\" bpmnElement=\"Group_1it4riu\"><dc:Bounds x=\"150\" y=\"160\" width=\"470\" height=\"670\" /><bpmndi:BPMNLabel><dc:Bounds x=\"347\" y=\"167\" width=\"77\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0etgl2a_di\" bpmnElement=\"Group_0etgl2a\"><dc:Bounds x=\"640\" y=\"160\" width=\"1470\" height=\"670\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1351\" y=\"167\" width=\"49\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0b11tbh_di\" bpmnElement=\"TextAnnotation_0b11tbh\"><dc:Bounds x=\"490\" y=\"337\" width=\"100\" height=\"53\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"DataInputAssociation_1a0sm1p_di\" bpmnElement=\"DataInputAssociation_1a0sm1p\"><di:waypoint x=\"230\" y=\"360\" /><di:waypoint x=\"230\" y=\"450\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataOutputAssociation_1gu5h9f_di\" bpmnElement=\"DataOutputAssociation_1gu5h9f\"><di:waypoint x=\"1650\" y=\"388\" /><di:waypoint x=\"1650\" y=\"465\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataOutputAssociation_1on34o7_di\" bpmnElement=\"DataOutputAssociation_1on34o7\"><di:waypoint x=\"1650\" y=\"570\" /><di:waypoint x=\"1650\" y=\"515\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1dqo21i_di\" bpmnElement=\"Flow_1dqo21i\"><di:waypoint x=\"98\" y=\"490\" /><di:waypoint x=\"180\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_16vta08_di\" bpmnElement=\"Flow_16vta08\"><di:waypoint x=\"280\" y=\"490\" /><di:waypoint x=\"355\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_18b1kej_di\" bpmnElement=\"Flow_18b1kej\"><di:waypoint x=\"895\" y=\"490\" /><di:waypoint x=\"990\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1wc3wx9_di\" bpmnElement=\"Flow_1wc3wx9\"><di:waypoint x=\"2060\" y=\"490\" /><di:waypoint x=\"2182\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1iqxnug_di\" bpmnElement=\"Flow_1iqxnug\"><di:waypoint x=\"405\" y=\"490\" /><di:waypoint x=\"490\" y=\"490\" /><bpmndi:BPMNLabel><dc:Bounds x=\"425\" y=\"468\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_033d98f_di\" bpmnElement=\"Flow_033d98f\"><di:waypoint x=\"380\" y=\"515\" /><di:waypoint x=\"380\" y=\"627\" /><bpmndi:BPMNLabel><dc:Bounds x=\"389\" y=\"533\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0kpprax_di\" bpmnElement=\"Flow_0kpprax\"><di:waypoint x=\"590\" y=\"490\" /><di:waypoint x=\"675\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0cl68sb_di\" bpmnElement=\"Flow_0cl68sb\"><di:waypoint x=\"705\" y=\"490\" /><di:waypoint x=\"765\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1pphpvj_di\" bpmnElement=\"Flow_1pphpvj\"><di:waypoint x=\"795\" y=\"490\" /><di:waypoint x=\"865\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1y6dk0g_di\" bpmnElement=\"Association_1y6dk0g\"><di:waypoint x=\"2200\" y=\"472\" /><di:waypoint x=\"2200\" y=\"400\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1wky01v_di\" bpmnElement=\"Association_1wky01v\"><di:waypoint x=\"540\" y=\"450\" /><di:waypoint x=\"540\" y=\"390\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0dh5zn0_di\" bpmnElement=\"Association_0dh5zn0\"><di:waypoint x=\"697\" y=\"476\" /><di:waypoint x=\"735\" y=\"399\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_06mi7li_di\" bpmnElement=\"Association_06mi7li\"><di:waypoint x=\"780\" y=\"475\" /><di:waypoint x=\"780\" y=\"399\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1u0arqx_di\" bpmnElement=\"Association_1u0arqx\"><di:waypoint x=\"872\" y=\"476\" /><di:waypoint x=\"837\" y=\"399\" /></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_1xttsd6\",\"Type\":1,\"Parameters\":{\"input\":{\"Path\":{\"mode\":\"csharp\",\"value\":\"#var.InFilePath\"}},\"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 file from local fileshare\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_0t324yn\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"JSON file\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0uy4186\",\"Type\":10,\"Parameters\":{\"variable\":\"product\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Convert to JToken].Jtoken\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each product\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0pk9f8p\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"!String.IsNullOrWhiteSpace(#result[Read file from local fileshare].Content)\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Read file successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_093k26y\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Could not read file from path {{#var.InFilePath}}.\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0g7ncnu\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors == \\\"\\\" ? $\\\"{#var.inserted} products inserted and {#var.updated} updated.\\\" : $\\\"{#var.inserted} products inserted and {#var.updated} updated. Process completed with errors: {#var.errors}\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0zk6rfm\",\"Type\":1,\"Parameters\":{\"input\":{\"Json\":{\"mode\":\"csharp\",\"value\":\"#result[Read file from local fileshare].Content\"}}},\"SelectedTypeId\":\"/ProcessTask/fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6/v2\",\"PromoteResultAs\":null,\"Name\":\"Convert to JToken\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1jq92cn\",\"Type\":12,\"Parameters\":{\"variableName\":\"errors\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"\\\"\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign errors\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_130kuj9\",\"Type\":12,\"Parameters\":{\"variableName\":\"inserted\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign inserted\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0p4ify2\",\"Type\":12,\"Parameters\":{\"variableName\":\"updated\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign updated\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1iqxnug\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_033d98f\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0y89nbv\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0aoor6t\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.inserted += 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_15r9naq\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubSpotBaseUrl}}/objects/products\"},\"Message\":{\"mode\":\"text\",\"value\":\"{{#var.product}}\"},\"Headers\":[{\"Name\":{\"mode\":\"text\",\"value\":\"Content-Type\"},\"Value\":{\"mode\":\"text\",\"value\":\"application/json\"}}]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"OAuth\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"csharp\",\"value\":\"#var.HubSpotAccessToken\"},\"ClientCertificateSource\":{\"mode\":\"select\",\"value\":\"CertificateStore\"},\"ClientCertificateFilePath\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateInBase64\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateKeyPhrase\":{\"mode\":\"text\",\"value\":\"\"},\"CertificateThumbprint\":{\"mode\":\"text\",\"value\":\"\"},\"LoadEntireChainForCertificate\":{\"mode\":\"toggle\",\"value\":true},\"ConnectionTimeoutSeconds\":{\"mode\":\"integer\",\"value\":30},\"FollowRedirects\":{\"mode\":\"toggle\",\"value\":true},\"AllowInvalidCertificate\":{\"mode\":\"toggle\",\"value\":false},\"AllowInvalidResponseContentTypeCharSet\":{\"mode\":\"toggle\",\"value\":false},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Insert product into HubSpot\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_12a9t0o\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Check if product exists in HubSpot].Body.total > 0\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Product exists in HubSpot?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_17ysanq\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"PATCH\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubSpotBaseUrl}}/objects/products/{{#result[Check if product exists in HubSpot].Body.results[0].id}}\"},\"Message\":{\"mode\":\"text\",\"value\":\"{{#var.product}}\"},\"Headers\":[{\"Name\":{\"mode\":\"text\",\"value\":\"Content-Type\"},\"Value\":{\"mode\":\"text\",\"value\":\"application/json\"}}]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"OAuth\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"csharp\",\"value\":\"#var.HubSpotAccessToken\"},\"ClientCertificateSource\":{\"mode\":\"select\",\"value\":\"CertificateStore\"},\"ClientCertificateFilePath\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateInBase64\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateKeyPhrase\":{\"mode\":\"text\",\"value\":\"\"},\"CertificateThumbprint\":{\"mode\":\"text\",\"value\":\"\"},\"LoadEntireChainForCertificate\":{\"mode\":\"toggle\",\"value\":true},\"ConnectionTimeoutSeconds\":{\"mode\":\"integer\",\"value\":30},\"FollowRedirects\":{\"mode\":\"toggle\",\"value\":true},\"AllowInvalidCertificate\":{\"mode\":\"toggle\",\"value\":false},\"AllowInvalidResponseContentTypeCharSet\":{\"mode\":\"toggle\",\"value\":false},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Update product in HubSpot\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_140j469\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.updated += 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1e2y6rp\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Insert product into HubSpot].StatusCode == 201\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Insert successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0g5tcyv\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while inserting product {#var.product.hs_sku}: {#result[Insert product into HubSpot].Body.message}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0vg69db\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Update product in HubSpot].StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Update successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0hv2hf2\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while updating product {#var.product.hs_sku}: {#result[Update product in HubSpot].Body.message}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1ucbuqm\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubSpotBaseUrl}}/objects/products/search\"},\"Message\":{\"mode\":\"text\",\"value\":\"{\\r\\n  \\\"filterGroups\\\": [\\r\\n    {\\r\\n      \\\"filters\\\": [\\r\\n        {\\r\\n         \\\"propertyName\\\": \\\"hs_sku\\\",\\r\\n         \\\"operator\\\": \\\"EQ\\\",\\r\\n         \\\"value\\\": \\\"{{#var.product.properties.hs_sku}}\\\"\\r\\n        }\\r\\n      ]\\r\\n    }\\r\\n  ]\\r\\n}\"},\"Headers\":[{\"Name\":{\"mode\":\"text\",\"value\":\"Content-Type\"},\"Value\":{\"mode\":\"text\",\"value\":\"application/json\"}}]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"OAuth\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"csharp\",\"value\":\"#var.HubSpotAccessToken\"},\"ClientCertificateSource\":{\"mode\":\"select\",\"value\":\"CertificateStore\"},\"ClientCertificateFilePath\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateInBase64\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateKeyPhrase\":{\"mode\":\"text\",\"value\":\"\"},\"CertificateThumbprint\":{\"mode\":\"text\",\"value\":\"\"},\"LoadEntireChainForCertificate\":{\"mode\":\"toggle\",\"value\":true},\"ConnectionTimeoutSeconds\":{\"mode\":\"integer\",\"value\":30},\"FollowRedirects\":{\"mode\":\"toggle\",\"value\":true},\"AllowInvalidCertificate\":{\"mode\":\"toggle\",\"value\":false},\"AllowInvalidResponseContentTypeCharSet\":{\"mode\":\"toggle\",\"value\":false},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Check if product exists in HubSpot\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0hfumon\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Check if product exists in HubSpot].StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Check if product exists successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0o5sixs\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.errors += $\\\"\\\\nError while searching for a matching product with SKU {#var.product.hs_sku}: {#result[Check if product exists in HubSpot].Body.message}\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_1y19xbe\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"HubSpot\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_008wpfe\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1ht67w9\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0fex8iw\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_03nd5fi\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0738b95\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1dnabiz\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1pl326x\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1prq20y\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"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/D2F2020E-4CE6-4E5F-879F-EF34E57C9FCA/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.3.1743",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 0,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"1c578787-7601-45f9-acea-f4672dcf3b20": [
						{
							"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": "d2f2020e-4ce6-4e5f-879f-ef34e57c9fca",
							"PackageId": "Frends.HTTP.Request",
							"PackageVersion": "1.1.2",
							"Name": "Frends.HTTP.Request.HTTP.Request(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}