Enable the NetSuite App
Apps
in Cobalt and search for Netsuite and enable the app by clicking on the Go Live
button in the top right corner.Create a Linked Account
Param | Required | Type | Description |
---|---|---|---|
linked_account_id | Mandatory | String | Unique customer identifier |
name | Optional | String | Name of the customer |
Generate Session Token for your Linked Account
Open Hosted Portal Auth Flow
Authenticate Using Hosted Portal
Workflows
and create a new workflow by clicking on +Add Workflow
button and name it as Sync Contacts
.
Data Import from NetSuite
Add Trigger in Start Node
Start Node
, select your native app option and click on + Create New Event
.Add NetSuite Node
Nodes
option in the top right and drag the NetSuite Node from Native Apps section to the workflow builder. Connect this node with Start Node and select Get Contact
action in the node.Add Loop node
Setup Loop Node
Array Iteration
as action and provide the array of IDs that you received from the NetSuite node.Get Contact by ID
action where you provide a dynamic id based on array item by templating {{node.<Loop_node_no.>.body.array_item.id}}
.Table Node addition
Add Table Record
to create new rows of data in it.Create Table
, which you will then use inside Loop.Fetch all records
Get Table Records
action and provide the ID of the table where you added records.Mapping Contact fields
+ Map Fields
under Input Parameters, add key name as contacts
and in value we will provide the response received through Table node which will be restructured.In Value
, select Nodes tab under Insert Variable and click on +
of the Table Node where you fetched all records.API Proxy in Workflow
Developer
> API Proxies
and click on New Action
. Configure an API endpoint, where you want to receive the response.If you want to test, go to webhook.site and copy Your unique URL
and configure this as a POST Request and Save
.Use API Proxy in Workflow
Save
.Workflows
and create a new workflow by clicking on +Add Workflow
button and name it as Create New Contact
.
Push Data to NetSuite
Add Trigger in Start Node
Start Node
, select your native app option and click on + Create New Event
.Add NetSuite Node
Nodes
option in the top right and drag the NetSuite Node from Native Apps section to the workflow builder. Connect this node with Start Node.Add Action in node
Create Contact
action.
To provide the data in all the fields from your Event payload, just click on a field and from the Event tab under Insert Variable, select the fields from the body that you sent as payload.Create Config for Linked Account
Application Slug
and linked_account_id
as mandatory fields for it. You can request in the following way:Enable Workflow
Third Step