---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/object-types](../index.md) / planObjectTypeSync

# Function: planObjectTypeSync()

> **planObjectTypeSync**(`client`, `extensions`): `Promise`\<[`ObjectTypeSyncPlan`](../interfaces/ObjectTypeSyncPlan.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/object-types/sync.ts:215](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/object-types/sync.ts#L215)

Compares desired object type definitions (for example from
`system-objecttype-extensions.xml`) with an instance and returns the
changes needed. The plan is additive: nothing is deleted or unassigned.

## Parameters

### client

[`ObjectTypesClient`](../classes/ObjectTypesClient.md)

### extensions

[`ObjectTypeExtension`](../interfaces/ObjectTypeExtension.md)[]

## Returns

`Promise`\<[`ObjectTypeSyncPlan`](../interfaces/ObjectTypeSyncPlan.md)\>
