Happy Business Starts Here

Product Catalog On Demand Sync

Highlighted
Community Manager

Product Catalog On Demand Sync

See Reply



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Product Catalog On Demand Sync

Question or Problem Statement:
I want to do a Product Catalog on-demand sync rather than a full sync.

Solution:
1) From Zuora UI, copy the product ID which you wanted to sync over.

2) Copy the code below, then open SFDC Developer Console > Debug > Open Execute Anonymous Window > paste the above code > Excute
Zuora.OnDemandSyncManager syncManager = new Zuora.OnDemandSyncManager();
syncManager.syncZuoraObjectIdSet = new Set<String>{ 'Please fill in the Product Catlelog ID' };
syncManager.syncObjectType = Zuora.OnDemandSyncManager.ObjectType.ZProduct;
List<Zuora.SyncResult> syncResults = syncManager.sendRequest();
System.debug( 'Sync results = ' + syncResults );

For example,
Zuora.OnDemandSyncManager syncManager = new Zuora.OnDemandSyncManager();
syncManager.syncZuoraObjectIdSet = new Set<String>{ '2c92c0f94983d1d501498422d81f2d38' };
syncManager.syncObjectType = Zuora.OnDemandSyncManager.ObjectType.ZProduct;
List<Zuora.SyncResult> syncResults = syncManager.sendRequest();
System.debug( 'Sync results = ' + syncResults );

Supporting References:
https://knowledgecenter.zuora.com/CA_Commerce/E_Development_Resources/C_Component_Library/G_Componen...



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

View solution in original post

1 REPLY 1
Highlighted
Community Manager

Re: Product Catalog On Demand Sync

Question or Problem Statement:
I want to do a Product Catalog on-demand sync rather than a full sync.

Solution:
1) From Zuora UI, copy the product ID which you wanted to sync over.

2) Copy the code below, then open SFDC Developer Console > Debug > Open Execute Anonymous Window > paste the above code > Excute
Zuora.OnDemandSyncManager syncManager = new Zuora.OnDemandSyncManager();
syncManager.syncZuoraObjectIdSet = new Set<String>{ 'Please fill in the Product Catlelog ID' };
syncManager.syncObjectType = Zuora.OnDemandSyncManager.ObjectType.ZProduct;
List<Zuora.SyncResult> syncResults = syncManager.sendRequest();
System.debug( 'Sync results = ' + syncResults );

For example,
Zuora.OnDemandSyncManager syncManager = new Zuora.OnDemandSyncManager();
syncManager.syncZuoraObjectIdSet = new Set<String>{ '2c92c0f94983d1d501498422d81f2d38' };
syncManager.syncObjectType = Zuora.OnDemandSyncManager.ObjectType.ZProduct;
List<Zuora.SyncResult> syncResults = syncManager.sendRequest();
System.debug( 'Sync results = ' + syncResults );

Supporting References:
https://knowledgecenter.zuora.com/CA_Commerce/E_Development_Resources/C_Component_Library/G_Componen...



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

View solution in original post