Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Salesforce Trigger Node #8920

Conversation

bramkn
Copy link
Contributor

@bramkn bramkn commented Mar 19, 2024

Summary

Adds a Trigger node for Salesforce API

Related tickets and issues

Linear: https://linear.app/n8n/issue/NODE-1233/salesforce-trigger-node-new-node

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request node/new Creation of an entirely new node labels Mar 19, 2024
michael-radency
michael-radency previously approved these changes Apr 2, 2024
Copy link
Contributor

@michael-radency michael-radency left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment on lines +192 to +193
let triggerResource = triggerOn.slice(0, 1).toUpperCase() + triggerOn.slice(1, -7);
const changeType = triggerOn.slice(-7);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:
Why not to use something like 'Account_Created' and const [resource, change] = triggerOn.split('_')
that way we would not have magical values like -7 and avoid some unnecessary calculation to capitalize word

@michael-radency michael-radency merged commit 571b613 into n8n-io:master Apr 3, 2024
8 checks passed
@github-actions github-actions bot mentioned this pull request Apr 3, 2024
@janober
Copy link
Member

janober commented Apr 3, 2024

Got released with n8n@1.36.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member node/improvement New feature or request node/new Creation of an entirely new node Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants