---
title: Initiate Regular Sync
slug: netsuite/initiate-regular-sync
description: Learn how to initiate a regular sync for a custom object integrated with Breadwinner using the NetSuite Custom Object Id. This document includes example code and step-by-step instructions for making a request to the Breadwinner Global API. Discover limita
docTags: 
createdAt: 2023-04-24T06:56:03.000Z
---

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.

:::CodeblockTabs
Request

```apex
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

```json
{
    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.

