Approve NetSuite orders and update Salesforce opportunities

Social, UtilitiesERPCRMMarketingSales

What it does

When someone runs an approval command in Slack, this automation retrieves the NetSuite sales order and Salesforce opportunity. It updates both records based on the approval decision.

Who it's for

Sales operations teams who need to approve orders and sync the decision across NetSuite and Salesforce from Slack.

How teams use this

Approve orders without leaving Slack

Run the approval command to retrieve both the NetSuite order and Salesforce opportunity, approve or reject from the thread, and both systems update instantly. The team stays in Slack and nothing else changes.

Route approvals to different teams

Send the approval command to a dedicated approvals channel instead of the sales channel so finance or leadership can review orders before they sync. This automation stays the same and only the channel audience changes.

Add approval notes to both systems

Include a notes field in the approval command so the approver can add context, and store those notes in both the Salesforce opportunity description and NetSuite sales order memo.

Notify teams when orders are rejected

When an order is rejected, send a separate Slack message to the sales team with the reason so they know to follow up.

How it works

  1. Request approval in Slack. Run the approval command in Slack with the sales order details so someone can approve or reject the order from the conversation.
  2. Retrieve the NetSuite sales order. Search NetSuite for the sales order using the internal ID to get the current order information and details.
  3. Retrieve the Salesforce opportunity. Search Salesforce for the opportunity linked to the NetSuite sales order using the external ID to match both records.
  4. Update records based on approval. Mark the Salesforce opportunity as approved or rejected in the description, and update the NetSuite sales order status to match the decision.
  5. Reply with the outcome. Post a message in Slack confirming whether the order was approved or rejected so the channel sees the final status.