Global API

Quick Start Guide

2min

Use Case: When I change the name on the Salesforce Account I also want that to change the company name on the Breadwinner Company record and on the customer record in NetSuite

This can be done by creating a trigger to update the Customer record in NetSuite any time the Account Name changes on the Salesforce Account

Account with NetSuite Companies (Customers / Vendors)
Account with NetSuite Companies (Customers / Vendors)


The below code was created using our Apex Generator and then modified slightly to fit our use case.

Create an apex class to fill in the JSON request needed to update the NetSuite Customer record.

Apex Class


Next: create a trigger to run the above method only if the account name has changed.

Updated Trigger




Now when I change Eastern Mills Corp on the Salesforce Account

Document image


to Eastern Mills Enterprises and click 'Save', the change happens in all 3 places.

Document image




Updated 03 Mar 2023
Doc contributor
Doc contributor
Did this page help you?