Salesforce new (feature/salesforce-extended)

sir,

Kindly please guide me to run the above feature locally in my n8n account, it is not published yet.
Unfortunately I don’t have no coding background and not able to understand the documentation which was provided. This particular feature is used to create or update incoming data from a g sheet to Salesforce. I am not able to insert this operation into my n8n account , that i am using to do this automation. I had github gli installed on my system as per the documentation. from this point on wards i am not able to proceed or understand and complete the task. there is no video out there to show a step by step guidance for a non coder to use the function .
Details for the request??

Which step are you blocked on and what is the error you are seeing?

Hi ivov,

I am struggling to understand what are the steps that need to be made for pulling this extention or brach that is in git hub and make the operation running in my account.

Hey @Jaison_Joseph!

May I know how you’re running n8n? Are you using the hosted version or n8n.cloud?

About n8n

n8n Version:

0.118.1

Source Code:

License:

Apache 2.0 with Commons Clause

I believe it is n8n
cloud

Hey @Jaison_Joseph! I am afraid, but this still doesn’t answer my question. Anyways, if you want to try out that specific branch locally on your machine, you need to have Node.js, lerna, and git installed on your machine. You can check the instructions and the links for installing these softwares here: Creating your first node | Docs

Once you have that, you can clone the repo (download) on your machine running the command git clone https://github.com/n8n-io/n8n.git.

Once you’ve cloned the repo use the command cd n8n to navigate into the project directory. After that run the commands:

git fetch origin
git checkout -b feature/salesforce-extended origin/feature/salesforce-extended

This will pull the code from the specific repo.

Run the following commands next:

lerna bootstrap --hoist
npm run build
npm run start

I hope this helps :slight_smile:

Thank you so very much Harshil

I work as remote new SF admin. my org is based in Malaysia, I have been given access to n8n to do automation and it is first time in my life i am doing an integration.that why I assumed it is cloud version.
This part of downloading is confusing (you need to have Node.js, lerna, and git installed on your machine. You can check the instructions and the links for installing these softwares here: [Creating your first node | Docs]) Do i need to write any commands or code to install the above… Do i use Cmd.exe …

Thanks again for your help

regards

jaison

Hi Harshil,
I am getting these errors …

C:\Users\dudu\n8n>lerna bootstrap --hoist
‘lerna’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dudu\n8n>npm run build

[email protected] build C:\Users\dudu\n8n
lerna exec npm run build

‘lerna’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: lerna exec npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dudu\AppData\Roaming\npm-cache_logs\2021-05-17T17_43_18_643Z-debug.log

C:\Users\dudu\n8n>npm run start

[email protected] start C:\Users\dudu\n8n
run-script-os

‘run-script-os’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: run-script-os
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dudu\AppData\Roaming\npm-cache_logs\2021-05-17T17_44_00_521Z-debug.log

C:\Users\dudu\n8n>git clone https://github.com/n8n-io/n8n.git

Looks like you do not have lerna installed.

You can do that with: npm install -g lerna

Thanks i will try that again… I thought i did install ’ global lerna’

Hi Jan,
After installing npm install - g lerna.
I ran the below commands and still throwing errors

C:\Users\dudu\n8n>lerna bootstrap --hoist
info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 6 packages
lerna WARN EHOIST_PKG_VERSION "n8n" package depends on @types/[email protected], which differs from the hoisted @types/[email protected]^14.14.40.
lerna WARN EHOIST_PKG_VERSION "n8n-editor-ui" package depends on [email protected]^8.1.0, which differs from the hoisted [email protected]^3.4.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on @types/[email protected]^0.1.0, which differs from the hoisted @types/[email protected]^0.2.0.
lerna WARN EHOIST_PKG_VERSION "n8n-node-dev" package depends on [email protected]^2.0.2, which differs from the hoisted [email protected]^3.0.2.
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! npm install exited 1 in 'n8n'
lerna ERR! npm install stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   [email protected]"^6.8.0" from the root project
npm ERR!   peer [email protected]">=6.2.2" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     @vue/[email protected]"^5.0.1" from the root project
npm ERR!   2 more (eslint-plugin-import, eslint-plugin-node)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^7.0.0" from [email protected]
npm ERR! node_modules/eslint-plugin-promise
npm ERR!   peer [email protected]">= 4.2.1" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     @vue/[email protected]"^5.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\dudu\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dudu\AppData\Local\npm-cache\_logs\2021-05-17T19_28_26_317Z-debug.log

lerna ERR! npm install exited 1 in 'n8n'

C:\Users\dudu\n8n>npm run build

> [email protected] build C:\Users\dudu\n8n
> lerna exec npm run build

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"

> [email protected] build
> tsc


> [email protected] build
> tsc

commands/build.ts:3:8 - error TS2307: Cannot find module 'n8n-core' or its corresponding type declarations.

3 } from "n8n-core";
         ~~~~~~~~~~

commands/build.ts:4:32 - error TS2307: Cannot find module '@oclif/command' or its corresponding type declarations.

4 import { Command, flags } from '@oclif/command';
                                 ~~~~~~~~~~~~~~~~

