Can't create product2 record in SF table

Hi,

I am using N8N cloud, 1.46.0.

I have built a Salesforce integration with an ERP system 1 year ago, it works well.

Today I will like to add a few JSON records to Product2 table, there is no community node for this table so I am using a regular POST web request but it seems like nothing is created and the node output displays recent items and object describe with no error.

Here is the url: https://XXXX.lightning.force.com/services/data/v52.0/sobjects/Product2/
Sending simply JSON body with IsActive field = true, then I do a GET Product2 records but no records have been created …

I might share a bit more in DM…

Any help?

Thanks a lot
Antoine

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @lequeuxa it would be great if you could share with us a bit more detail about your workflow, especially the HTTP request node by copy & pasting the JSON content in between two block quotes (```)?

Just sent it in DM, thanks

1 Like

Hi @aya

Did you get the chance to have a look at my DM ?

I don’t know why this post request does not work:

Thanks a lot,
Antoine

Hi @lequeuxa, I don’t have a Salesforce account I can test this on so it’s hard for me to say what the issue here is. Have you managed to make the same post request without using n8n? If so, could you share that with us so we can maybe figure out what that would look like in n8n? Do you have all the required body parameters or header parameters?

Hi,

Thanks for your answer.

Oh okok, I wonder if someone who helped me previously here could troubleshoot this.

I did not manage to make the same post request without using N8N following authentification issues when trying to connect outside of N8N.

I use all the required body/header parameters, I can update (patch) or get all records from this table but can’t create any, this is why I believe there is something wrong.

Thanks a lot for following my case.
Antoine

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.