{
	"ProcessTemplates": [
		{
			"Name": "Shopify to HubSpot - Orders",
			"Modified": "2024-07-19T18:31:58.5133053",
			"Modifier": "sampo.sarlin@frends.com",
			"Tags": [
				"Shopify",
				"HubSpot"
			],
			"TemplateProcessTags": [],
			"Description": "This template will get sales order data from Shopify, map it to the HubSpot format and transfer the mapped sales order data to HubSpot as a deal.",
			"Version": 1,
			"UniqueIdentifier": "faac6be4-b23a-44d4-809b-b399c7f7e6da",
			"ProcessVariablesJson": "{\"ShopifyBaseUrl\":{\"Value\":\"\\\"https://example.myshopify.com/\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base url for Shopify.\"},\"ShopifyAdminToken\":{\"Value\":\"\\\"\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The admin token for Shopify.\"},\"HubspotBaseUrl\":{\"Value\":\"\\\"https://api.hubapi.com/crm/v3/objects\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base url for HubSpot API requests.\"},\"HubspotAccessToken\":{\"Value\":\"\\\"\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The access token for HubSpot.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "Shopify to HubSpot - Orders",
					"Modified": "2024-07-19T18:31:58.5133053",
					"Modifier": "sampo.sarlin@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This template will get sales order data from Shopify, map it to the HubSpot format and transfer the mapped sales order data to HubSpot as a deal.",
					"Version": 1,
					"UniqueIdentifier": "8105a7f3-d3b6-4eff-b086-a65ed7900c1c",
					"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_0ab3vw8</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_1xwqzlx\" name=\"Get sales orders from Shopify\"><bpmn2:incoming>Flow_0ab3vw8</bpmn2:incoming><bpmn2:outgoing>Flow_1po8ort</bpmn2:outgoing><bpmn2:property id=\"Property_1d1qvol\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_05b6bri\"><bpmn2:sourceRef>DataStoreReference_136nzpy</bpmn2:sourceRef><bpmn2:targetRef>Property_1d1qvol</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0ab3vw8\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1xwqzlx\" /><bpmn2:dataStoreReference id=\"DataStoreReference_136nzpy\" name=\"Shopify\" /><bpmn2:exclusiveGateway id=\"Gateway_1hns2ue\" name=\"Orders retrieved?\" default=\"Flow_093m292\"><bpmn2:incoming>Flow_1po8ort</bpmn2:incoming><bpmn2:outgoing>Flow_040zsry</bpmn2:outgoing><bpmn2:outgoing>Flow_093m292</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1po8ort\" sourceRef=\"Activity_1xwqzlx\" targetRef=\"Gateway_1hns2ue\" /><bpmn2:scriptTask id=\"Activity_057byme\" name=\"Initialize exceptions\"><bpmn2:incoming>Flow_040zsry</bpmn2:incoming><bpmn2:outgoing>Flow_09l0tsa</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_040zsry\" name=\"yes\" sourceRef=\"Gateway_1hns2ue\" targetRef=\"Activity_057byme\" /><bpmn2:intermediateThrowEvent id=\"Event_146n3jm\" name=\"Throw an error if sales orders were not retrieved\"><bpmn2:incoming>Flow_093m292</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_093m292\" name=\"no\" sourceRef=\"Gateway_1hns2ue\" targetRef=\"Event_146n3jm\" /><bpmn2:subProcess id=\"Activity_0fpfq8a\" name=\"For each order\"><bpmn2:incoming>Flow_09l0tsa</bpmn2:incoming><bpmn2:outgoing>Flow_1ebna4g</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_0artrm7\"><bpmn2:outgoing>Flow_1wrnpoi</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_0r1dwxq\" name=\"Search HubSpot deals for deal name\"><bpmn2:incoming>Flow_1wrnpoi</bpmn2:incoming><bpmn2:outgoing>Flow_0qt25n3</bpmn2:outgoing><bpmn2:standardLoopCharacteristics /></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_1wrnpoi\" sourceRef=\"Event_0artrm7\" targetRef=\"Activity_0r1dwxq\" /><bpmn2:exclusiveGateway id=\"Gateway_12kk04x\" name=\"HubSpot deal search successful?\" default=\"Flow_0f6byq8\"><bpmn2:incoming>Flow_0qt25n3</bpmn2:incoming><bpmn2:outgoing>Flow_12lyopg</bpmn2:outgoing><bpmn2:outgoing>Flow_0f6byq8</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0qt25n3\" sourceRef=\"Activity_0r1dwxq\" targetRef=\"Gateway_12kk04x\" /><bpmn2:exclusiveGateway id=\"Gateway_0gflf69\" name=\"Is the order in HubSpot as a deal?\" default=\"Flow_145iwv4\"><bpmn2:incoming>Flow_12lyopg</bpmn2:incoming><bpmn2:outgoing>Flow_0r1rh0h</bpmn2:outgoing><bpmn2:outgoing>Flow_145iwv4</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_12lyopg\" name=\"yes\" sourceRef=\"Gateway_12kk04x\" targetRef=\"Gateway_0gflf69\" /><bpmn2:endEvent id=\"Event_147ubed\" name=\"Add a message to the exceptions variable, take the next order\"><bpmn2:incoming>Flow_0r1rh0h</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0r1rh0h\" name=\"yes\" sourceRef=\"Gateway_0gflf69\" targetRef=\"Event_147ubed\" /><bpmn2:endEvent id=\"Event_027oqjj\" name=\"Add a message to the exceptions variable, take the next order\"><bpmn2:incoming>Flow_0f6byq8</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0f6byq8\" name=\"no\" sourceRef=\"Gateway_12kk04x\" targetRef=\"Event_027oqjj\" /><bpmn2:task id=\"Activity_0j2laek\" name=\"Insert sales order to HubSpot as a deal\"><bpmn2:incoming>Flow_0lzjm2l</bpmn2:incoming><bpmn2:outgoing>Flow_0906dcg</bpmn2:outgoing></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_0anscie\" name=\"Order insertion successful?\" default=\"Flow_0b1qp35\"><bpmn2:incoming>Flow_0906dcg</bpmn2:incoming><bpmn2:outgoing>Flow_0b1qp35</bpmn2:outgoing><bpmn2:outgoing>Flow_14v2iij</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_0nuqcjf\" name=\"Add a message to the exceptions variable, take the next order\"><bpmn2:incoming>Flow_0b1qp35</bpmn2:incoming></bpmn2:endEvent><bpmn2:endEvent id=\"Event_1cw2vua\" name=\"Success, take the next order\"><bpmn2:incoming>Flow_0rxbyj5</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0906dcg\" sourceRef=\"Activity_0j2laek\" targetRef=\"Gateway_0anscie\" /><bpmn2:sequenceFlow id=\"Flow_0b1qp35\" name=\"no\" sourceRef=\"Gateway_0anscie\" targetRef=\"Event_0nuqcjf\" /><bpmn2:sequenceFlow id=\"Flow_145iwv4\" name=\"no\" sourceRef=\"Gateway_0gflf69\" targetRef=\"Activity_1e64ly1\" /><bpmn2:sequenceFlow id=\"Flow_14v2iij\" name=\"yes\" sourceRef=\"Gateway_0anscie\" targetRef=\"Activity_0e8kssb\" /><bpmn2:task id=\"Activity_1e64ly1\" name=\"Search HubSpot contacts for contact id\"><bpmn2:incoming>Flow_145iwv4</bpmn2:incoming><bpmn2:outgoing>Flow_0sy8opf</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0sy8opf\" sourceRef=\"Activity_1e64ly1\" targetRef=\"Gateway_14alkgr\" /><bpmn2:exclusiveGateway id=\"Gateway_14alkgr\" name=\"Search successful and the contact is in HubSpot?\" default=\"Flow_1o518qr\"><bpmn2:incoming>Flow_0sy8opf</bpmn2:incoming><bpmn2:outgoing>Flow_0lzjm2l</bpmn2:outgoing><bpmn2:outgoing>Flow_1o518qr</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0lzjm2l\" name=\"yes\" sourceRef=\"Gateway_14alkgr\" targetRef=\"Activity_0j2laek\" /><bpmn2:endEvent id=\"Event_1tmnooy\" name=\"Add a message to the exceptions variable, take the next order\"><bpmn2:incoming>Flow_1o518qr</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1o518qr\" name=\"no\" sourceRef=\"Gateway_14alkgr\" targetRef=\"Event_1tmnooy\" /><bpmn2:subProcess id=\"Activity_1x5ytcx\" name=\"Process line items\"><bpmn2:incoming>Flow_09cdd5n</bpmn2:incoming><bpmn2:outgoing>Flow_0rxbyj5</bpmn2:outgoing><bpmn2:standardLoopCharacteristics /><bpmn2:startEvent id=\"Event_0nxyopx\"><bpmn2:outgoing>Flow_0vqjly6</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_16wl5a5\" name=\"Insert line item to HubSpot deal\"><bpmn2:incoming>Flow_0vqjly6</bpmn2:incoming><bpmn2:outgoing>Flow_0l0i9x7</bpmn2:outgoing></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_02qt85s\" name=\"Line item insertion successful?\" default=\"Flow_00dk3p7\"><bpmn2:incoming>Flow_0l0i9x7</bpmn2:incoming><bpmn2:outgoing>Flow_0kiy8vt</bpmn2:outgoing><bpmn2:outgoing>Flow_00dk3p7</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_0j430pn\" name=\"Finish processing line items\"><bpmn2:incoming>Flow_1e8uuma</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0l0i9x7\" sourceRef=\"Activity_16wl5a5\" targetRef=\"Gateway_02qt85s\" /><bpmn2:sequenceFlow id=\"Flow_0kiy8vt\" name=\"yes\" sourceRef=\"Gateway_02qt85s\" targetRef=\"Gateway_16x95qm\" /><bpmn2:sequenceFlow id=\"Flow_00dk3p7\" name=\"no\" sourceRef=\"Gateway_02qt85s\" targetRef=\"Activity_0bp69kx\" /><bpmn2:sequenceFlow id=\"Flow_0vqjly6\" sourceRef=\"Event_0nxyopx\" targetRef=\"Activity_16wl5a5\" /><bpmn2:scriptTask id=\"Activity_0bp69kx\" name=\"Add a message to the exceptions variable\"><bpmn2:incoming>Flow_00dk3p7</bpmn2:incoming><bpmn2:outgoing>Flow_0np03xd</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:task id=\"Activity_1a97yfl\" name=\"Delete the created order\"><bpmn2:incoming>Flow_0np03xd</bpmn2:incoming><bpmn2:outgoing>Flow_1lbevx1</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0np03xd\" sourceRef=\"Activity_0bp69kx\" targetRef=\"Activity_1a97yfl\" /><bpmn2:exclusiveGateway id=\"Gateway_16x95qm\" name=\"All lines processed?\" default=\"Flow_1cv1zfm\"><bpmn2:incoming>Flow_0kiy8vt</bpmn2:incoming><bpmn2:outgoing>Flow_1e8uuma</bpmn2:outgoing><bpmn2:outgoing>Flow_1cv1zfm</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1e8uuma\" name=\"yes\" sourceRef=\"Gateway_16x95qm\" targetRef=\"Event_0j430pn\" /><bpmn2:endEvent id=\"Event_0e7t39i\" name=\"Move to next line item\"><bpmn2:incoming>Flow_1cv1zfm</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1cv1zfm\" name=\"no\" sourceRef=\"Gateway_16x95qm\" targetRef=\"Event_0e7t39i\" /><bpmn2:endEvent id=\"Event_0b4dnpt\" name=\"Stop processing current order\"><bpmn2:incoming>Flow_1lbevx1</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1lbevx1\" sourceRef=\"Activity_1a97yfl\" targetRef=\"Event_0b4dnpt\" /><bpmn2:textAnnotation id=\"TextAnnotation_1q8tnt8\"><bpmn2:text>Order is deleted to prevent the insertion of only partially successful orders.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_017fp5t\" sourceRef=\"Activity_1a97yfl\" targetRef=\"TextAnnotation_1q8tnt8\" /></bpmn2:subProcess><bpmn2:sequenceFlow id=\"Flow_0rxbyj5\" sourceRef=\"Activity_1x5ytcx\" targetRef=\"Event_1cw2vua\" /><bpmn2:scriptTask id=\"Activity_0e8kssb\" name=\"Initialize loop variable\"><bpmn2:incoming>Flow_14v2iij</bpmn2:incoming><bpmn2:outgoing>Flow_0s51uyu</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_0s51uyu\" sourceRef=\"Activity_0e8kssb\" targetRef=\"Activity_042w3ko\" /><bpmn2:scriptTask id=\"Activity_042w3ko\" name=\"Initialize loop index\"><bpmn2:incoming>Flow_0s51uyu</bpmn2:incoming><bpmn2:outgoing>Flow_09cdd5n</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_09cdd5n\" sourceRef=\"Activity_042w3ko\" targetRef=\"Activity_1x5ytcx\" /><bpmn2:textAnnotation id=\"TextAnnotation_0hn91r0\"><bpmn2:text>Contact id is required to associate the deal to the contact.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1p9jpod\" sourceRef=\"Activity_1e64ly1\" targetRef=\"TextAnnotation_0hn91r0\" /><bpmn2:textAnnotation id=\"TextAnnotation_0d8nndl\"><bpmn2:text>Variables are assigned for going through the line items.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_0daib3f\" sourceRef=\"Activity_0e8kssb\" targetRef=\"TextAnnotation_0d8nndl\" /><bpmn2:association id=\"Association_0swifnn\" sourceRef=\"Activity_042w3ko\" targetRef=\"TextAnnotation_0d8nndl\" /></bpmn2:subProcess><bpmn2:sequenceFlow id=\"Flow_09l0tsa\" sourceRef=\"Activity_057byme\" targetRef=\"Activity_0fpfq8a\" /><bpmn2:endEvent id=\"Event_1mleynx\" name=\"Return a message with potential exceptions\"><bpmn2:incoming>Flow_1ebna4g</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1ebna4g\" sourceRef=\"Activity_0fpfq8a\" targetRef=\"Event_1mleynx\" /><bpmn2:textAnnotation id=\"TextAnnotation_066guek\"><bpmn2:text>An exception variable is assigned to help pinpoint errors in the process.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1n1o6y2\" sourceRef=\"Activity_057byme\" targetRef=\"TextAnnotation_066guek\" /><bpmn2:group id=\"Group_0pp09aw\" categoryValueRef=\"CategoryValue_03v1hed\" /><bpmn2:group id=\"Group_16huypl\" categoryValueRef=\"CategoryValue_1nxz468\" /><bpmn2:group id=\"Group_1s2jeus\" categoryValueRef=\"CategoryValue_07h1ttk\" /></bpmn2:process><bpmn2:category id=\"Category_125m6b7\"><bpmn2:categoryValue id=\"CategoryValue_03v1hed\" value=\"Retrieving sales orders from Shopify\" /></bpmn2:category><bpmn2:category id=\"Category_07cbqx7\"><bpmn2:categoryValue id=\"CategoryValue_1nxz468\" value=\"Checking if the order already exists in HubSpot as a deal\" /></bpmn2:category><bpmn2:category id=\"Category_1qtkgkz\"><bpmn2:categoryValue id=\"CategoryValue_07h1ttk\" value=\"Order and line item insertion to HubSpot\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"342\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"342\" y=\"276\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1xwqzlx_di\" bpmnElement=\"Activity_1xwqzlx\"><dc:Bounds x=\"500\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_136nzpy_di\" bpmnElement=\"DataStoreReference_136nzpy\"><dc:Bounds x=\"525\" y=\"115\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"531\" y=\"85\" width=\"38\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1hns2ue_di\" bpmnElement=\"Gateway_1hns2ue\" isMarkerVisible=\"true\"><dc:Bounds x=\"655\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"637\" y=\"209\" width=\"86\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_057byme_di\" bpmnElement=\"Activity_057byme\"><dc:Bounds x=\"765\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_146n3jm_di\" bpmnElement=\"Event_146n3jm\"><dc:Bounds x=\"662\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"637\" y=\"395\" width=\"87\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1mleynx_di\" bpmnElement=\"Event_1mleynx\"><dc:Bounds x=\"3192\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"3176\" y=\"283\" width=\"68\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0fpfq8a_di\" bpmnElement=\"Activity_0fpfq8a\" isExpanded=\"true\"><dc:Bounds x=\"930\" y=\"80\" width=\"2160\" height=\"590\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0d8nndl_di\" bpmnElement=\"TextAnnotation_0d8nndl\"><dc:Bounds x=\"2060\" y=\"111\" width=\"130\" height=\"58\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0artrm7_di\" bpmnElement=\"Event_0artrm7\"><dc:Bounds x=\"970\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0r1dwxq_di\" bpmnElement=\"Activity_0r1dwxq\"><dc:Bounds x=\"1060\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_12kk04x_di\" bpmnElement=\"Gateway_12kk04x\" isMarkerVisible=\"true\"><dc:Bounds x=\"1215\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1206\" y=\"183\" width=\"68\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0gflf69_di\" bpmnElement=\"Gateway_0gflf69\" isMarkerVisible=\"true\"><dc:Bounds x=\"1325\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1316\" y=\"183\" width=\"68\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_147ubed_di\" bpmnElement=\"Event_147ubed\"><dc:Bounds x=\"1332\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1306\" y=\"395\" width=\"88\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_027oqjj_di\" bpmnElement=\"Event_027oqjj\"><dc:Bounds x=\"1222\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1196\" y=\"395\" width=\"88\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0j2laek_di\" bpmnElement=\"Activity_0j2laek\"><dc:Bounds x=\"1770\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0anscie_di\" bpmnElement=\"Gateway_0anscie\" isMarkerVisible=\"true\"><dc:Bounds x=\"1935\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1924\" y=\"196\" width=\"73\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0nuqcjf_di\" bpmnElement=\"Event_0nuqcjf\"><dc:Bounds x=\"1942\" y=\"342\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1916\" y=\"385\" width=\"88\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1e64ly1_di\" bpmnElement=\"Activity_1e64ly1\"><dc:Bounds x=\"1500\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_14alkgr_di\" bpmnElement=\"Gateway_14alkgr\" isMarkerVisible=\"true\"><dc:Bounds x=\"1665\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1645\" y=\"183\" width=\"90\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1tmnooy_di\" bpmnElement=\"Event_1tmnooy\"><dc:Bounds x=\"1672\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1646\" y=\"395\" width=\"88\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1cw2vua_di\" bpmnElement=\"Event_1cw2vua\"><dc:Bounds x=\"2982\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2957\" y=\"283\" width=\"88\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0hn91r0_di\" bpmnElement=\"TextAnnotation_0hn91r0\"><dc:Bounds x=\"1500\" y=\"110\" width=\"140\" height=\"60\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0e8kssb_di\" bpmnElement=\"Activity_0e8kssb\"><dc:Bounds x=\"2045\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_042w3ko_di\" bpmnElement=\"Activity_042w3ko\"><dc:Bounds x=\"2145\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1x5ytcx_di\" bpmnElement=\"Activity_1x5ytcx\" isExpanded=\"true\"><dc:Bounds x=\"2260\" y=\"120\" width=\"630\" height=\"510\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1q8tnt8_di\" bpmnElement=\"TextAnnotation_1q8tnt8\"><dc:Bounds x=\"2360\" y=\"390\" width=\"150\" height=\"70\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0nxyopx_di\" bpmnElement=\"Event_0nxyopx\"><dc:Bounds x=\"2300\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_16wl5a5_di\" bpmnElement=\"Activity_16wl5a5\"><dc:Bounds x=\"2390\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_02qt85s_di\" bpmnElement=\"Gateway_02qt85s\" isMarkerVisible=\"true\"><dc:Bounds x=\"2545\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2541\" y=\"183\" width=\"58\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0j430pn_di\" bpmnElement=\"Event_0j430pn\"><dc:Bounds x=\"2822\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2798\" y=\"283\" width=\"86\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0bp69kx_di\" bpmnElement=\"Activity_0bp69kx\"><dc:Bounds x=\"2555\" y=\"335\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1a97yfl_di\" bpmnElement=\"Activity_1a97yfl\"><dc:Bounds x=\"2520\" y=\"450\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_16x95qm_di\" bpmnElement=\"Gateway_16x95qm\" isMarkerVisible=\"true\"><dc:Bounds x=\"2685\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2681\" y=\"196\" width=\"58\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0e7t39i_di\" bpmnElement=\"Event_0e7t39i\"><dc:Bounds x=\"2822\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2798\" y=\"395\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0b4dnpt_di\" bpmnElement=\"Event_0b4dnpt\"><dc:Bounds x=\"2822\" y=\"472\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2800\" y=\"515\" width=\"80\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Association_017fp5t_di\" bpmnElement=\"Association_017fp5t\"><di:waypoint x=\"2520\" y=\"463\" /><di:waypoint x=\"2510\" y=\"458\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0l0i9x7_di\" bpmnElement=\"Flow_0l0i9x7\"><di:waypoint x=\"2490\" y=\"258\" /><di:waypoint x=\"2545\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0kiy8vt_di\" bpmnElement=\"Flow_0kiy8vt\"><di:waypoint x=\"2595\" y=\"258\" /><di:waypoint x=\"2685\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2611\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_00dk3p7_di\" bpmnElement=\"Flow_00dk3p7\"><di:waypoint x=\"2570\" y=\"283\" /><di:waypoint x=\"2570\" y=\"335\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2579\" y=\"354\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0vqjly6_di\" bpmnElement=\"Flow_0vqjly6\"><di:waypoint x=\"2336\" y=\"258\" /><di:waypoint x=\"2390\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0np03xd_di\" bpmnElement=\"Flow_0np03xd\"><di:waypoint x=\"2570\" y=\"365\" /><di:waypoint x=\"2570\" y=\"450\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1e8uuma_di\" bpmnElement=\"Flow_1e8uuma\"><di:waypoint x=\"2735\" y=\"258\" /><di:waypoint x=\"2822\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2749\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1cv1zfm_di\" bpmnElement=\"Flow_1cv1zfm\"><di:waypoint x=\"2710\" y=\"283\" /><di:waypoint x=\"2710\" y=\"370\" /><di:waypoint x=\"2822\" y=\"370\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2719\" y=\"324\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1lbevx1_di\" bpmnElement=\"Flow_1lbevx1\"><di:waypoint x=\"2620\" y=\"490\" /><di:waypoint x=\"2822\" y=\"490\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0daib3f_di\" bpmnElement=\"Association_0daib3f\"><di:waypoint x=\"2066\" y=\"243\" /><di:waypoint x=\"2094\" y=\"169\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0swifnn_di\" bpmnElement=\"Association_0swifnn\"><di:waypoint x=\"2156\" y=\"243\" /><di:waypoint x=\"2136\" y=\"169\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1wrnpoi_di\" bpmnElement=\"Flow_1wrnpoi\"><di:waypoint x=\"1006\" y=\"258\" /><di:waypoint x=\"1060\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0qt25n3_di\" bpmnElement=\"Flow_0qt25n3\"><di:waypoint x=\"1160\" y=\"258\" /><di:waypoint x=\"1215\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_12lyopg_di\" bpmnElement=\"Flow_12lyopg\"><di:waypoint x=\"1265\" y=\"258\" /><di:waypoint x=\"1325\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1287\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0r1rh0h_di\" bpmnElement=\"Flow_0r1rh0h\"><di:waypoint x=\"1350\" y=\"283\" /><di:waypoint x=\"1350\" y=\"352\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1357\" y=\"314\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0f6byq8_di\" bpmnElement=\"Flow_0f6byq8\"><di:waypoint x=\"1240\" y=\"283\" /><di:waypoint x=\"1240\" y=\"352\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1249\" y=\"314\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0906dcg_di\" bpmnElement=\"Flow_0906dcg\"><di:waypoint x=\"1870\" y=\"258\" /><di:waypoint x=\"1935\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0b1qp35_di\" bpmnElement=\"Flow_0b1qp35\"><di:waypoint x=\"1960\" y=\"283\" /><di:waypoint x=\"1960\" y=\"342\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1969\" y=\"310\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_145iwv4_di\" bpmnElement=\"Flow_145iwv4\"><di:waypoint x=\"1375\" y=\"258\" /><di:waypoint x=\"1500\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1393\" y=\"240\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_14v2iij_di\" bpmnElement=\"Flow_14v2iij\"><di:waypoint x=\"1985\" y=\"258\" /><di:waypoint x=\"2045\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1991\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0sy8opf_di\" bpmnElement=\"Flow_0sy8opf\"><di:waypoint x=\"1600\" y=\"258\" /><di:waypoint x=\"1665\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0lzjm2l_di\" bpmnElement=\"Flow_0lzjm2l\"><di:waypoint x=\"1715\" y=\"258\" /><di:waypoint x=\"1770\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1734\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1o518qr_di\" bpmnElement=\"Flow_1o518qr\"><di:waypoint x=\"1690\" y=\"283\" /><di:waypoint x=\"1690\" y=\"352\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1699\" y=\"314\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0rxbyj5_di\" bpmnElement=\"Flow_0rxbyj5\"><di:waypoint x=\"2890\" y=\"258\" /><di:waypoint x=\"2982\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0s51uyu_di\" bpmnElement=\"Flow_0s51uyu\"><di:waypoint x=\"2075\" y=\"258\" /><di:waypoint x=\"2145\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_09cdd5n_di\" bpmnElement=\"Flow_09cdd5n\"><di:waypoint x=\"2175\" y=\"258\" /><di:waypoint x=\"2260\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1p9jpod_di\" bpmnElement=\"Association_1p9jpod\"><di:waypoint x=\"1550\" y=\"218\" /><di:waypoint x=\"1550\" y=\"170\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"TextAnnotation_066guek_di\" bpmnElement=\"TextAnnotation_066guek\"><dc:Bounds x=\"730\" y=\"105\" width=\"140\" height=\"70\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0pp09aw_di\" bpmnElement=\"Group_0pp09aw\"><dc:Bounds x=\"430\" y=\"10\" width=\"450\" height=\"690\" /><bpmndi:BPMNLabel><dc:Bounds x=\"616\" y=\"17\" width=\"79\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_16huypl_di\" bpmnElement=\"Group_16huypl\"><dc:Bounds x=\"900\" y=\"10\" width=\"530\" height=\"690\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1122\" y=\"17\" width=\"87\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_1s2jeus_di\" bpmnElement=\"Group_1s2jeus\"><dc:Bounds x=\"1450\" y=\"10\" width=\"1690\" height=\"690\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2256\" y=\"17\" width=\"78\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"DataInputAssociation_05b6bri_di\" bpmnElement=\"DataInputAssociation_05b6bri\"><di:waypoint x=\"550\" y=\"165\" /><di:waypoint x=\"550\" y=\"218\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ab3vw8_di\" bpmnElement=\"Flow_0ab3vw8\"><di:waypoint x=\"378\" y=\"258\" /><di:waypoint x=\"500\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1po8ort_di\" bpmnElement=\"Flow_1po8ort\"><di:waypoint x=\"600\" y=\"258\" /><di:waypoint x=\"655\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_040zsry_di\" bpmnElement=\"Flow_040zsry\"><di:waypoint x=\"705\" y=\"258\" /><di:waypoint x=\"765\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"727\" y=\"240\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_093m292_di\" bpmnElement=\"Flow_093m292\"><di:waypoint x=\"680\" y=\"283\" /><di:waypoint x=\"680\" y=\"352\" /><bpmndi:BPMNLabel><dc:Bounds x=\"689\" y=\"315\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_09l0tsa_di\" bpmnElement=\"Flow_09l0tsa\"><di:waypoint x=\"795\" y=\"258\" /><di:waypoint x=\"930\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1ebna4g_di\" bpmnElement=\"Flow_1ebna4g\"><di:waypoint x=\"3090\" y=\"258\" /><di:waypoint x=\"3192\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1n1o6y2_di\" bpmnElement=\"Association_1n1o6y2\"><di:waypoint x=\"780\" y=\"243\" /><di:waypoint x=\"780\" y=\"175\" /></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_1xwqzlx\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.ShopifyBaseUrl}}/admin/api/2024-04/orders.json\"},\"Message\":{\"mode\":\"text\",\"value\":\"\"},\"Headers\":[{\"Name\":{\"mode\":\"text\",\"value\":\"Content-Type\"},\"Value\":{\"mode\":\"text\",\"value\":\"application/json\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"X-Shopify-Access-Token\"},\"Value\":{\"mode\":\"csharp\",\"value\":\"#var.ShopifyAdminToken\"}}]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"None\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"text\",\"value\":\"\"},\"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\":\"Get sales orders from Shopify\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":true,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_136nzpy\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Shopify\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1hns2ue\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Orders retrieved?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_040zsry\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_057byme\",\"Type\":12,\"Parameters\":{\"variableName\":\"exceptions\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"\\\"\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize exceptions\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_146n3jm\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occurred retrieving the sales order data from Shopify.\\r\\n\\r\\nHTTP status code: {{#result[Get sales orders from Shopify].StatusCode}}\\r\\nHTTP message:\\r\\n\\r\\n{{#result[Get sales orders from Shopify].Body.message}}\"},\"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_093m292\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0artrm7\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0fpfq8a\",\"Type\":10,\"Parameters\":{\"variable\":\"order\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get sales orders from Shopify].Body.orders\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each order\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0r1dwxq\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubspotBaseUrl}}/deals/search\"},\"Message\":{\"mode\":\"text\",\"value\":\"{\\r\\n  \\\"filterGroups\\\":[\\r\\n    {\\r\\n      \\\"filters\\\":[\\r\\n        {\\r\\n         \\\"propertyName\\\":\\\"dealname\\\",\\r\\n         \\\"operator\\\":\\\"EQ\\\",\\r\\n         \\\"value\\\": \\\"Shopify_{{#var.order.order_number}}\\\"\\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\":true},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Search HubSpot deals for deal name\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":true,\"MaxRetryCount\":3,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_12kk04x\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"HubSpot deal search successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_12lyopg\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0gflf69\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Search HubSpot deals for deal name].Body.total != 0\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Is the order in HubSpot as a deal?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0j2laek\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubspotBaseUrl}}/deals\"},\"Message\":{\"mode\":\"csharp\",\"value\":\"JObject.FromObject(new {\\r\\n  properties = new \\r\\n    {\\r\\n      amount = #var.order.total_price,\\r\\n      dealname = \\\"Shopify_\\\" + #var.order.order_number,\\r\\n      dealtype = \\\"newbusiness\\\",\\r\\n      description = #var.order.note != null ? #var.order.note : \\\"\\\"\\r\\n    },\\r\\n  associations = new[]\\r\\n    {\\r\\n      new\\r\\n      {\\r\\n        to = new\\r\\n        {\\r\\n          id = #result[Search HubSpot contacts for contact id].Body.properties.hs_object_id\\r\\n        },\\r\\n        types = new[]\\r\\n        {\\r\\n          new\\r\\n          {\\r\\n            associationCategory = \\\"HUBSPOT_DEFINED\\\",\\r\\n            associationTypeId = 3\\r\\n          }\\r\\n        }\\r\\n      }\\r\\n    }\\r\\n  }).ToString();\"},\"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 sales order to HubSpot as a deal\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0r1rh0h\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_147ubed\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nThe Shopify order {#var.order.name} is already in HubSpot as order id {#result[Search HubSpot deals for deal name].Body.results[0].properties.hs_object_id}.\\\\n\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0anscie\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.StatusCode == 201\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Order insertion successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0nuqcjf\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nShopify sales order {#var.order.name} insertion to HubSpot failed.\\\\n\\\\nHTTP status code: {#result[Insert sales order to HubSpot as a deal].StatusCode}\\\\nHTTP message:\\\\n\\\\n{#result[Insert sales order to HubSpot as a deal].Body.message}\\\\n\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_16wl5a5\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"POST\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubspotBaseUrl}}/line_items\"},\"Message\":{\"mode\":\"csharp\",\"value\":\"JObject.FromObject(new {\\r\\n  properties = new\\r\\n    {\\r\\n      hs_external_id = #var.order.line_items[#var.index].id,\\r\\n      hs_sku = #var.order.line_items[#var.index].sku,\\r\\n      hs_tax_label = #var.order.line_items[#var.index].tax_lines.Count > 0 ? #var.order.line_items[#var.index].tax_lines[0].title : \\\"\\\",\\r\\n      hs_tax_rate = #var.order.line_items[#var.index].tax_lines.Count > 0 ? #var.order.line_items[#var.index].tax_lines[0].rate : \\\"\\\",\\r\\n      hs_total_discount = #var.order.line_items[#var.index].total_discount,\\r\\n      hs_variant_id = #var.order.line_items[#var.index].variant_id,\\r\\n      name = #var.order.line_items[#var.index].name,\\r\\n      price = #var.order.line_items[#var.index].price,\\r\\n      quantity = #var.order.line_items[#var.index].quantity,\\r\\n      tax = #var.order.line_items[#var.index].tax_lines.Count > 0 ? #var.order.line_items[#var.index].tax_lines[0].price : \\\"\\\"\\r\\n    },\\r\\n  associations = new[]\\r\\n    {\\r\\n      new\\r\\n      {\\r\\n        to = new\\r\\n        {\\r\\n          id = #result[Insert sales order to HubSpot as a deal].Body.properties.hs_object_id\\r\\n        },\\r\\n        types = new[]\\r\\n        {\\r\\n          new\\r\\n          {\\r\\n            associationCategory = \\\"HUBSPOT_DEFINED\\\",\\r\\n            associationTypeId = 20\\r\\n          }\\r\\n        }\\r\\n      }\\r\\n    }\\r\\n  }).ToString();\\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\":\"Insert line item to HubSpot deal\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_02qt85s\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.StatusCode == 201\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Line item insertion successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0kiy8vt\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0j430pn\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.linesProcessingFinished = true\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_00dk3p7\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1cw2vua\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1mleynx\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions != \\\"\\\" ? $\\\"Shopify sales orders imported successfully to HubSpot. Following exceptions occurred:\\\\n\\\" + #var.exceptions.ToString() : $\\\"Shopify sales orders imported successfully to HubSpot.\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0f6byq8\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_027oqjj\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nAn error occurred retrieving the orders from HubSpot.\\\\n\\\\nHTTP status code: {#result[Search HubSpot deals for deal name].StatusCode}\\\\nHTTP message:\\\\n\\\\n{#result[Search HubSpot deals for deal name].Body.message}\\\\n\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0b1qp35\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_145iwv4\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_14v2iij\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1e64ly1\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubspotBaseUrl}}/contacts/{{#var.order.email}}?idProperty=email\"},\"Message\":{\"mode\":\"text\",\"value\":\"\"},\"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\":\"Search HubSpot contacts for contact id\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0lzjm2l\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_14alkgr\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Search successful and the contact is in HubSpot?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1o518qr\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1tmnooy\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nThe search was not successful or the Shopify customer {#var.order.email} is not a contact in HubSpot.\\\\n\\\\nHTTP status code: {#result[Search HubSpot contacts for contact id].StatusCode}\\\\n\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0nxyopx\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1x5ytcx\",\"Type\":11,\"Parameters\":{\"maxIterations\":{\"mode\":\"integer\",\"value\":\"10000\"},\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.linesProcessingFinished == false\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Process line items\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0e8kssb\",\"Type\":12,\"Parameters\":{\"variableName\":\"linesProcessingFinished\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"false\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize loop variable\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_042w3ko\",\"Type\":12,\"Parameters\":{\"variableName\":\"index\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"0\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize loop index\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0bp69kx\",\"Type\":12,\"Parameters\":{\"variableName\":\"\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nShopify sales order {#var.order.name} line item {#var.order.line_items[#var.index].name} insertion to HubSpot failed.\\\\n\\\\nHTTP status code: {#result[Insert line item to HubSpot deal].StatusCode}\\\\nHTTP message:\\\\n\\\\n{#result[Insert line item to HubSpot deal].Body.message}\\\\n\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":false}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Add a message to the exceptions variable\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1a97yfl\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"DELETE\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"text\",\"value\":\"{{#var.HubspotBaseUrl}}/deals/{{#result[Insert sales order to HubSpot as a deal].Body.id}}\"},\"Message\":{\"mode\":\"text\",\"value\":\"\"},\"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\":\"Delete the created order\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1e8uuma\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_16x95qm\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.index == #var.order.line_items.Count - 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"All lines processed?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1cv1zfm\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0e7t39i\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.index += 1\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0b4dnpt\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.linesProcessingFinished = true\"}},\"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/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": {
					"8105a7f3-d3b6-4eff-b086-a65ed7900c1c": [
						{
							"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"
			}
		}
	]
}