commands/build.ts:32:26 - error TS2339: Property 'parse' does not exist on type 'Build'.

32   const { flags } = this.parse(Build);
                            ~~~~~

commands/build.ts:34:8 - error TS2339: Property 'log' does not exist on type 'Build'.

34   this.log('\nBuild credentials and nodes');
          ~~~

commands/build.ts:35:8 - error TS2339: Property 'log' does not exist on type 'Build'.

35   this.log('=========================');
          ~~~

commands/build.ts:49:9 - error TS2339: Property 'log' does not exist on type 'Build'.

49    this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`);
           ~~~

commands/build.ts:52:9 - error TS2339: Property 'log' does not exist on type 'Build'.

52    this.log(`\nGOT ERROR: "${error.message}"`);
           ~~~

commands/build.ts:53:9 - error TS2339: Property 'log' does not exist on type 'Build'.

53    this.log('====================================');
           ~~~

commands/build.ts:54:9 - error TS2339: Property 'log' does not exist on type 'Build'.

54    this.log(error.stack);
           ~~~

commands/new.ts:1:29 - error TS2307: Cannot find module 'change-case' or its corresponding type declarations.

1 import * as changeCase from 'change-case';
                              ~~~~~~~~~~~~~

commands/new.ts:3:27 - error TS7016: Could not find a declaration file for module 'inquirer'. 'C:/Users/dudu/n8n/node_modules/inquirer/lib/inquirer.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/inquirer` if it exists or add a new declaration (.d.ts) file containing `declare module 'inquirer';`

3 import * as inquirer from 'inquirer';
                            ~~~~~~~~~~

commands/new.ts:4:25 - error TS2307: Cannot find module '@oclif/command' or its corresponding type declarations.

4 import { Command } from '@oclif/command';
                          ~~~~~~~~~~~~~~~~

commands/new.ts:24:9 - error TS2339: Property 'log' does not exist on type 'New'.

24    this.log('\nCreate new credentials/node');
           ~~~

commands/new.ts:25:9 - error TS2339: Property 'log' does not exist on type 'New'.

25    this.log('=========================');
           ~~~

commands/new.ts:132:11 - error TS2339: Property 'log' does not exist on type 'New'.

132      this.log('\nNode creation got canceled!');
              ~~~

commands/new.ts:150:9 - error TS2339: Property 'log' does not exist on type 'New'.

150    this.log('\nExecution was successfull:');
            ~~~

commands/new.ts:151:9 - error TS2339: Property 'log' does not exist on type 'New'.

151    this.log('====================================');
            ~~~

commands/new.ts:153:9 - error TS2339: Property 'log' does not exist on type 'New'.

153    this.log('Node got created: ' + destinationFilePath);
            ~~~

commands/new.ts:155:9 - error TS2339: Property 'log' does not exist on type 'New'.

155    this.log(`\nGOT ERROR: "${error.message}"`);
            ~~~

commands/new.ts:156:9 - error TS2339: Property 'log' does not exist on type 'New'.

156    this.log('====================================');
            ~~~

commands/new.ts:157:9 - error TS2339: Property 'log' does not exist on type 'New'.

157    this.log(error.stack);
            ~~~

src/Build.ts:18:8 - error TS2307: Cannot find module 'n8n-core' or its corresponding type declarations.

18 } from 'n8n-core';
          ~~~~~~~~~~

src/Create.ts:3:51 - error TS2307: Cannot find module 'replace-in-file' or its corresponding type declarations.

3 import {replaceInFile, ReplaceInFileConfig } from 'replace-in-file';
                                                    ~~~~~~~~~~~~~~~~~


Found 23 errors.

lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna ERR! npm run build exited 2 in 'n8n-node-dev'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `lerna exec npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dudu\AppData\Roaming\npm-cache\_logs\2021-05-17T19_28_32_719Z-debug.log

C:\Users\dudu\n8n>cd n8n
  The file is in the program because:
    Entry point of type library 'jest' specified in compilerOptions

  tsconfig.json:9:4
    9    "jest"
         ~~~~~~
    File is entry point of type library specified here.


Found 1 error.

Any suggestion to rectify those errors?

Then actually the same questions as here:

What Node.js version do you use? If it is anything except v14 you should try with that one. Also important to use npm version 6 (version 7 messes stuff up at least on Linux very bad).

Node.js is v14.17 and I am not sure what version is npm ? trying to figure out what version is npm

Latest LTS Version: 14.17.0 (includes npm 6.14.13)
This is what i have been using

Sorry, then I am out of ideas.

You have exactly the same problem as described here:

and exactly the same problem I had last week when I was using [email protected]
The problems disappeared for both of us as soon as we used [email protected] So if you have the same problem also with [email protected] that is very confusing (as it is only a known issue for that external package that n8n uses with [email protected]).

The only other thing I can advise then is to create a development environment in Docker with Ubuntu where it runs for sure. Sorry.

Thanks Jan,

hmmm … How do I create a development environment in Docker with ubuntu?.. Can a non developer do it without any prior knowledge. Any simple and clear documentation to do this task…

Regards