{
	"ProcessTemplates": [
		{
			"Name": "Salesforce account synchronization to Microsoft SQL database",
			"Modified": "2024-05-24T07:06:17.9736382",
			"Modifier": "sampo.sarlin@frends.com",
			"Tags": [
				"MicrosoftSQL",
				"Salesforce"
			],
			"TemplateProcessTags": [],
			"Description": "This process will insert new and update existing Salesforce accounts into a Microsoft SQL database on a schedule.",
			"Version": 2,
			"UniqueIdentifier": "406e7cb3-a890-4410-924b-c929adeca66c",
			"ProcessVariablesJson": "{\"AccountTableName\":{\"Value\":\"\\\"accounttable\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Microsoft SQL database table name.\"},\"ConnectionString\":{\"Value\":\"\\\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Connection string required to access Microsoft SQL database.\"},\"ClientId\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Your Salesforce client id, required to access your account.\"},\"ClientSecret\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Your Salesforce client secret, required to access your account.\"},\"Username\":{\"Value\":\"\\\"username\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Your username to access Salesforce.\"},\"Password\":{\"Value\":\"\\\"password\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Salesforce account password linked to username.\"},\"SecurityToken\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Salesforce security token.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "Salesforce account synchronization to Microsoft SQL database",
					"Modified": "2024-05-24T07:06:17.9736382",
					"Modifier": "sampo.sarlin@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This process will insert new and update existing Salesforce accounts into a Microsoft SQL database on a schedule.",
					"Version": 1,
					"UniqueIdentifier": "c42aefb6-02d5-40b0-9e39-e81ee375d2cc",
					"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=\"Schedule\"><bpmn2:outgoing>Flow_1k5mcui</bpmn2:outgoing></bpmn2:startEvent><bpmn2:sequenceFlow id=\"Flow_1k5mcui\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_04yf6jj\" /><bpmn2:subProcess id=\"Activity_0o23t9p\" name=\"For each account\"><bpmn2:incoming>Flow_197q33f</bpmn2:incoming><bpmn2:outgoing>Flow_1c8som0</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:exclusiveGateway id=\"Gateway_1s0jvkc\" name=\"Account exists?\" default=\"Flow_0bo8jfo\"><bpmn2:incoming>Flow_0me0dhm</bpmn2:incoming><bpmn2:outgoing>Flow_0bo8jfo</bpmn2:outgoing><bpmn2:outgoing>Flow_0x2b1bv</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:task id=\"Activity_0nxxyvt\" name=\"INSERT account data INTO database\"><bpmn2:incoming>Flow_0bo8jfo</bpmn2:incoming><bpmn2:outgoing>Flow_1nxbhco</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0bo8jfo\" name=\"no\" sourceRef=\"Gateway_1s0jvkc\" targetRef=\"Activity_0nxxyvt\" /><bpmn2:task id=\"Activity_1fiuizq\" name=\"UPDATE account data\"><bpmn2:incoming>Flow_0x2b1bv</bpmn2:incoming><bpmn2:outgoing>Flow_0jodh7h</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0x2b1bv\" name=\"yes\" sourceRef=\"Gateway_1s0jvkc\" targetRef=\"Activity_1fiuizq\" /><bpmn2:endEvent id=\"Event_1tthb6l\"><bpmn2:incoming>Flow_0rje4cs</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_0jodh7h\" sourceRef=\"Activity_1fiuizq\" targetRef=\"Gateway_1uf1hl9\" /><bpmn2:startEvent id=\"Event_0kmu1v4\"><bpmn2:outgoing>Flow_0ao5pv8</bpmn2:outgoing></bpmn2:startEvent><bpmn2:sequenceFlow id=\"Flow_0ao5pv8\" sourceRef=\"Event_0kmu1v4\" targetRef=\"Activity_07pbhxo\" /><bpmn2:exclusiveGateway id=\"Gateway_1uf1hl9\" name=\"Synchronization successful?\" default=\"Flow_0xpsuhu\"><bpmn2:incoming>Flow_0jodh7h</bpmn2:incoming><bpmn2:incoming>Flow_1nxbhco</bpmn2:incoming><bpmn2:outgoing>Flow_0rje4cs</bpmn2:outgoing><bpmn2:outgoing>Flow_0xpsuhu</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0rje4cs\" name=\"yes\" sourceRef=\"Gateway_1uf1hl9\" targetRef=\"Event_1tthb6l\" /><bpmn2:sequenceFlow id=\"Flow_1nxbhco\" sourceRef=\"Activity_0nxxyvt\" targetRef=\"Gateway_1uf1hl9\" /><bpmn2:intermediateThrowEvent id=\"Event_00r6gxz\" name=\"Throw an error if either insert or update fails\"><bpmn2:incoming>Flow_0xpsuhu</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_0xpsuhu\" name=\"no\" sourceRef=\"Gateway_1uf1hl9\" targetRef=\"Event_00r6gxz\" /><bpmn2:task id=\"Activity_07pbhxo\" name=\"Find existing account in Microsoft SQL\"><bpmn2:incoming>Flow_0ao5pv8</bpmn2:incoming><bpmn2:outgoing>Flow_0me0dhm</bpmn2:outgoing><bpmn2:property id=\"Property_0v4lhbs\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_0sdbwzj\"><bpmn2:sourceRef>DataStoreReference_14hv4rb</bpmn2:sourceRef><bpmn2:targetRef>Property_0v4lhbs</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0me0dhm\" sourceRef=\"Activity_07pbhxo\" targetRef=\"Gateway_1s0jvkc\" /><bpmn2:dataStoreReference id=\"DataStoreReference_14hv4rb\" /></bpmn2:subProcess><bpmn2:task id=\"Activity_04yf6jj\" name=\"Get account data from Salesforce\"><bpmn2:incoming>Flow_1k5mcui</bpmn2:incoming><bpmn2:outgoing>Flow_1fvf7n1</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_1fvf7n1\" sourceRef=\"Activity_04yf6jj\" targetRef=\"Gateway_1ayqs0b\" /><bpmn2:exclusiveGateway id=\"Gateway_1ayqs0b\" name=\"Salesforce query successful?\" default=\"Flow_1rhaqma\"><bpmn2:incoming>Flow_1fvf7n1</bpmn2:incoming><bpmn2:outgoing>Flow_1rhaqma</bpmn2:outgoing><bpmn2:outgoing>Flow_197q33f</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:intermediateThrowEvent id=\"Event_0g8wydj\" name=\"Throw an error if database query fails\"><bpmn2:incoming>Flow_1rhaqma</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_1rhaqma\" name=\"no\" sourceRef=\"Gateway_1ayqs0b\" targetRef=\"Event_0g8wydj\" /><bpmn2:endEvent id=\"Event_0t88wf5\"><bpmn2:incoming>Flow_1c8som0</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_1c8som0\" sourceRef=\"Activity_0o23t9p\" targetRef=\"Event_0t88wf5\" /><bpmn2:sequenceFlow id=\"Flow_197q33f\" name=\"yes\" sourceRef=\"Gateway_1ayqs0b\" targetRef=\"Activity_0o23t9p\" /><bpmn2:group id=\"Group_0pwe6hj\" categoryValueRef=\"CategoryValue_0kdj2my\" /><bpmn2:textAnnotation id=\"TextAnnotation_04gig9n\"><bpmn2:text>Salesforce account access data is stored in process variables.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_0c28rr3\" sourceRef=\"Activity_04yf6jj\" targetRef=\"TextAnnotation_04gig9n\" /><bpmn2:textAnnotation id=\"TextAnnotation_0mao0mv\"><bpmn2:text>Microsoft SQL query is executed to check if ID already exists in the database.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1gz8jfm\" sourceRef=\"Activity_07pbhxo\" targetRef=\"TextAnnotation_0mao0mv\" /><bpmn2:group id=\"Group_1s5vafd\" categoryValueRef=\"CategoryValue_0ddpn7f\" /></bpmn2:process><bpmn2:category id=\"Category_0320ehf\"><bpmn2:categoryValue id=\"CategoryValue_0kdj2my\" value=\"Get account data from Salesforce\" /></bpmn2:category><bpmn2:category id=\"Category_02u7gfd\"><bpmn2:categoryValue id=\"CategoryValue_0ddpn7f\" value=\"Synchronize account data with Microsoft SQL database\" /></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=\"402\" y=\"286\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"398\" y=\"322\" width=\"46\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0o23t9p_di\" bpmnElement=\"Activity_0o23t9p\" isExpanded=\"true\"><dc:Bounds x=\"870\" y=\"190\" width=\"710\" height=\"292\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1s0jvkc_di\" bpmnElement=\"Gateway_1s0jvkc\" isMarkerVisible=\"true\"><dc:Bounds x=\"1115\" y=\"277\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1103\" y=\"252\" width=\"77\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0nxxyvt_di\" bpmnElement=\"Activity_0nxxyvt\"><dc:Bounds x=\"1221\" y=\"362\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1fiuizq_di\" bpmnElement=\"Activity_1fiuizq\"><dc:Bounds x=\"1220\" y=\"262\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1tthb6l_di\" bpmnElement=\"Event_1tthb6l\"><dc:Bounds x=\"1512\" y=\"284\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0kmu1v4_di\" bpmnElement=\"Event_0kmu1v4\"><dc:Bounds x=\"902\" y=\"286\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1uf1hl9_di\" bpmnElement=\"Gateway_1uf1hl9\" isMarkerVisible=\"true\"><dc:Bounds x=\"1425\" y=\"277\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1411\" y=\"247\" width=\"79\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_00r6gxz_di\" bpmnElement=\"Event_00r6gxz\"><dc:Bounds x=\"1432\" y=\"372\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1410\" y=\"415\" width=\"81\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_07pbhxo_di\" bpmnElement=\"Activity_07pbhxo\"><dc:Bounds x=\"970\" y=\"264\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_14hv4rb_di\" bpmnElement=\"DataStoreReference_14hv4rb\"><dc:Bounds x=\"995\" y=\"377\" width=\"50\" height=\"50\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0bo8jfo_di\" bpmnElement=\"Flow_0bo8jfo\"><di:waypoint x=\"1140\" y=\"327\" /><di:waypoint x=\"1140\" y=\"402\" /><di:waypoint x=\"1221\" y=\"402\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1153\" y=\"375\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0x2b1bv_di\" bpmnElement=\"Flow_0x2b1bv\"><di:waypoint x=\"1165\" y=\"302\" /><di:waypoint x=\"1220\" y=\"302\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1185\" y=\"284\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0jodh7h_di\" bpmnElement=\"Flow_0jodh7h\"><di:waypoint x=\"1320\" y=\"302\" /><di:waypoint x=\"1425\" y=\"302\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ao5pv8_di\" bpmnElement=\"Flow_0ao5pv8\"><di:waypoint x=\"938\" y=\"304\" /><di:waypoint x=\"970\" y=\"304\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0rje4cs_di\" bpmnElement=\"Flow_0rje4cs\"><di:waypoint x=\"1475\" y=\"302\" /><di:waypoint x=\"1512\" y=\"302\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1486\" y=\"284\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1nxbhco_di\" bpmnElement=\"Flow_1nxbhco\"><di:waypoint x=\"1321\" y=\"402\" /><di:waypoint x=\"1370\" y=\"402\" /><di:waypoint x=\"1370\" y=\"302\" /><di:waypoint x=\"1425\" y=\"302\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0xpsuhu_di\" bpmnElement=\"Flow_0xpsuhu\"><di:waypoint x=\"1450\" y=\"327\" /><di:waypoint x=\"1450\" y=\"372\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1459\" y=\"347\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0me0dhm_di\" bpmnElement=\"Flow_0me0dhm\"><di:waypoint x=\"1070\" y=\"303\" /><di:waypoint x=\"1115\" y=\"302\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_04yf6jj_di\" bpmnElement=\"Activity_04yf6jj\"><dc:Bounds x=\"535\" y=\"264\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1ayqs0b_di\" bpmnElement=\"Gateway_1ayqs0b\" isMarkerVisible=\"true\"><dc:Bounds x=\"675\" y=\"279\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"659\" y=\"245\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0g8wydj_di\" bpmnElement=\"Event_0g8wydj\"><dc:Bounds x=\"682\" y=\"392\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"660\" y=\"435\" width=\"81\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0t88wf5_di\" bpmnElement=\"Event_0t88wf5\"><dc:Bounds x=\"1672\" y=\"286\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0pwe6hj_di\" bpmnElement=\"Group_0pwe6hj\"><dc:Bounds x=\"480\" y=\"70\" width=\"300\" height=\"470\" /><bpmndi:BPMNLabel><dc:Bounds x=\"589\" y=\"77\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_04gig9n_di\" bpmnElement=\"TextAnnotation_04gig9n\"><dc:Bounds x=\"535\" y=\"170\" width=\"150\" height=\"60\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_0mao0mv_di\" bpmnElement=\"TextAnnotation_0mao0mv\"><dc:Bounds x=\"970\" y=\"100\" width=\"155\" height=\"70\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_1s5vafd_di\" bpmnElement=\"Group_1s5vafd\"><dc:Bounds x=\"840\" y=\"70\" width=\"770\" height=\"470\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1182\" y=\"77\" width=\"86\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1k5mcui_di\" bpmnElement=\"Flow_1k5mcui\"><di:waypoint x=\"438\" y=\"304\" /><di:waypoint x=\"535\" y=\"304\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_0sdbwzj_di\" bpmnElement=\"DataInputAssociation_0sdbwzj\"><di:waypoint x=\"1020\" y=\"377\" /><di:waypoint x=\"1020\" y=\"344\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1fvf7n1_di\" bpmnElement=\"Flow_1fvf7n1\"><di:waypoint x=\"635\" y=\"304\" /><di:waypoint x=\"675\" y=\"304\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1rhaqma_di\" bpmnElement=\"Flow_1rhaqma\"><di:waypoint x=\"700\" y=\"329\" /><di:waypoint x=\"700\" y=\"392\" /><bpmndi:BPMNLabel><dc:Bounds x=\"709\" y=\"358\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1c8som0_di\" bpmnElement=\"Flow_1c8som0\"><di:waypoint x=\"1580\" y=\"304\" /><di:waypoint x=\"1672\" y=\"304\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_197q33f_di\" bpmnElement=\"Flow_197q33f\"><di:waypoint x=\"725\" y=\"304\" /><di:waypoint x=\"870\" y=\"304\" /><bpmndi:BPMNLabel><dc:Bounds x=\"791\" y=\"286\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0c28rr3_di\" bpmnElement=\"Association_0c28rr3\"><di:waypoint x=\"585\" y=\"264\" /><di:waypoint x=\"585\" y=\"230\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1gz8jfm_di\" bpmnElement=\"Association_1gz8jfm\"><di:waypoint x=\"1020\" y=\"264\" /><di:waypoint x=\"1020\" y=\"170\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{\"startTimeMinute\":\"00\",\"startTimeHour\":\"00\",\"endTimeMinute\":\"00\",\"endTimeHour\":\"00\",\"endTime\":\"00:00\",\"startTime\":\"00:00\",\"recurring\":false,\"repeatDelay\":0,\"repeatDelaySeconds\":0,\"limitToOneConcurrentExecution\":true,\"cycleRecurEvery\":1,\"cycleType\":\"Daily\",\"cycleLength\":1,\"seasonStartDate\":\"2024-05-20\",\"seasonEndDate\":null,\"cycleDaysOfWeek\":\"None\",\"cycleMonths\":\"None\",\"cycleDaysString\":\"\",\"cycleDayRanks\":\"None\",\"monthlyCycleType\":\"OnDays\",\"repeatDelayType\":1,\"timeZone\":\"FLE Standard Time\"},\"SelectedTypeId\":\"ScheduleTrigger\",\"PromoteResultAs\":null,\"Name\":\"Schedule\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"FrendsTestElementId\",\"Type\":19,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"text\",\"value\":\"https://example.my.salesforce.com\"},\"Query\":{\"mode\":\"sql\",\"value\":\"SELECT Id, Name, CreatedDate, Phone, BillingPostalCode, BillingCity, BillingCountry\\r\\nFROM Account\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"text\",\"value\":\"https://login.salesforce.com/services/oauth2/token\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.ClientId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.ClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.Username\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.Password\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false},\"ThrowAnErrorIfNotFound\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/12e91c58-734a-451e-87e2-4c23385c1c43/v1\",\"PromoteResultAs\":null,\"Name\":\"Test\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0nxxyvt\",\"Type\":1,\"Parameters\":{\"input\":{\"ConnectionString\":{\"mode\":\"csharp\",\"value\":\"#var.ConnectionString\"},\"Query\":{\"mode\":\"sql\",\"value\":\"INSERT INTO {{#var.AccountTableName}}(salesforceid, name, createddate, phone, billingpostalcode, billingcity, billingcountry) VALUES (@salesforceid, @salesforceaccountname, @createddate, @phone, @billingpostalcode, @billingcity, @billingcountry);\"},\"Parameters\":[{\"Name\":{\"mode\":\"text\",\"value\":\"salesforceid\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Id}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"salesforceaccountname\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Name}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"phone\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Phone}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"createddate\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.CreatedDate}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingpostalcode\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingPostalCode}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingcity\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingCity}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingcountry\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingCountry}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}}],\"ExecuteType\":{\"mode\":\"select\",\"value\":\"ExecuteReader\"}},\"options\":{\"ThrowErrorOnFailure\":{\"mode\":\"toggle\",\"value\":true},\"CommandTimeoutSeconds\":{\"mode\":\"integer\",\"value\":60},\"SqlTransactionIsolationLevel\":{\"mode\":\"select\",\"value\":\"ReadCommitted\"}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/52de7e2e-788d-4d77-84c9-a6c86a64e2fb/v1\",\"PromoteResultAs\":null,\"Name\":\"INSERT account data INTO database\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":3,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0o23t9p\",\"Type\":10,\"Parameters\":{\"variable\":\"salesforceAccount\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get account data from Salesforce].Body[\\\"records\\\"]\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each account\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1s0jvkc\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Find existing account in Microsoft SQL].Data.Count != 0\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Account exists?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_04yf6jj\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"text\",\"value\":\"https://frends2-dev-ed.develop.my.salesforce.com\"},\"Query\":{\"mode\":\"sql\",\"value\":\"SELECT Id, Name, CreatedDate, Phone, BillingPostalCode, BillingCity, BillingCountry\\r\\nFROM Account\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"text\",\"value\":\"https://login.salesforce.com/services/oauth2/token\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.ClientId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.ClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.Username\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.Password\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false},\"ThrowAnErrorIfNotFound\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/12e91c58-734a-451e-87e2-4c23385c1c43/v1\",\"PromoteResultAs\":null,\"Name\":\"Get account data from Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":3,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0bo8jfo\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0x2b1bv\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1fiuizq\",\"Type\":1,\"Parameters\":{\"input\":{\"ConnectionString\":{\"mode\":\"csharp\",\"value\":\"#var.ConnectionString\"},\"Query\":{\"mode\":\"sql\",\"value\":\"UPDATE {{#var.AccountTableName}}\\r\\nSET salesforceid = @salesforceid, name = @salesforceaccountname, phone = @phone, createddate = @createddate, billingpostalcode = @billingpostalcode, billingcity = @billingcity, billingcountry = @billingcountry\\r\\nWHERE salesforceid = @salesforceid;\"},\"Parameters\":[{\"Name\":{\"mode\":\"text\",\"value\":\"salesforceid\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Id}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"salesforceaccountname\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Name}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"phone\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.Phone}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"createddate\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.CreatedDate}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingdate\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingDate}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingpostalcode\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingPostalCode}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingcity\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingCity}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}},{\"Name\":{\"mode\":\"text\",\"value\":\"billingcountry\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount.BillingCountry}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}}],\"ExecuteType\":{\"mode\":\"select\",\"value\":\"ExecuteReader\"}},\"options\":{\"ThrowErrorOnFailure\":{\"mode\":\"toggle\",\"value\":true},\"CommandTimeoutSeconds\":{\"mode\":\"integer\",\"value\":60},\"SqlTransactionIsolationLevel\":{\"mode\":\"select\",\"value\":\"ReadCommitted\"}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/52de7e2e-788d-4d77-84c9-a6c86a64e2fb/v1\",\"PromoteResultAs\":null,\"Name\":\"UPDATE account data\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":3,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1ayqs0b\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get account data from Salesforce].RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Salesforce query successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0g8wydj\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occurred when selecting from the Salesforce table customers: {{#result[Get account data from Salesforce].ErrorMessage}}\"},\"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_1rhaqma\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0t88wf5\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Customer data has been updated in the database.\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1tthb6l\",\"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_0kmu1v4\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_07pbhxo\",\"Type\":1,\"Parameters\":{\"input\":{\"ConnectionString\":{\"mode\":\"csharp\",\"value\":\"#var.ConnectionString\"},\"Query\":{\"mode\":\"sql\",\"value\":\"SELECT * FROM {{#var.AccountTableName}} WHERE salesforceid = @salesforceId\"},\"Parameters\":[{\"Name\":{\"mode\":\"text\",\"value\":\"salesforceId\"},\"Value\":{\"mode\":\"text\",\"value\":\"{{#var.salesforceAccount[\\\"Id\\\"]}}\"},\"SqlDataType\":{\"mode\":\"select\",\"value\":\"Auto\"}}],\"ExecuteType\":{\"mode\":\"select\",\"value\":\"Auto\"}},\"options\":{\"ThrowErrorOnFailure\":{\"mode\":\"toggle\",\"value\":true},\"CommandTimeoutSeconds\":{\"mode\":\"integer\",\"value\":60},\"SqlTransactionIsolationLevel\":{\"mode\":\"select\",\"value\":\"ReadCommitted\"}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/52de7e2e-788d-4d77-84c9-a6c86a64e2fb/v1\",\"PromoteResultAs\":null,\"Name\":\"Find existing account in Microsoft SQL\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0rje4cs\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1uf1hl9\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Synchronization successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_00r6gxz\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occurred during database update progress: {{#result.ErrorMessage}}\"},\"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_0xpsuhu\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_197q33f\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_14hv4rb\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ScheduleTrigger\",\"config\":{\"startTimeMinute\":\"00\",\"startTimeHour\":\"00\",\"endTimeMinute\":\"00\",\"endTimeHour\":\"00\",\"endTime\":\"00:00\",\"startTime\":\"00:00\",\"recurring\":false,\"repeatDelay\":0,\"repeatDelaySeconds\":0,\"limitToOneConcurrentExecution\":true,\"cycleRecurEvery\":1,\"cycleType\":\"Daily\",\"cycleLength\":1,\"seasonStartDate\":\"2024-05-20\",\"seasonEndDate\":null,\"cycleDaysOfWeek\":\"None\",\"cycleMonths\":\"None\",\"cycleDaysString\":\"\",\"cycleDayRanks\":\"None\",\"monthlyCycleType\":\"OnDays\",\"repeatDelayType\":1,\"timeZone\":\"FLE Standard Time\"},\"name\":\"Schedule\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/12E91C58-734A-451E-87E2-4C23385C1C43/v1\",\"/ProcessTask/52DE7E2E-788D-4D77-84C9-A6C86A64E2FB/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.2.1685",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 1,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"c42aefb6-02d5-40b0-9e39-e81ee375d2cc": [
						{
							"Id": "12e91c58-734a-451e-87e2-4c23385c1c43",
							"PackageId": "Frends.Salesforce.ExecuteQuery",
							"PackageVersion": "1.0.1",
							"Name": "Frends.Salesforce.ExecuteQuery.Salesforce.ExecuteQuery(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "52de7e2e-788d-4d77-84c9-a6c86a64e2fb",
							"PackageId": "Frends.MicrosoftSQL.ExecuteQuery",
							"PackageVersion": "1.2.0",
							"Name": "Frends.MicrosoftSQL.ExecuteQuery.MicrosoftSQL.ExecuteQuery(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}