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

Wrong lead type created in Salesforce #12917

Open
RichardRuben opened this issue Jan 29, 2025 · 1 comment
Open

Wrong lead type created in Salesforce #12917

RichardRuben opened this issue Jan 29, 2025 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@RichardRuben
Copy link

Describe the problem/error/question

I have an automation creating leads in Salesforce based on an incoming email. We generally have 2 different types of leads/accounts. Person Accounts and Company Accounts. We do create a "person" lead and the lead is being created correctly. But when we want to convert this lead it is trying to create a "Company" Account and this cannot be changed. How do I create the "correct" lead, so I can also convert this customer successfully.

What is the error message (if any)?

Please share your workflow/screenshots/recording

https://kitchenadvisor-content.s3.eu-central-1.amazonaws.com/Bildschirmfoto+2025-01-29+um+12.32.10.png

{
"nodes": [
{
"parameters": {
"company": "none",
"lastname": "={{ $json.Nachname }}",
"additionalFields": {
"customFieldsUi": {
"customFieldsValues": [
{
"fieldId": "UTM_Source__c",
"value": "deinkuechenplaner"
},
{
"fieldId": "Comment__c"
}
]
},
"email": "={{ $json.Email }}",
"firstname": "={{ $json.Vorname }}",
"phone": "={{ $json.Telefonnummer }}",
"postalCode": "={{ $json.Postleitzahl }}",
"recordTypeId": "0120O000000BtNQQA0"
}
},
"type": "n8n-nodes-base.salesforce",
"typeVersion": 1,
"position": [
380,
40
],
"id": "9ba27fa7-64d9-47e9-ac39-22acdce78316",
"name": "Salesforce",
"credentials": {
"salesforceOAuth2Api": {
"id": "EudsCNQdWdd9JF6K",
"name": "Salesforce account"
}
}
}
],
"connections": {},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "39af761b47f6bd350727886dcabfdb93e6845aaf887471e1c504ca87c84df88d"
}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Debug info

core

  • n8nVersion: 1.74.3
  • platform: npm
  • nodeJsVersion: 20.18.1
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: community

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/131.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-01-29T11:25:03.718Z}

@Joffcom
Copy link
Member

Joffcom commented Jan 29, 2025

Hey @RichardRuben,

We have created an internal ticket to look into this which we will be tracking as "GHC-655"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants