mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test(Salesforce Node): Add unit and workflow tests for the Salesforce node (#14595)
This commit is contained in:
@@ -0,0 +1,220 @@
|
||||
import type { IDataObject, INodePropertyOptions } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
getValue,
|
||||
getConditions,
|
||||
sortOptions,
|
||||
getDefaultFields,
|
||||
getQuery,
|
||||
} from '../GenericFunctions';
|
||||
|
||||
describe('Salesforce -> GenericFunctions', () => {
|
||||
describe('getValue', () => {
|
||||
it('should return date string as is', () => {
|
||||
const value = '2025-01-01T00:00:00Z';
|
||||
|
||||
const result = getValue(value) as string;
|
||||
|
||||
expect(result).toBe(value);
|
||||
});
|
||||
|
||||
it('should return string in single quotes', () => {
|
||||
const value = 'foo bar baz';
|
||||
|
||||
const result = getValue(value) as string;
|
||||
|
||||
expect(result).toBe("'foo bar baz'");
|
||||
});
|
||||
|
||||
it('should return number as is', () => {
|
||||
const value = 123;
|
||||
|
||||
const result = getValue(value) as number;
|
||||
|
||||
expect(result).toBe(value);
|
||||
});
|
||||
|
||||
it('should return boolean as is', () => {
|
||||
const value = false;
|
||||
|
||||
const result = getValue(value) as boolean;
|
||||
|
||||
expect(result).toBe(value);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sortOptions', () => {
|
||||
it('should sort options alphabetically by name', () => {
|
||||
const unsorted: INodePropertyOptions[] = [
|
||||
{
|
||||
name: 'B Property',
|
||||
value: 'foo',
|
||||
},
|
||||
{
|
||||
name: 'C Property',
|
||||
value: 'bar',
|
||||
},
|
||||
{
|
||||
name: 'A Property',
|
||||
value: 'baz',
|
||||
},
|
||||
];
|
||||
const sorted: INodePropertyOptions[] = [
|
||||
{
|
||||
name: 'A Property',
|
||||
value: 'baz',
|
||||
},
|
||||
{
|
||||
name: 'B Property',
|
||||
value: 'foo',
|
||||
},
|
||||
{
|
||||
name: 'C Property',
|
||||
value: 'bar',
|
||||
},
|
||||
];
|
||||
|
||||
sortOptions(unsorted);
|
||||
|
||||
expect(unsorted).toEqual(sorted);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getConditions', () => {
|
||||
it('should handle equals operation', () => {
|
||||
const options: IDataObject = {
|
||||
conditionsUi: {
|
||||
conditionValues: [{ field: 'field_1', operation: 'equal', value: '123' }],
|
||||
},
|
||||
};
|
||||
|
||||
const result = getConditions(options);
|
||||
|
||||
expect(result).toBe('WHERE field_1 = 123');
|
||||
});
|
||||
|
||||
it('should handle other operations', () => {
|
||||
const options: IDataObject = {
|
||||
conditionsUi: {
|
||||
conditionValues: [
|
||||
{ field: 'field_1', operation: '>', value: '123' },
|
||||
{ field: 'field_2', operation: '<', value: '456' },
|
||||
{ field: 'field_3', operation: '>=', value: '789' },
|
||||
{ field: 'field_4', operation: '<=', value: '0' },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
const result = getConditions(options);
|
||||
|
||||
expect(result).toBe(
|
||||
'WHERE field_1 > 123 AND field_2 < 456 AND field_3 >= 789 AND field_4 <= 0',
|
||||
);
|
||||
});
|
||||
|
||||
it('should return undefined when constitions is not an array', () => {
|
||||
const options: IDataObject = {
|
||||
conditionsUi: {
|
||||
conditionValues: 'not an array',
|
||||
},
|
||||
};
|
||||
|
||||
const result = getConditions(options);
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should return undefined when constitions is an empty array', () => {
|
||||
const options: IDataObject = {
|
||||
conditionsUi: {
|
||||
conditionValues: [],
|
||||
},
|
||||
};
|
||||
|
||||
const result = getConditions(options);
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('getDefaultFields', () => {
|
||||
it('should return default fields', () => {
|
||||
expect(getDefaultFields('Account')).toBe('id,name,type');
|
||||
expect(getDefaultFields('Lead')).toBe(
|
||||
'id,company,firstname,lastname,street,postalCode,city,email,status',
|
||||
);
|
||||
expect(getDefaultFields('Contact')).toBe('id,firstname,lastname,email');
|
||||
expect(getDefaultFields('Opportunity')).toBe('id,accountId,amount,probability,type');
|
||||
expect(getDefaultFields('Case')).toBe('id,accountId,contactId,priority,status,subject,type');
|
||||
expect(getDefaultFields('Task')).toBe('id,subject,status,priority');
|
||||
expect(getDefaultFields('Attachment')).toBe('id,name');
|
||||
expect(getDefaultFields('User')).toBe('id,name,email');
|
||||
});
|
||||
});
|
||||
|
||||
describe('getQuery', () => {
|
||||
it('should return query when the fields are comma separated', () => {
|
||||
const options: IDataObject = {
|
||||
fields: 'id,name,email',
|
||||
};
|
||||
|
||||
const result = getQuery(options, 'Account', true);
|
||||
|
||||
expect(result).toBe('SELECT id,name,email FROM Account ');
|
||||
});
|
||||
|
||||
it('should return query when the fields are strings in an array', () => {
|
||||
const options: IDataObject = {
|
||||
fields: ['id', 'name', 'email'],
|
||||
};
|
||||
|
||||
const result = getQuery(options, 'Account', true);
|
||||
|
||||
expect(result).toBe('SELECT id,name,email FROM Account ');
|
||||
});
|
||||
|
||||
it('should return query with default fields when the fields are missing', () => {
|
||||
const options: IDataObject = {};
|
||||
|
||||
const result = getQuery(options, 'Account', true);
|
||||
|
||||
expect(result).toBe('SELECT id,name,type FROM Account ');
|
||||
});
|
||||
|
||||
it('should return query with a condition', () => {
|
||||
const options: IDataObject = {
|
||||
fields: 'id,name,email',
|
||||
conditionsUi: {
|
||||
conditionValues: [{ field: 'id', operation: 'equal', value: '123' }],
|
||||
},
|
||||
};
|
||||
|
||||
const result = getQuery(options, 'Account', true);
|
||||
|
||||
expect(result).toBe('SELECT id,name,email FROM Account WHERE id = 123');
|
||||
});
|
||||
|
||||
it('should return query with a limit', () => {
|
||||
const options: IDataObject = {
|
||||
fields: 'id,name,email',
|
||||
};
|
||||
|
||||
const result = getQuery(options, 'Account', false, 5);
|
||||
|
||||
expect(result).toBe('SELECT id,name,email FROM Account LIMIT 5');
|
||||
});
|
||||
|
||||
it('should return query with a condition and a limit', () => {
|
||||
const options: IDataObject = {
|
||||
fields: 'id,name,email',
|
||||
conditionsUi: {
|
||||
conditionValues: [{ field: 'id', operation: 'equal', value: '123' }],
|
||||
},
|
||||
};
|
||||
|
||||
const result = getQuery(options, 'Account', false, 5);
|
||||
|
||||
expect(result).toBe('SELECT id,name,email FROM Account WHERE id = 123 LIMIT 5');
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,165 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
import accountDetails from './fixtures/account-details.json';
|
||||
import accounts from './fixtures/accounts.json';
|
||||
import opportunitiesSummary from './fixtures/opportunities-summary.json';
|
||||
import opportunities from './fixtures/opportunities.json';
|
||||
import opportunityDetails from './fixtures/opportunity-details.json';
|
||||
import taskDetails from './fixtures/task-details.json';
|
||||
import taskSummary from './fixtures/task-summary.json';
|
||||
import tasks from './fixtures/tasks.json';
|
||||
import userDeltails from './fixtures/user-details.json';
|
||||
import users from './fixtures/users.json';
|
||||
|
||||
describe('Salesforce Node', () => {
|
||||
nock.emitter.on('no match', (req) => {
|
||||
console.error('Unmatched request: ', req);
|
||||
});
|
||||
|
||||
const salesforceNock = nock('https://salesforce.instance/services/data/v59.0');
|
||||
|
||||
describe('users', () => {
|
||||
beforeAll(() => {
|
||||
salesforceNock
|
||||
.get('/query')
|
||||
.query({
|
||||
q: 'SELECT id,name,email FROM User ',
|
||||
})
|
||||
.reply(200, { records: users })
|
||||
.get('/sobjects/user/id1')
|
||||
.reply(200, userDeltails);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Salesforce/__test__/node/users.workflow.json']);
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
salesforceNock.done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('tasks', () => {
|
||||
beforeAll(() => {
|
||||
salesforceNock
|
||||
.post('/sobjects/task', {
|
||||
Status: 'In Progress',
|
||||
Subject: 'Email',
|
||||
Description: 'Sample description',
|
||||
})
|
||||
.reply(200, { id: 'id1', success: true, errors: [] })
|
||||
.get('/query')
|
||||
.query({
|
||||
q: 'SELECT id,subject,status,priority FROM Task ',
|
||||
})
|
||||
.reply(200, { records: tasks })
|
||||
.get('/sobjects/task/id1')
|
||||
.reply(200, taskDetails)
|
||||
.get('/sobjects/task')
|
||||
.reply(200, taskSummary)
|
||||
.patch('/sobjects/task/id1', { Description: 'New description' })
|
||||
.reply(200, { success: true, errors: [] })
|
||||
.delete('/sobjects/task/id1')
|
||||
.reply(200, { success: true, errors: [] });
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Salesforce/__test__/node/tasks.workflow.json']);
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
salesforceNock.done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('accounts', () => {
|
||||
beforeAll(() => {
|
||||
salesforceNock
|
||||
.post('/sobjects/account', { Name: 'Test Account' })
|
||||
.reply(200, { id: 'id1', success: true, errors: [] })
|
||||
.get('/query')
|
||||
.query({
|
||||
q: 'SELECT id,name,type FROM Account ',
|
||||
})
|
||||
.reply(200, { records: accounts })
|
||||
.post('/sobjects/note', { Title: 'New note', ParentId: 'id1' })
|
||||
.reply(200, {
|
||||
id: 'noteid1',
|
||||
success: true,
|
||||
errors: [],
|
||||
})
|
||||
.get('/sobjects/account/id1')
|
||||
.reply(200, accountDetails)
|
||||
.patch('/sobjects/account/id1', { Website: 'https://foo.bar.baz' })
|
||||
.reply(200, { success: true, errors: [] })
|
||||
.patch('/sobjects/account/Id/id1', { Name: 'New account' })
|
||||
.reply(200, { id: 'id1', created: false, success: true, errors: [] })
|
||||
.delete('/sobjects/account/id1')
|
||||
.reply(200, { success: true, errors: [] });
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Salesforce/__test__/node/accounts.workflow.json']);
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
salesforceNock.done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('search', () => {
|
||||
beforeAll(() => {
|
||||
salesforceNock
|
||||
.get('/query')
|
||||
.query({
|
||||
q: 'SELECT id, name, type FROM Account',
|
||||
})
|
||||
.reply(200, { records: accounts });
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Salesforce/__test__/node/search.workflow.json']);
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
salesforceNock.done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('opportunities', () => {
|
||||
beforeAll(() => {
|
||||
salesforceNock
|
||||
.post('/sobjects/opportunity', {
|
||||
Name: 'New Opportunity',
|
||||
CloseDate: '2025-01-01T00:00:00',
|
||||
StageName: 'Prospecting',
|
||||
Amount: 1000,
|
||||
})
|
||||
.reply(200, { id: 'id1', success: true, errors: [] })
|
||||
.get('/query')
|
||||
.query({
|
||||
q: 'SELECT id,accountId,amount,probability,type FROM Opportunity ',
|
||||
})
|
||||
.reply(200, { records: opportunities })
|
||||
.post('/sobjects/note', { Title: 'New Note', ParentId: 'id1' })
|
||||
.reply(200, {
|
||||
id: 'noteid1',
|
||||
success: true,
|
||||
errors: [],
|
||||
})
|
||||
.get('/sobjects/opportunity/id1')
|
||||
.reply(200, opportunityDetails)
|
||||
.patch('/sobjects/opportunity/id1', { Amount: 123 })
|
||||
.reply(200, { success: true, errors: [] })
|
||||
.patch('/sobjects/opportunity/Name/SomeName', {
|
||||
CloseDate: '2025-01-01T00:00:00',
|
||||
StageName: 'Prospecting',
|
||||
})
|
||||
.reply(200, { id: 'id1', created: false, success: true, errors: [] })
|
||||
.delete('/sobjects/opportunity/id1')
|
||||
.reply(200, { success: true, errors: [] })
|
||||
.get('/sobjects/opportunity')
|
||||
.reply(200, opportunitiesSummary);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Salesforce/__test__/node/opportunities.workflow.json']);
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
salesforceNock.done();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,506 @@
|
||||
{
|
||||
"name": "accounts.workflow",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-240, 700],
|
||||
"id": "80ee49ee-d695-41d8-9f94-d59a499d46c1",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"name": "Test Account",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 100],
|
||||
"id": "9256d15e-a14f-4b30-8600-99b64d2635d6",
|
||||
"name": "Salesforce",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 100],
|
||||
"id": "53d96738-6778-410c-a1cd-e552fedc0f8a",
|
||||
"name": "No Operation, do nothing"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "getAll",
|
||||
"returnAll": true,
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 300],
|
||||
"id": "9369fffa-6679-4065-8748-7ba2449eecb7",
|
||||
"name": "Salesforce1",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 300],
|
||||
"id": "55813438-79eb-4513-9586-7ac3213c7ac7",
|
||||
"name": "No Operation, do nothing1"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "addNote",
|
||||
"accountId": "id1",
|
||||
"title": "New note",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 500],
|
||||
"id": "387806dc-9f87-43fd-9e7d-ecf8619c327d",
|
||||
"name": "Salesforce2",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 500],
|
||||
"id": "0a6bce2c-55b0-4b8f-a817-ce8d47723e95",
|
||||
"name": "No Operation, do nothing2"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "get",
|
||||
"accountId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 700],
|
||||
"id": "31060d8f-2353-44e1-83c1-86c626125e72",
|
||||
"name": "Salesforce3",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 700],
|
||||
"id": "d9481d27-3cb0-4809-a9a4-d91cb5b7d37c",
|
||||
"name": "No Operation, do nothing3"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "update",
|
||||
"accountId": "id1",
|
||||
"updateFields": {
|
||||
"website": "https://foo.bar.baz"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 900],
|
||||
"id": "294c3e5b-0e5a-4b13-8cb6-e74618e6e9bb",
|
||||
"name": "Salesforce4",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 900],
|
||||
"id": "ed0920e2-a04b-46b3-8bdb-f8e81969001f",
|
||||
"name": "No Operation, do nothing4"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "upsert",
|
||||
"externalId": "Id",
|
||||
"externalIdValue": "id1",
|
||||
"name": "New account",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 1100],
|
||||
"id": "fcaf7a7e-312d-40c2-a5ab-be4040fd32d9",
|
||||
"name": "Salesforce5",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 1100],
|
||||
"id": "327971b2-6258-4cfd-b126-0905aa8054a9",
|
||||
"name": "No Operation, do nothing5"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "account",
|
||||
"operation": "delete",
|
||||
"accountId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 1300],
|
||||
"id": "468b78f6-0a62-4c1c-94a4-9180d51ae660",
|
||||
"name": "Salesforce6",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 1300],
|
||||
"id": "e4bf4b7e-8f49-4764-908c-ea393ffa8a24",
|
||||
"name": "No Operation, do nothing6"
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"id": "id1",
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing1": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "Account 1",
|
||||
"Type": "Customer - Direct"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "Account 2",
|
||||
"Type": "Customer - Direct"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing2": [
|
||||
{
|
||||
"json": {
|
||||
"id": "noteid1",
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing3": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"IsDeleted": false,
|
||||
"MasterRecordId": null,
|
||||
"Name": "Account 1",
|
||||
"Type": "Customer - Direct",
|
||||
"ParentId": null,
|
||||
"BillingStreet": "Foo",
|
||||
"BillingCity": "Bar",
|
||||
"BillingState": "TX",
|
||||
"BillingPostalCode": null,
|
||||
"BillingCountry": "United States",
|
||||
"BillingStateCode": "TX",
|
||||
"BillingCountryCode": "US",
|
||||
"BillingLatitude": null,
|
||||
"BillingLongitude": null,
|
||||
"BillingGeocodeAccuracy": null,
|
||||
"BillingAddress": {
|
||||
"city": "Bar",
|
||||
"country": "United States",
|
||||
"countryCode": "US",
|
||||
"geocodeAccuracy": null,
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"postalCode": null,
|
||||
"state": "TX",
|
||||
"stateCode": "TX",
|
||||
"street": "Foo"
|
||||
},
|
||||
"ShippingStreet": "Foo Bar",
|
||||
"ShippingCity": null,
|
||||
"ShippingState": null,
|
||||
"ShippingPostalCode": null,
|
||||
"ShippingCountry": null,
|
||||
"ShippingStateCode": null,
|
||||
"ShippingCountryCode": null,
|
||||
"ShippingLatitude": null,
|
||||
"ShippingLongitude": null,
|
||||
"ShippingGeocodeAccuracy": null,
|
||||
"ShippingAddress": {
|
||||
"city": null,
|
||||
"country": null,
|
||||
"countryCode": null,
|
||||
"geocodeAccuracy": null,
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"postalCode": null,
|
||||
"state": null,
|
||||
"stateCode": null,
|
||||
"street": "Foo"
|
||||
},
|
||||
"Phone": "(123) 123-4567",
|
||||
"Fax": "(123) 123-4567",
|
||||
"AccountNumber": "AB12345",
|
||||
"Website": "http://foo.com",
|
||||
"PhotoUrl": "/services/images/photo/id1",
|
||||
"Sic": "6576",
|
||||
"Industry": "Electronics",
|
||||
"AnnualRevenue": 139000000,
|
||||
"NumberOfEmployees": 1000,
|
||||
"Ownership": "Public",
|
||||
"TickerSymbol": "FOO",
|
||||
"Description": "Lorem ipsum",
|
||||
"Rating": "Hot",
|
||||
"Site": null,
|
||||
"OwnerId": "005gL000001GYd4QAG",
|
||||
"CreatedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"CreatedById": "005gL000001GYd4QAG",
|
||||
"LastModifiedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"LastModifiedById": "005gL000001GYd4QAG",
|
||||
"SystemModstamp": "2025-03-30T17:57:34.000+0000",
|
||||
"LastActivityDate": null,
|
||||
"LastViewedDate": "2025-04-11T12:22:06.000+0000",
|
||||
"LastReferencedDate": "2025-04-11T12:22:06.000+0000",
|
||||
"Jigsaw": null,
|
||||
"JigsawCompanyId": null,
|
||||
"CleanStatus": "Pending",
|
||||
"AccountSource": null,
|
||||
"DunsNumber": null,
|
||||
"Tradestyle": null,
|
||||
"NaicsCode": null,
|
||||
"NaicsDesc": null,
|
||||
"YearStarted": null,
|
||||
"SicDesc": null,
|
||||
"DandbCompanyId": null,
|
||||
"OperatingHoursId": null,
|
||||
"CustomerPriority__c": "Medium",
|
||||
"SLA__c": "Silver",
|
||||
"Active__c": "Yes",
|
||||
"NumberofLocations__c": 2,
|
||||
"UpsellOpportunity__c": "Maybe",
|
||||
"SLASerialNumber__c": "2657",
|
||||
"SLAExpirationDate__c": "2025-04-23"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing4": [
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing5": [
|
||||
{
|
||||
"json": {
|
||||
"id": "id1",
|
||||
"success": true,
|
||||
"errors": [],
|
||||
"created": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing6": [
|
||||
{
|
||||
"json": {
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Salesforce",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce6",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce3": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce5": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce6": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing6",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "52a99175-c048-41ef-a650-cb0df49afc9e",
|
||||
"meta": {
|
||||
"instanceId": "e115be144a6a5547dbfca93e774dfffa178aa94a181854c13e2ce5e14d195b2e"
|
||||
},
|
||||
"id": "I1K0IcGLrqCdREVg",
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"IsDeleted": false,
|
||||
"MasterRecordId": null,
|
||||
"Name": "Account 1",
|
||||
"Type": "Customer - Direct",
|
||||
"ParentId": null,
|
||||
"BillingStreet": "Foo",
|
||||
"BillingCity": "Bar",
|
||||
"BillingState": "TX",
|
||||
"BillingPostalCode": null,
|
||||
"BillingCountry": "United States",
|
||||
"BillingStateCode": "TX",
|
||||
"BillingCountryCode": "US",
|
||||
"BillingLatitude": null,
|
||||
"BillingLongitude": null,
|
||||
"BillingGeocodeAccuracy": null,
|
||||
"BillingAddress": {
|
||||
"city": "Bar",
|
||||
"country": "United States",
|
||||
"countryCode": "US",
|
||||
"geocodeAccuracy": null,
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"postalCode": null,
|
||||
"state": "TX",
|
||||
"stateCode": "TX",
|
||||
"street": "Foo"
|
||||
},
|
||||
"ShippingStreet": "Foo Bar",
|
||||
"ShippingCity": null,
|
||||
"ShippingState": null,
|
||||
"ShippingPostalCode": null,
|
||||
"ShippingCountry": null,
|
||||
"ShippingStateCode": null,
|
||||
"ShippingCountryCode": null,
|
||||
"ShippingLatitude": null,
|
||||
"ShippingLongitude": null,
|
||||
"ShippingGeocodeAccuracy": null,
|
||||
"ShippingAddress": {
|
||||
"city": null,
|
||||
"country": null,
|
||||
"countryCode": null,
|
||||
"geocodeAccuracy": null,
|
||||
"latitude": null,
|
||||
"longitude": null,
|
||||
"postalCode": null,
|
||||
"state": null,
|
||||
"stateCode": null,
|
||||
"street": "Foo"
|
||||
},
|
||||
"Phone": "(123) 123-4567",
|
||||
"Fax": "(123) 123-4567",
|
||||
"AccountNumber": "AB12345",
|
||||
"Website": "http://foo.com",
|
||||
"PhotoUrl": "/services/images/photo/id1",
|
||||
"Sic": "6576",
|
||||
"Industry": "Electronics",
|
||||
"AnnualRevenue": 139000000,
|
||||
"NumberOfEmployees": 1000,
|
||||
"Ownership": "Public",
|
||||
"TickerSymbol": "FOO",
|
||||
"Description": "Lorem ipsum",
|
||||
"Rating": "Hot",
|
||||
"Site": null,
|
||||
"OwnerId": "005gL000001GYd4QAG",
|
||||
"CreatedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"CreatedById": "005gL000001GYd4QAG",
|
||||
"LastModifiedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"LastModifiedById": "005gL000001GYd4QAG",
|
||||
"SystemModstamp": "2025-03-30T17:57:34.000+0000",
|
||||
"LastActivityDate": null,
|
||||
"LastViewedDate": "2025-04-11T12:22:06.000+0000",
|
||||
"LastReferencedDate": "2025-04-11T12:22:06.000+0000",
|
||||
"Jigsaw": null,
|
||||
"JigsawCompanyId": null,
|
||||
"CleanStatus": "Pending",
|
||||
"AccountSource": null,
|
||||
"DunsNumber": null,
|
||||
"Tradestyle": null,
|
||||
"NaicsCode": null,
|
||||
"NaicsDesc": null,
|
||||
"YearStarted": null,
|
||||
"SicDesc": null,
|
||||
"DandbCompanyId": null,
|
||||
"OperatingHoursId": null,
|
||||
"CustomerPriority__c": "Medium",
|
||||
"SLA__c": "Silver",
|
||||
"Active__c": "Yes",
|
||||
"NumberofLocations__c": 2,
|
||||
"UpsellOpportunity__c": "Maybe",
|
||||
"SLASerialNumber__c": "2657",
|
||||
"SLAExpirationDate__c": "2025-04-23"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "Account 1",
|
||||
"Type": "Customer - Direct"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "Account 2",
|
||||
"Type": "Customer - Direct"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"objectDescribe": {
|
||||
"activateable": false,
|
||||
"associateEntityType": null,
|
||||
"associateParentEntity": null,
|
||||
"createable": true,
|
||||
"custom": false,
|
||||
"customSetting": false,
|
||||
"deepCloneable": true,
|
||||
"deletable": true,
|
||||
"deprecatedAndHidden": false,
|
||||
"feedEnabled": true,
|
||||
"hasSubtypes": false,
|
||||
"isInterface": false,
|
||||
"isSubtype": false,
|
||||
"keyPrefix": "006",
|
||||
"label": "Opportunity",
|
||||
"labelPlural": "Opportunities",
|
||||
"layoutable": true,
|
||||
"mergeable": false,
|
||||
"mruEnabled": true,
|
||||
"name": "Opportunity",
|
||||
"queryable": true,
|
||||
"replicateable": true,
|
||||
"retrieveable": true,
|
||||
"searchable": true,
|
||||
"triggerable": true,
|
||||
"undeletable": true,
|
||||
"updateable": true,
|
||||
"urls": {
|
||||
"compactLayouts": "/services/data/v59.0/sobjects/Opportunity/describe/compactLayouts",
|
||||
"rowTemplate": "/services/data/v59.0/sobjects/Opportunity/{ID}",
|
||||
"approvalLayouts": "/services/data/v59.0/sobjects/Opportunity/describe/approvalLayouts",
|
||||
"listviews": "/services/data/v59.0/sobjects/Opportunity/listviews",
|
||||
"describe": "/services/data/v59.0/sobjects/Opportunity/describe",
|
||||
"quickActions": "/services/data/v59.0/sobjects/Opportunity/quickActions",
|
||||
"layouts": "/services/data/v59.0/sobjects/Opportunity/describe/layouts",
|
||||
"sobject": "/services/data/v59.0/sobjects/Opportunity"
|
||||
}
|
||||
},
|
||||
"recentItems": [
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "Opportunity 1"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "Opportunity 2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"AccountId": "accountid1",
|
||||
"Amount": 15000,
|
||||
"Probability": 10,
|
||||
"Type": "New Customer"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"AccountId": "accountid2",
|
||||
"Amount": 125000,
|
||||
"Probability": 90,
|
||||
"Type": "Existing Customer - Upgrade"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"IsDeleted": false,
|
||||
"AccountId": "accountid1",
|
||||
"IsPrivate": false,
|
||||
"Name": "Opportunity 1",
|
||||
"Description": null,
|
||||
"StageName": "Qualification",
|
||||
"Amount": 15000,
|
||||
"Probability": 10,
|
||||
"ExpectedRevenue": 1500,
|
||||
"TotalOpportunityQuantity": null,
|
||||
"CloseDate": "2025-02-05",
|
||||
"Type": "New Customer",
|
||||
"NextStep": null,
|
||||
"LeadSource": "Purchased List",
|
||||
"IsClosed": false,
|
||||
"IsWon": false,
|
||||
"ForecastCategory": "Pipeline",
|
||||
"ForecastCategoryName": "Pipeline",
|
||||
"CampaignId": null,
|
||||
"HasOpportunityLineItem": false,
|
||||
"Pricebook2Id": null,
|
||||
"OwnerId": "id1",
|
||||
"CreatedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"CreatedById": "id1",
|
||||
"LastModifiedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"LastModifiedById": "id1",
|
||||
"SystemModstamp": "2025-03-30T17:57:34.000+0000",
|
||||
"LastActivityDate": null,
|
||||
"PushCount": 0,
|
||||
"LastStageChangeDate": null,
|
||||
"FiscalQuarter": 1,
|
||||
"FiscalYear": 2015,
|
||||
"Fiscal": "2015 1",
|
||||
"ContactId": null,
|
||||
"LastViewedDate": null,
|
||||
"LastReferencedDate": null,
|
||||
"HasOpenActivity": false,
|
||||
"HasOverdueTask": false,
|
||||
"LastAmountChangedHistoryId": null,
|
||||
"LastCloseDateChangedHistoryId": null,
|
||||
"DeliveryInstallationStatus__c": null,
|
||||
"TrackingNumber__c": null,
|
||||
"OrderNumber__c": null,
|
||||
"CurrentGenerators__c": null,
|
||||
"MainCompetitors__c": "Honda"
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"WhoId": null,
|
||||
"WhatId": null,
|
||||
"Subject": "Email",
|
||||
"ActivityDate": null,
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal",
|
||||
"IsHighPriority": false,
|
||||
"OwnerId": "005gL000001QBDlQAO",
|
||||
"Description": "Sample description",
|
||||
"IsDeleted": false,
|
||||
"AccountId": null,
|
||||
"IsClosed": false,
|
||||
"CreatedDate": "2025-04-11T11:27:22.000+0000",
|
||||
"CreatedById": "005gL000001QBDlQAO",
|
||||
"LastModifiedDate": "2025-04-11T11:27:22.000+0000",
|
||||
"LastModifiedById": "005gL000001QBDlQAO",
|
||||
"SystemModstamp": "2025-04-11T11:27:22.000+0000",
|
||||
"IsArchived": false,
|
||||
"CallDurationInSeconds": null,
|
||||
"CallType": null,
|
||||
"CallDisposition": null,
|
||||
"CallObject": null,
|
||||
"ReminderDateTime": null,
|
||||
"IsReminderSet": false,
|
||||
"RecurrenceActivityId": null,
|
||||
"IsRecurrence": false,
|
||||
"RecurrenceStartDateOnly": null,
|
||||
"RecurrenceEndDateOnly": null,
|
||||
"RecurrenceTimeZoneSidKey": null,
|
||||
"RecurrenceType": null,
|
||||
"RecurrenceInterval": null,
|
||||
"RecurrenceDayOfWeekMask": null,
|
||||
"RecurrenceDayOfMonth": null,
|
||||
"RecurrenceInstance": null,
|
||||
"RecurrenceMonthOfYear": null,
|
||||
"RecurrenceRegeneratedType": null,
|
||||
"TaskSubtype": "Task",
|
||||
"CompletedDateTime": null
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"objectDescribe": {
|
||||
"activateable": false,
|
||||
"associateEntityType": null,
|
||||
"associateParentEntity": null,
|
||||
"createable": true,
|
||||
"custom": false,
|
||||
"customSetting": false,
|
||||
"deepCloneable": false,
|
||||
"deletable": true,
|
||||
"deprecatedAndHidden": false,
|
||||
"feedEnabled": false,
|
||||
"hasSubtypes": false,
|
||||
"isInterface": false,
|
||||
"isSubtype": false,
|
||||
"keyPrefix": "00T",
|
||||
"label": "Task",
|
||||
"labelPlural": "Tasks",
|
||||
"layoutable": true,
|
||||
"mergeable": false,
|
||||
"mruEnabled": true,
|
||||
"name": "Task",
|
||||
"queryable": true,
|
||||
"replicateable": true,
|
||||
"retrieveable": true,
|
||||
"searchable": true,
|
||||
"triggerable": true,
|
||||
"undeletable": true,
|
||||
"updateable": true,
|
||||
"urls": {
|
||||
"compactLayouts": "/services/data/v59.0/sobjects/Task/describe/compactLayouts",
|
||||
"rowTemplate": "/services/data/v59.0/sobjects/Task/{ID}",
|
||||
"describe": "/services/data/v59.0/sobjects/Task/describe",
|
||||
"quickActions": "/services/data/v59.0/sobjects/Task/quickActions",
|
||||
"layouts": "/services/data/v59.0/sobjects/Task/describe/layouts",
|
||||
"sobject": "/services/data/v59.0/sobjects/Task"
|
||||
}
|
||||
},
|
||||
"recentItems": [
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/00TgL000000BbYyUAK"
|
||||
},
|
||||
"Id": "00TgL000000BbYyUAK",
|
||||
"Subject": "Email"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/00TgL000000BfCjUAK"
|
||||
},
|
||||
"Id": "00TgL000000BfCjUAK",
|
||||
"Subject": "Email"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Subject": "Email",
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Subject": "Email",
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Username": "user1@test.com",
|
||||
"LastName": "Doe",
|
||||
"FirstName": "John",
|
||||
"Name": "John Doe",
|
||||
"CompanyName": "Acme",
|
||||
"Division": null,
|
||||
"Department": null,
|
||||
"Title": null,
|
||||
"Street": null,
|
||||
"City": null,
|
||||
"State": null,
|
||||
"PostalCode": null,
|
||||
"Country": null,
|
||||
"StateCode": null,
|
||||
"CountryCode": null,
|
||||
"Latitude": null,
|
||||
"Longitude": null,
|
||||
"GeocodeAccuracy": null,
|
||||
"Address": null,
|
||||
"Email": "user1@test.com",
|
||||
"EmailPreferencesAutoBcc": true,
|
||||
"EmailPreferencesAutoBccStayInTouch": false,
|
||||
"EmailPreferencesStayInTouchReminder": true,
|
||||
"SenderEmail": null,
|
||||
"SenderName": null,
|
||||
"Signature": null,
|
||||
"StayInTouchSubject": null,
|
||||
"StayInTouchSignature": null,
|
||||
"StayInTouchNote": null,
|
||||
"Phone": null,
|
||||
"Fax": null,
|
||||
"MobilePhone": null,
|
||||
"Alias": "fit",
|
||||
"CommunityNickname": "User17441049456622889395",
|
||||
"BadgeText": "",
|
||||
"IsActive": true,
|
||||
"TimeZoneSidKey": "America/Los_Angeles",
|
||||
"UserRoleId": null,
|
||||
"LocaleSidKey": "en_US",
|
||||
"ReceivesInfoEmails": false,
|
||||
"ReceivesAdminInfoEmails": false,
|
||||
"EmailEncodingKey": "UTF-8",
|
||||
"ProfileId": "id1",
|
||||
"UserType": "Standard",
|
||||
"StartDay": "6",
|
||||
"EndDay": "23",
|
||||
"LanguageLocaleKey": "en_US",
|
||||
"EmployeeNumber": null,
|
||||
"DelegatedApproverId": null,
|
||||
"ManagerId": null,
|
||||
"LastLoginDate": "2025-04-11T11:01:57.000+0000",
|
||||
"LastPasswordChangeDate": "2025-04-08T09:36:33.000+0000",
|
||||
"CreatedDate": "2025-04-08T09:35:45.000+0000",
|
||||
"CreatedById": "id0",
|
||||
"LastModifiedDate": "2025-04-08T09:35:51.000+0000",
|
||||
"LastModifiedById": "id0",
|
||||
"SystemModstamp": "2025-04-09T03:00:35.000+0000",
|
||||
"PasswordExpirationDate": "2025-07-07T09:36:33.000+0000",
|
||||
"NumberOfFailedLogins": 0,
|
||||
"SuAccessExpirationDate": null,
|
||||
"OfflineTrialExpirationDate": null,
|
||||
"OfflinePdaTrialExpirationDate": null,
|
||||
"UserPermissionsMarketingUser": false,
|
||||
"UserPermissionsOfflineUser": false,
|
||||
"UserPermissionsCallCenterAutoLogin": false,
|
||||
"UserPermissionsSFContentUser": true,
|
||||
"UserPermissionsKnowledgeUser": true,
|
||||
"UserPermissionsInteractionUser": false,
|
||||
"UserPermissionsSupportUser": false,
|
||||
"UserPermissionsJigsawProspectingUser": false,
|
||||
"UserPermissionsSiteforceContributorUser": false,
|
||||
"UserPermissionsSiteforcePublisherUser": false,
|
||||
"UserPermissionsWorkDotComUserFeature": false,
|
||||
"ForecastEnabled": false,
|
||||
"UserPreferencesActivityRemindersPopup": true,
|
||||
"UserPreferencesEventRemindersCheckboxDefault": true,
|
||||
"UserPreferencesTaskRemindersCheckboxDefault": true,
|
||||
"UserPreferencesReminderSoundOff": false,
|
||||
"UserPreferencesDisableAllFeedsEmail": false,
|
||||
"UserPreferencesDisableFollowersEmail": false,
|
||||
"UserPreferencesDisableProfilePostEmail": false,
|
||||
"UserPreferencesDisableChangeCommentEmail": false,
|
||||
"UserPreferencesDisableLaterCommentEmail": false,
|
||||
"UserPreferencesDisProfPostCommentEmail": false,
|
||||
"UserPreferencesContentNoEmail": false,
|
||||
"UserPreferencesContentEmailAsAndWhen": false,
|
||||
"UserPreferencesApexPagesDeveloperMode": false,
|
||||
"UserPreferencesReceiveNoNotificationsAsApprover": false,
|
||||
"UserPreferencesReceiveNotificationsAsDelegatedApprover": false,
|
||||
"UserPreferencesHideCSNGetChatterMobileTask": false,
|
||||
"UserPreferencesDisableMentionsPostEmail": false,
|
||||
"UserPreferencesDisMentionsCommentEmail": false,
|
||||
"UserPreferencesHideCSNDesktopTask": false,
|
||||
"UserPreferencesHideChatterOnboardingSplash": false,
|
||||
"UserPreferencesHideSecondChatterOnboardingSplash": false,
|
||||
"UserPreferencesDisCommentAfterLikeEmail": false,
|
||||
"UserPreferencesDisableLikeEmail": true,
|
||||
"UserPreferencesSortFeedByComment": true,
|
||||
"UserPreferencesDisableMessageEmail": false,
|
||||
"UserPreferencesJigsawListUser": false,
|
||||
"UserPreferencesDisableBookmarkEmail": false,
|
||||
"UserPreferencesDisableSharePostEmail": false,
|
||||
"UserPreferencesEnableAutoSubForFeeds": false,
|
||||
"UserPreferencesDisableFileShareNotificationsForApi": false,
|
||||
"UserPreferencesShowTitleToExternalUsers": true,
|
||||
"UserPreferencesShowManagerToExternalUsers": false,
|
||||
"UserPreferencesShowEmailToExternalUsers": false,
|
||||
"UserPreferencesShowWorkPhoneToExternalUsers": false,
|
||||
"UserPreferencesShowMobilePhoneToExternalUsers": false,
|
||||
"UserPreferencesShowFaxToExternalUsers": false,
|
||||
"UserPreferencesShowStreetAddressToExternalUsers": false,
|
||||
"UserPreferencesShowCityToExternalUsers": false,
|
||||
"UserPreferencesShowStateToExternalUsers": false,
|
||||
"UserPreferencesShowPostalCodeToExternalUsers": false,
|
||||
"UserPreferencesShowCountryToExternalUsers": false,
|
||||
"UserPreferencesShowProfilePicToGuestUsers": false,
|
||||
"UserPreferencesShowTitleToGuestUsers": false,
|
||||
"UserPreferencesShowCityToGuestUsers": false,
|
||||
"UserPreferencesShowStateToGuestUsers": false,
|
||||
"UserPreferencesShowPostalCodeToGuestUsers": false,
|
||||
"UserPreferencesShowCountryToGuestUsers": false,
|
||||
"UserPreferencesShowForecastingChangeSignals": false,
|
||||
"UserPreferencesLiveAgentMiawSetupDeflection": false,
|
||||
"UserPreferencesHideS1BrowserUI": false,
|
||||
"UserPreferencesDisableEndorsementEmail": false,
|
||||
"UserPreferencesPathAssistantCollapsed": false,
|
||||
"UserPreferencesCacheDiagnostics": false,
|
||||
"UserPreferencesShowEmailToGuestUsers": false,
|
||||
"UserPreferencesShowManagerToGuestUsers": false,
|
||||
"UserPreferencesShowWorkPhoneToGuestUsers": false,
|
||||
"UserPreferencesShowMobilePhoneToGuestUsers": false,
|
||||
"UserPreferencesShowFaxToGuestUsers": false,
|
||||
"UserPreferencesShowStreetAddressToGuestUsers": false,
|
||||
"UserPreferencesLightningExperiencePreferred": true,
|
||||
"UserPreferencesPreviewLightning": false,
|
||||
"UserPreferencesHideEndUserOnboardingAssistantModal": false,
|
||||
"UserPreferencesHideLightningMigrationModal": false,
|
||||
"UserPreferencesHideSfxWelcomeMat": true,
|
||||
"UserPreferencesHideBiggerPhotoCallout": false,
|
||||
"UserPreferencesGlobalNavBarWTShown": false,
|
||||
"UserPreferencesGlobalNavGridMenuWTShown": false,
|
||||
"UserPreferencesCreateLEXAppsWTShown": false,
|
||||
"UserPreferencesFavoritesWTShown": false,
|
||||
"UserPreferencesRecordHomeSectionCollapseWTShown": false,
|
||||
"UserPreferencesRecordHomeReservedWTShown": false,
|
||||
"UserPreferencesFavoritesShowTopFavorites": false,
|
||||
"UserPreferencesExcludeMailAppAttachments": false,
|
||||
"UserPreferencesSuppressTaskSFXReminders": false,
|
||||
"UserPreferencesSuppressEventSFXReminders": false,
|
||||
"UserPreferencesPreviewCustomTheme": false,
|
||||
"UserPreferencesHasCelebrationBadge": false,
|
||||
"UserPreferencesUserDebugModePref": false,
|
||||
"UserPreferencesSRHOverrideActivities": false,
|
||||
"UserPreferencesNewLightningReportRunPageEnabled": false,
|
||||
"UserPreferencesReverseOpenActivitiesView": false,
|
||||
"UserPreferencesShowTerritoryTimeZoneShifts": false,
|
||||
"UserPreferencesHasSentWarningEmail": false,
|
||||
"UserPreferencesHasSentWarningEmail238": false,
|
||||
"UserPreferencesHasSentWarningEmail240": false,
|
||||
"UserPreferencesNativeEmailClient": false,
|
||||
"UserPreferencesShowForecastingRoundedAmounts": false,
|
||||
"ContactId": null,
|
||||
"AccountId": null,
|
||||
"CallCenterId": null,
|
||||
"Extension": null,
|
||||
"FederationIdentifier": null,
|
||||
"AboutMe": null,
|
||||
"FullPhotoUrl": "https://salesforce.com/profilephoto/005/F",
|
||||
"SmallPhotoUrl": "https://salesforce.com/profilephoto/005/T",
|
||||
"IsExtIndicatorVisible": false,
|
||||
"OutOfOfficeMessage": "",
|
||||
"MediumPhotoUrl": "https://salesforce.com/profilephoto/005/M",
|
||||
"DigestFrequency": "D",
|
||||
"DefaultGroupNotificationFrequency": "N",
|
||||
"JigsawImportLimitOverride": null,
|
||||
"LastViewedDate": "2025-04-11T07:34:58.000+0000",
|
||||
"LastReferencedDate": "2025-04-11T07:34:58.000+0000",
|
||||
"BannerPhotoUrl": "/profilephoto/005/B",
|
||||
"SmallBannerPhotoUrl": "/profilephoto/005/D",
|
||||
"MediumBannerPhotoUrl": "/profilephoto/005/E",
|
||||
"IsProfilePhotoActive": false,
|
||||
"IndividualId": null
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
[
|
||||
{
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "User 1",
|
||||
"Email": "test1@test.com"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "User 2",
|
||||
"Email": "test2@test.com"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id3"
|
||||
},
|
||||
"Id": "id3",
|
||||
"Name": "User 3",
|
||||
"Email": "test3@test.com"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,574 @@
|
||||
{
|
||||
"name": "opportunities.workflow",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-240, 800],
|
||||
"id": "bfbc5552-b033-4a9b-88cc-2c489313b0c5",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"name": "New Opportunity",
|
||||
"closeDate": "2025-01-01T00:00:00",
|
||||
"stageName": "Prospecting",
|
||||
"additionalFields": {
|
||||
"amount": 1000
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 100],
|
||||
"id": "bb9d487c-64ad-4e31-b54f-81282543f9b3",
|
||||
"name": "Salesforce",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 100],
|
||||
"id": "cd4f2393-8fa7-4bf0-8a4e-81a519c2ca98",
|
||||
"name": "No Operation, do nothing"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "getAll",
|
||||
"returnAll": true,
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 300],
|
||||
"id": "fec8e003-be8d-4f54-9d97-6b59c2390c44",
|
||||
"name": "Salesforce1",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 300],
|
||||
"id": "15d62e5f-6576-4045-bc71-c75383e1dad4",
|
||||
"name": "No Operation, do nothing1"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "upsert",
|
||||
"externalId": "Name",
|
||||
"externalIdValue": "SomeName",
|
||||
"name": "New Opportunity",
|
||||
"closeDate": "2025-01-01T00:00:00",
|
||||
"stageName": "Prospecting",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 500],
|
||||
"id": "119704da-9b17-4f0f-8e2f-93b97e0cc897",
|
||||
"name": "Salesforce2",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 500],
|
||||
"id": "487f0b0a-10c4-4015-a3d8-3007c62c57c7",
|
||||
"name": "No Operation, do nothing2"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "addNote",
|
||||
"opportunityId": "id1",
|
||||
"title": "New Note",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 700],
|
||||
"id": "a6298428-c2b4-4f4a-a1ef-5241d4bf3cb7",
|
||||
"name": "Salesforce3",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 700],
|
||||
"id": "b9dfe31c-7d30-47d5-833e-8d0043c4f156",
|
||||
"name": "No Operation, do nothing3"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "get",
|
||||
"opportunityId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 900],
|
||||
"id": "27a29694-ebfb-4f22-a44d-33539b18609d",
|
||||
"name": "Salesforce4",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 900],
|
||||
"id": "4da4ce39-99ba-430a-9dcb-f98dfd618988",
|
||||
"name": "No Operation, do nothing4"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "getSummary"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 1100],
|
||||
"id": "671c9b0f-5c90-4789-967d-015112a31d69",
|
||||
"name": "Salesforce5",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 1100],
|
||||
"id": "428e9f87-406c-4363-bf6c-c557eeabbdf4",
|
||||
"name": "No Operation, do nothing5"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "delete",
|
||||
"opportunityId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 1300],
|
||||
"id": "c0069703-112e-4180-8f83-df1c993dd202",
|
||||
"name": "Salesforce6",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 1300],
|
||||
"id": "83ef4a9a-cdcc-4052-9f8a-cd63207bf2bd",
|
||||
"name": "No Operation, do nothing6"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "opportunity",
|
||||
"operation": "update",
|
||||
"opportunityId": "id1",
|
||||
"updateFields": {
|
||||
"amount": 123
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 1500],
|
||||
"id": "870e9a87-f1c7-4c28-9e44-86deaf9112e6",
|
||||
"name": "Salesforce7",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 1500],
|
||||
"id": "7a98ba79-98b1-4a91-8bd0-b4432773b094",
|
||||
"name": "No Operation, do nothing7"
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"id": "id1",
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing1": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"AccountId": "accountid1",
|
||||
"Amount": 15000,
|
||||
"Probability": 10,
|
||||
"Type": "New Customer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"AccountId": "accountid2",
|
||||
"Amount": 125000,
|
||||
"Probability": 90,
|
||||
"Type": "Existing Customer - Upgrade"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing3": [
|
||||
{
|
||||
"json": {
|
||||
"id": "noteid1",
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing4": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"IsDeleted": false,
|
||||
"AccountId": "accountid1",
|
||||
"IsPrivate": false,
|
||||
"Name": "Opportunity 1",
|
||||
"Description": null,
|
||||
"StageName": "Qualification",
|
||||
"Amount": 15000,
|
||||
"Probability": 10,
|
||||
"ExpectedRevenue": 1500,
|
||||
"TotalOpportunityQuantity": null,
|
||||
"CloseDate": "2025-02-05",
|
||||
"Type": "New Customer",
|
||||
"NextStep": null,
|
||||
"LeadSource": "Purchased List",
|
||||
"IsClosed": false,
|
||||
"IsWon": false,
|
||||
"ForecastCategory": "Pipeline",
|
||||
"ForecastCategoryName": "Pipeline",
|
||||
"CampaignId": null,
|
||||
"HasOpportunityLineItem": false,
|
||||
"Pricebook2Id": null,
|
||||
"OwnerId": "id1",
|
||||
"CreatedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"CreatedById": "id1",
|
||||
"LastModifiedDate": "2025-03-30T17:57:34.000+0000",
|
||||
"LastModifiedById": "id1",
|
||||
"SystemModstamp": "2025-03-30T17:57:34.000+0000",
|
||||
"LastActivityDate": null,
|
||||
"PushCount": 0,
|
||||
"LastStageChangeDate": null,
|
||||
"FiscalQuarter": 1,
|
||||
"FiscalYear": 2015,
|
||||
"Fiscal": "2015 1",
|
||||
"ContactId": null,
|
||||
"LastViewedDate": null,
|
||||
"LastReferencedDate": null,
|
||||
"HasOpenActivity": false,
|
||||
"HasOverdueTask": false,
|
||||
"LastAmountChangedHistoryId": null,
|
||||
"LastCloseDateChangedHistoryId": null,
|
||||
"DeliveryInstallationStatus__c": null,
|
||||
"TrackingNumber__c": null,
|
||||
"OrderNumber__c": null,
|
||||
"CurrentGenerators__c": null,
|
||||
"MainCompetitors__c": "Honda"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing5": [
|
||||
{
|
||||
"json": {
|
||||
"objectDescribe": {
|
||||
"activateable": false,
|
||||
"associateEntityType": null,
|
||||
"associateParentEntity": null,
|
||||
"createable": true,
|
||||
"custom": false,
|
||||
"customSetting": false,
|
||||
"deepCloneable": true,
|
||||
"deletable": true,
|
||||
"deprecatedAndHidden": false,
|
||||
"feedEnabled": true,
|
||||
"hasSubtypes": false,
|
||||
"isInterface": false,
|
||||
"isSubtype": false,
|
||||
"keyPrefix": "006",
|
||||
"label": "Opportunity",
|
||||
"labelPlural": "Opportunities",
|
||||
"layoutable": true,
|
||||
"mergeable": false,
|
||||
"mruEnabled": true,
|
||||
"name": "Opportunity",
|
||||
"queryable": true,
|
||||
"replicateable": true,
|
||||
"retrieveable": true,
|
||||
"searchable": true,
|
||||
"triggerable": true,
|
||||
"undeletable": true,
|
||||
"updateable": true,
|
||||
"urls": {
|
||||
"compactLayouts": "/services/data/v59.0/sobjects/Opportunity/describe/compactLayouts",
|
||||
"rowTemplate": "/services/data/v59.0/sobjects/Opportunity/{ID}",
|
||||
"approvalLayouts": "/services/data/v59.0/sobjects/Opportunity/describe/approvalLayouts",
|
||||
"listviews": "/services/data/v59.0/sobjects/Opportunity/listviews",
|
||||
"describe": "/services/data/v59.0/sobjects/Opportunity/describe",
|
||||
"quickActions": "/services/data/v59.0/sobjects/Opportunity/quickActions",
|
||||
"layouts": "/services/data/v59.0/sobjects/Opportunity/describe/layouts",
|
||||
"sobject": "/services/data/v59.0/sobjects/Opportunity"
|
||||
}
|
||||
},
|
||||
"recentItems": [
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "Opportunity 1"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Opportunity",
|
||||
"url": "/services/data/v59.0/sobjects/Opportunity/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "Opportunity 2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing6": [
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing2": [
|
||||
{
|
||||
"json": {
|
||||
"id": "id1",
|
||||
"success": true,
|
||||
"errors": [],
|
||||
"created": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing7": [
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Salesforce",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce6",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce7",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce3": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce5": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce6": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing6",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce7": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing7",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "8c7902c9-6bf2-44b1-85c8-13384bfd5ad1",
|
||||
"meta": {
|
||||
"instanceId": "e115be144a6a5547dbfca93e774dfffa178aa94a181854c13e2ce5e14d195b2e"
|
||||
},
|
||||
"id": "5uU0KQPrh1moPgAs",
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"name": "search.workflow",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-240, 100],
|
||||
"id": "e3a94904-ddfa-4fe8-bac2-e2c796c677a3",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "search",
|
||||
"query": "SELECT id, name, type FROM Account"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [-20, 100],
|
||||
"id": "0fcf65ac-c9a3-48b5-9c39-599216208b62",
|
||||
"name": "Salesforce",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [200, 100],
|
||||
"id": "8319a07f-465f-4456-b6b0-012aa36ce08b",
|
||||
"name": "No Operation, do nothing"
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "Account 1",
|
||||
"Type": "Customer - Direct"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Account",
|
||||
"url": "/services/data/v59.0/sobjects/Account/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "Account 2",
|
||||
"Type": "Customer - Direct"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Salesforce",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "ca0a5b64-d016-4412-8ea9-0cefc269f2c1",
|
||||
"meta": {
|
||||
"instanceId": "e115be144a6a5547dbfca93e774dfffa178aa94a181854c13e2ce5e14d195b2e"
|
||||
},
|
||||
"id": "ODC4s7m6nIRLkeE9",
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,452 @@
|
||||
{
|
||||
"name": "tasks.workflow",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-220, 600],
|
||||
"id": "56d46635-cd55-4ca2-aa50-cc7f9767abc7",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"status": "In Progress",
|
||||
"additionalFields": {
|
||||
"description": "Sample description",
|
||||
"subject": "Email"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 100],
|
||||
"id": "4797a994-e082-445e-a2ca-65e30503e055",
|
||||
"name": "Salesforce",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 100],
|
||||
"id": "8639e379-1a63-4d2e-9032-28a9d2191a82",
|
||||
"name": "No Operation, do nothing"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"operation": "getAll",
|
||||
"returnAll": true,
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 300],
|
||||
"id": "a4a735c1-02d5-42e7-8dbb-873ca7ed2a79",
|
||||
"name": "Salesforce1",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 300],
|
||||
"id": "4b9bc48b-695c-40d5-be6b-d8d117e2ffc0",
|
||||
"name": "No Operation, do nothing1"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"operation": "get",
|
||||
"taskId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 500],
|
||||
"id": "910ee66b-8a1b-46b9-a156-dd7ebb932dac",
|
||||
"name": "Salesforce2",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 500],
|
||||
"id": "570eb762-96e4-4639-9ad7-c6c67a6b2f43",
|
||||
"name": "No Operation, do nothing2"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"operation": "getSummary"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 700],
|
||||
"id": "7a27cca0-ac81-4b15-b64e-149b94dc1dd2",
|
||||
"name": "Salesforce3",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 700],
|
||||
"id": "fc825f3a-24eb-4d4c-b7df-d872e9bae2c3",
|
||||
"name": "No Operation, do nothing3"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"operation": "update",
|
||||
"taskId": "id1",
|
||||
"updateFields": {
|
||||
"description": "New description"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 900],
|
||||
"id": "e3bb44cd-fcd8-407f-b700-63fe7cd94650",
|
||||
"name": "Salesforce4",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 900],
|
||||
"id": "e7e8325c-4b2e-4aff-b077-e87b93cb5849",
|
||||
"name": "No Operation, do nothing4"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "task",
|
||||
"operation": "delete",
|
||||
"taskId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 1100],
|
||||
"id": "aa00475d-ea3e-4bf6-838c-34ec986b891f",
|
||||
"name": "Salesforce5",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 1100],
|
||||
"id": "3199b901-5b75-4ee1-8e47-39e49c9160ba",
|
||||
"name": "No Operation, do nothing5"
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"id": "id1",
|
||||
"success": true,
|
||||
"errors": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing1": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Subject": "Email",
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Subject": "Email",
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing2": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"WhoId": null,
|
||||
"WhatId": null,
|
||||
"Subject": "Email",
|
||||
"ActivityDate": null,
|
||||
"Status": "In Progress",
|
||||
"Priority": "Normal",
|
||||
"IsHighPriority": false,
|
||||
"OwnerId": "005gL000001QBDlQAO",
|
||||
"Description": "Sample description",
|
||||
"IsDeleted": false,
|
||||
"AccountId": null,
|
||||
"IsClosed": false,
|
||||
"CreatedDate": "2025-04-11T11:27:22.000+0000",
|
||||
"CreatedById": "005gL000001QBDlQAO",
|
||||
"LastModifiedDate": "2025-04-11T11:27:22.000+0000",
|
||||
"LastModifiedById": "005gL000001QBDlQAO",
|
||||
"SystemModstamp": "2025-04-11T11:27:22.000+0000",
|
||||
"IsArchived": false,
|
||||
"CallDurationInSeconds": null,
|
||||
"CallType": null,
|
||||
"CallDisposition": null,
|
||||
"CallObject": null,
|
||||
"ReminderDateTime": null,
|
||||
"IsReminderSet": false,
|
||||
"RecurrenceActivityId": null,
|
||||
"IsRecurrence": false,
|
||||
"RecurrenceStartDateOnly": null,
|
||||
"RecurrenceEndDateOnly": null,
|
||||
"RecurrenceTimeZoneSidKey": null,
|
||||
"RecurrenceType": null,
|
||||
"RecurrenceInterval": null,
|
||||
"RecurrenceDayOfWeekMask": null,
|
||||
"RecurrenceDayOfMonth": null,
|
||||
"RecurrenceInstance": null,
|
||||
"RecurrenceMonthOfYear": null,
|
||||
"RecurrenceRegeneratedType": null,
|
||||
"TaskSubtype": "Task",
|
||||
"CompletedDateTime": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing3": [
|
||||
{
|
||||
"json": {
|
||||
"objectDescribe": {
|
||||
"activateable": false,
|
||||
"associateEntityType": null,
|
||||
"associateParentEntity": null,
|
||||
"createable": true,
|
||||
"custom": false,
|
||||
"customSetting": false,
|
||||
"deepCloneable": false,
|
||||
"deletable": true,
|
||||
"deprecatedAndHidden": false,
|
||||
"feedEnabled": false,
|
||||
"hasSubtypes": false,
|
||||
"isInterface": false,
|
||||
"isSubtype": false,
|
||||
"keyPrefix": "00T",
|
||||
"label": "Task",
|
||||
"labelPlural": "Tasks",
|
||||
"layoutable": true,
|
||||
"mergeable": false,
|
||||
"mruEnabled": true,
|
||||
"name": "Task",
|
||||
"queryable": true,
|
||||
"replicateable": true,
|
||||
"retrieveable": true,
|
||||
"searchable": true,
|
||||
"triggerable": true,
|
||||
"undeletable": true,
|
||||
"updateable": true,
|
||||
"urls": {
|
||||
"compactLayouts": "/services/data/v59.0/sobjects/Task/describe/compactLayouts",
|
||||
"rowTemplate": "/services/data/v59.0/sobjects/Task/{ID}",
|
||||
"describe": "/services/data/v59.0/sobjects/Task/describe",
|
||||
"quickActions": "/services/data/v59.0/sobjects/Task/quickActions",
|
||||
"layouts": "/services/data/v59.0/sobjects/Task/describe/layouts",
|
||||
"sobject": "/services/data/v59.0/sobjects/Task"
|
||||
}
|
||||
},
|
||||
"recentItems": [
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/00TgL000000BbYyUAK"
|
||||
},
|
||||
"Id": "00TgL000000BbYyUAK",
|
||||
"Subject": "Email"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"type": "Task",
|
||||
"url": "/services/data/v59.0/sobjects/Task/00TgL000000BfCjUAK"
|
||||
},
|
||||
"Id": "00TgL000000BfCjUAK",
|
||||
"Subject": "Email"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing4": [
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing5": [
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Salesforce",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce3": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing3",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce5": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "9a2b3613-dfcb-40ff-8e85-431d73fb6a7c",
|
||||
"meta": {
|
||||
"instanceId": "e115be144a6a5547dbfca93e774dfffa178aa94a181854c13e2ce5e14d195b2e"
|
||||
},
|
||||
"id": "EY22EouBwE7vnSTT",
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,349 @@
|
||||
{
|
||||
"name": "users.workflow",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 100],
|
||||
"id": "c7971ec9-8bbf-42c1-b99b-dc24de009760",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "user",
|
||||
"operation": "getAll",
|
||||
"returnAll": true,
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 0],
|
||||
"id": "b6762525-8485-4ac7-9cab-bad56c627187",
|
||||
"name": "Salesforce",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [440, 0],
|
||||
"id": "006a7764-e287-437a-9475-d8a78e972172",
|
||||
"name": "No Operation, do nothing"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "user",
|
||||
"userId": "id1"
|
||||
},
|
||||
"type": "n8n-nodes-base.salesforce",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 200],
|
||||
"id": "19f7ad1c-0e32-4bf3-a12f-80dace398586",
|
||||
"name": "Salesforce1",
|
||||
"credentials": {
|
||||
"salesforceOAuth2Api": {
|
||||
"id": "gBXFg0tv79sQS6pc",
|
||||
"name": "Salesforce account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.noOp",
|
||||
"typeVersion": 1,
|
||||
"position": [440, 200],
|
||||
"id": "6c19df43-d32e-47ff-aecc-e045657c02c2",
|
||||
"name": "No Operation, do nothing1"
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"No Operation, do nothing": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Name": "User 1",
|
||||
"Email": "test1@test.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id2"
|
||||
},
|
||||
"Id": "id2",
|
||||
"Name": "User 2",
|
||||
"Email": "test2@test.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id3"
|
||||
},
|
||||
"Id": "id3",
|
||||
"Name": "User 3",
|
||||
"Email": "test3@test.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"No Operation, do nothing1": [
|
||||
{
|
||||
"json": {
|
||||
"attributes": {
|
||||
"type": "User",
|
||||
"url": "/services/data/v59.0/sobjects/User/id1"
|
||||
},
|
||||
"Id": "id1",
|
||||
"Username": "user1@test.com",
|
||||
"LastName": "Doe",
|
||||
"FirstName": "John",
|
||||
"Name": "John Doe",
|
||||
"CompanyName": "Acme",
|
||||
"Division": null,
|
||||
"Department": null,
|
||||
"Title": null,
|
||||
"Street": null,
|
||||
"City": null,
|
||||
"State": null,
|
||||
"PostalCode": null,
|
||||
"Country": null,
|
||||
"StateCode": null,
|
||||
"CountryCode": null,
|
||||
"Latitude": null,
|
||||
"Longitude": null,
|
||||
"GeocodeAccuracy": null,
|
||||
"Address": null,
|
||||
"Email": "user1@test.com",
|
||||
"EmailPreferencesAutoBcc": true,
|
||||
"EmailPreferencesAutoBccStayInTouch": false,
|
||||
"EmailPreferencesStayInTouchReminder": true,
|
||||
"SenderEmail": null,
|
||||
"SenderName": null,
|
||||
"Signature": null,
|
||||
"StayInTouchSubject": null,
|
||||
"StayInTouchSignature": null,
|
||||
"StayInTouchNote": null,
|
||||
"Phone": null,
|
||||
"Fax": null,
|
||||
"MobilePhone": null,
|
||||
"Alias": "fit",
|
||||
"CommunityNickname": "User17441049456622889395",
|
||||
"BadgeText": "",
|
||||
"IsActive": true,
|
||||
"TimeZoneSidKey": "America/Los_Angeles",
|
||||
"UserRoleId": null,
|
||||
"LocaleSidKey": "en_US",
|
||||
"ReceivesInfoEmails": false,
|
||||
"ReceivesAdminInfoEmails": false,
|
||||
"EmailEncodingKey": "UTF-8",
|
||||
"ProfileId": "id1",
|
||||
"UserType": "Standard",
|
||||
"StartDay": "6",
|
||||
"EndDay": "23",
|
||||
"LanguageLocaleKey": "en_US",
|
||||
"EmployeeNumber": null,
|
||||
"DelegatedApproverId": null,
|
||||
"ManagerId": null,
|
||||
"LastLoginDate": "2025-04-11T11:01:57.000+0000",
|
||||
"LastPasswordChangeDate": "2025-04-08T09:36:33.000+0000",
|
||||
"CreatedDate": "2025-04-08T09:35:45.000+0000",
|
||||
"CreatedById": "id0",
|
||||
"LastModifiedDate": "2025-04-08T09:35:51.000+0000",
|
||||
"LastModifiedById": "id0",
|
||||
"SystemModstamp": "2025-04-09T03:00:35.000+0000",
|
||||
"PasswordExpirationDate": "2025-07-07T09:36:33.000+0000",
|
||||
"NumberOfFailedLogins": 0,
|
||||
"SuAccessExpirationDate": null,
|
||||
"OfflineTrialExpirationDate": null,
|
||||
"OfflinePdaTrialExpirationDate": null,
|
||||
"UserPermissionsMarketingUser": false,
|
||||
"UserPermissionsOfflineUser": false,
|
||||
"UserPermissionsCallCenterAutoLogin": false,
|
||||
"UserPermissionsSFContentUser": true,
|
||||
"UserPermissionsKnowledgeUser": true,
|
||||
"UserPermissionsInteractionUser": false,
|
||||
"UserPermissionsSupportUser": false,
|
||||
"UserPermissionsJigsawProspectingUser": false,
|
||||
"UserPermissionsSiteforceContributorUser": false,
|
||||
"UserPermissionsSiteforcePublisherUser": false,
|
||||
"UserPermissionsWorkDotComUserFeature": false,
|
||||
"ForecastEnabled": false,
|
||||
"UserPreferencesActivityRemindersPopup": true,
|
||||
"UserPreferencesEventRemindersCheckboxDefault": true,
|
||||
"UserPreferencesTaskRemindersCheckboxDefault": true,
|
||||
"UserPreferencesReminderSoundOff": false,
|
||||
"UserPreferencesDisableAllFeedsEmail": false,
|
||||
"UserPreferencesDisableFollowersEmail": false,
|
||||
"UserPreferencesDisableProfilePostEmail": false,
|
||||
"UserPreferencesDisableChangeCommentEmail": false,
|
||||
"UserPreferencesDisableLaterCommentEmail": false,
|
||||
"UserPreferencesDisProfPostCommentEmail": false,
|
||||
"UserPreferencesContentNoEmail": false,
|
||||
"UserPreferencesContentEmailAsAndWhen": false,
|
||||
"UserPreferencesApexPagesDeveloperMode": false,
|
||||
"UserPreferencesReceiveNoNotificationsAsApprover": false,
|
||||
"UserPreferencesReceiveNotificationsAsDelegatedApprover": false,
|
||||
"UserPreferencesHideCSNGetChatterMobileTask": false,
|
||||
"UserPreferencesDisableMentionsPostEmail": false,
|
||||
"UserPreferencesDisMentionsCommentEmail": false,
|
||||
"UserPreferencesHideCSNDesktopTask": false,
|
||||
"UserPreferencesHideChatterOnboardingSplash": false,
|
||||
"UserPreferencesHideSecondChatterOnboardingSplash": false,
|
||||
"UserPreferencesDisCommentAfterLikeEmail": false,
|
||||
"UserPreferencesDisableLikeEmail": true,
|
||||
"UserPreferencesSortFeedByComment": true,
|
||||
"UserPreferencesDisableMessageEmail": false,
|
||||
"UserPreferencesJigsawListUser": false,
|
||||
"UserPreferencesDisableBookmarkEmail": false,
|
||||
"UserPreferencesDisableSharePostEmail": false,
|
||||
"UserPreferencesEnableAutoSubForFeeds": false,
|
||||
"UserPreferencesDisableFileShareNotificationsForApi": false,
|
||||
"UserPreferencesShowTitleToExternalUsers": true,
|
||||
"UserPreferencesShowManagerToExternalUsers": false,
|
||||
"UserPreferencesShowEmailToExternalUsers": false,
|
||||
"UserPreferencesShowWorkPhoneToExternalUsers": false,
|
||||
"UserPreferencesShowMobilePhoneToExternalUsers": false,
|
||||
"UserPreferencesShowFaxToExternalUsers": false,
|
||||
"UserPreferencesShowStreetAddressToExternalUsers": false,
|
||||
"UserPreferencesShowCityToExternalUsers": false,
|
||||
"UserPreferencesShowStateToExternalUsers": false,
|
||||
"UserPreferencesShowPostalCodeToExternalUsers": false,
|
||||
"UserPreferencesShowCountryToExternalUsers": false,
|
||||
"UserPreferencesShowProfilePicToGuestUsers": false,
|
||||
"UserPreferencesShowTitleToGuestUsers": false,
|
||||
"UserPreferencesShowCityToGuestUsers": false,
|
||||
"UserPreferencesShowStateToGuestUsers": false,
|
||||
"UserPreferencesShowPostalCodeToGuestUsers": false,
|
||||
"UserPreferencesShowCountryToGuestUsers": false,
|
||||
"UserPreferencesShowForecastingChangeSignals": false,
|
||||
"UserPreferencesLiveAgentMiawSetupDeflection": false,
|
||||
"UserPreferencesHideS1BrowserUI": false,
|
||||
"UserPreferencesDisableEndorsementEmail": false,
|
||||
"UserPreferencesPathAssistantCollapsed": false,
|
||||
"UserPreferencesCacheDiagnostics": false,
|
||||
"UserPreferencesShowEmailToGuestUsers": false,
|
||||
"UserPreferencesShowManagerToGuestUsers": false,
|
||||
"UserPreferencesShowWorkPhoneToGuestUsers": false,
|
||||
"UserPreferencesShowMobilePhoneToGuestUsers": false,
|
||||
"UserPreferencesShowFaxToGuestUsers": false,
|
||||
"UserPreferencesShowStreetAddressToGuestUsers": false,
|
||||
"UserPreferencesLightningExperiencePreferred": true,
|
||||
"UserPreferencesPreviewLightning": false,
|
||||
"UserPreferencesHideEndUserOnboardingAssistantModal": false,
|
||||
"UserPreferencesHideLightningMigrationModal": false,
|
||||
"UserPreferencesHideSfxWelcomeMat": true,
|
||||
"UserPreferencesHideBiggerPhotoCallout": false,
|
||||
"UserPreferencesGlobalNavBarWTShown": false,
|
||||
"UserPreferencesGlobalNavGridMenuWTShown": false,
|
||||
"UserPreferencesCreateLEXAppsWTShown": false,
|
||||
"UserPreferencesFavoritesWTShown": false,
|
||||
"UserPreferencesRecordHomeSectionCollapseWTShown": false,
|
||||
"UserPreferencesRecordHomeReservedWTShown": false,
|
||||
"UserPreferencesFavoritesShowTopFavorites": false,
|
||||
"UserPreferencesExcludeMailAppAttachments": false,
|
||||
"UserPreferencesSuppressTaskSFXReminders": false,
|
||||
"UserPreferencesSuppressEventSFXReminders": false,
|
||||
"UserPreferencesPreviewCustomTheme": false,
|
||||
"UserPreferencesHasCelebrationBadge": false,
|
||||
"UserPreferencesUserDebugModePref": false,
|
||||
"UserPreferencesSRHOverrideActivities": false,
|
||||
"UserPreferencesNewLightningReportRunPageEnabled": false,
|
||||
"UserPreferencesReverseOpenActivitiesView": false,
|
||||
"UserPreferencesShowTerritoryTimeZoneShifts": false,
|
||||
"UserPreferencesHasSentWarningEmail": false,
|
||||
"UserPreferencesHasSentWarningEmail238": false,
|
||||
"UserPreferencesHasSentWarningEmail240": false,
|
||||
"UserPreferencesNativeEmailClient": false,
|
||||
"UserPreferencesShowForecastingRoundedAmounts": false,
|
||||
"ContactId": null,
|
||||
"AccountId": null,
|
||||
"CallCenterId": null,
|
||||
"Extension": null,
|
||||
"FederationIdentifier": null,
|
||||
"AboutMe": null,
|
||||
"FullPhotoUrl": "https://salesforce.com/profilephoto/005/F",
|
||||
"SmallPhotoUrl": "https://salesforce.com/profilephoto/005/T",
|
||||
"IsExtIndicatorVisible": false,
|
||||
"OutOfOfficeMessage": "",
|
||||
"MediumPhotoUrl": "https://salesforce.com/profilephoto/005/M",
|
||||
"DigestFrequency": "D",
|
||||
"DefaultGroupNotificationFrequency": "N",
|
||||
"JigsawImportLimitOverride": null,
|
||||
"LastViewedDate": "2025-04-11T07:34:58.000+0000",
|
||||
"LastReferencedDate": "2025-04-11T07:34:58.000+0000",
|
||||
"BannerPhotoUrl": "/profilephoto/005/B",
|
||||
"SmallBannerPhotoUrl": "/profilephoto/005/D",
|
||||
"MediumBannerPhotoUrl": "/profilephoto/005/E",
|
||||
"IsProfilePhotoActive": false,
|
||||
"IndividualId": null
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Salesforce",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Salesforce1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Salesforce1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "No Operation, do nothing1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1",
|
||||
"saveExecutionProgress": true,
|
||||
"callerPolicy": "workflowsFromSameOwner",
|
||||
"executionTimeout": -1
|
||||
},
|
||||
"versionId": "75388b74-b236-4166-8b91-1f12b869b6e1",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "e115be144a6a5547dbfca93e774dfffa178aa94a181854c13e2ce5e14d195b2e"
|
||||
},
|
||||
"id": "3YnSQQ6F97w4Pzyj",
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user