Global API
Requests

Initiate Regular Sync

1min
the following is an example to initiate the regular sync for a custom object integrated with breadwinner the netsuite custom object id (internalid) is required to run the regular sync request map\<string, object> requestjsonmap = new map\<string, object>(); requestjsonmap put('objects', new list\<object>{17}); string reqjson = json serialize(requestjsonmap); map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'initiateregularsync'); reqobj put('requestjson', reqjson); // place a request to breadwinner global api map\<string, object> resp = breadwinner ns breadwinnernetsuiteapi call(reqobj); system debug(resp); response { action=initiateregularsync, responsejson={ "errors" \[], "status" "200" }, timestamp=1682321285974, validrequest=true, version=1 0 } limits currently, this action is supported for custom objects only this api call can be executed for only one custom object at a time if multiple custom objects are required, use an apex chain to process each separately disablebreadwinnersync if it is checked on the netsuite object record then breadwinner will stop the regular sync for that object but using this initiate regular sync action, breadwinner can allow regular sync for that specified custom object