Global API

Apex Generator

3min

Generating Apex for Global API automatically

Apex is used for direct interaction with the Breadwinner Global API. Generally the domain of Salesforce Developers, apex can be daunting. Using the Apex Generator however, you can take a declarative approach to generating apex classes and test classes. These are considered the worker classes, which extend API functionality as invokable and exposes them to Salesforce Flows. The concept is to utilize Flow to automate your complex business logic, and apex with Global API will process the desired requests.

Apex Generator can be found on the Breadwinner for Netsuite setup page.

Document image


Choose which object and what function you'd like to call

Document image


Choose How you will run the apex class

Document image


Select the fields you would like to support

Document image


Click Generate Apex.. and your class and test classes are built.

Document image


You are now able to copy the Class code and create the class in Salesforce (sandbox). Create the Test Class and you should be able to then deploy the Class code to Salesforce production.

With the generate code, you now have a great starting point from which to create further Apex automation. With invokable class methods, you are also able to utilize them in Salesforce Flow, giving you the ability to tackle even deeper integration between Salesforce and NetSuite.