Why am I encountering a status 500 error while creating a 'New Record' trigger in Salesforce integration?

This topic was automatically generated from Slack. You can find the original thread here.

Hi, I’m running into a status 500 using the sales force integration - while creating a New Record (Instant, of Selectable Type) trigger:

Repro steps:

Create a new workflow → create new SFDC Trigger → New Record (Instant, of Selectable Type)
→ Pick a Object Type → Set a new name → Get the error below

Error: Request failed with status code 500
at createError (webpack://salesforceWebhooks/node_modules/axios/lib/core/createError.js:16:15)
at settle (webpack://salesforceWebhooks/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.<anonymous> (webpack://salesforceWebhooks/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Hi , are you running this in your sandbox or production Salesforce account?

running it my production salesforce account

any updates here?

Hi , sorry, I missed your response

According to this thread, the Salesforce instant triggers are not able to deploy Apex code directly to production (this is the code that powers our webhooks)

So currently the only way is to use the polling trigger (New Record (of Selectable Type))

Could you try using that one instead?