Salesforce response_payload returns success: false in Bot Despite Successful Approval, using OOB api endpoint - /services/data/v67.0/process/approvals
Salesforce Approval Succeeds, but Bot Receives success: false
I’m working on a bot integration with Salesforce to allow users to approve or reject JCO requests directly from the bot.
The overall flow is:
Bot → HTTP Action → Salesforce → Approval/Rejection → Response back to Bot
The interesting part is that the approval/rejection itself is working correctly. The action is successfully processed and the status is properly logged in Salesforce.
However, when the same action is executed from the bot, the response captured by the bot shows:
success: falseThis creates a problem because the bot uses the Salesforce response to determine the message shown to the user. As a result, the bot indicates that the action was unsuccessful, even though Salesforce has actually processed the approval/rejection successfully.
What makes this more interesting is that when I test the same HTTP Action directly, using the same type of request, Salesforce returns:
success: trueSo the behavior looks something like this:
HTTP Action Test
→ Salesforce processes request successfully
→ success: true
Bot Execution
→ Salesforce processes request successfully
→ success: false
The actual Salesforce record is updated correctly in both cases, but the response received by the bot is different.
Has anyone experienced a similar difference between testing an HTTP Action directly and executing it through the bot?