Happy Business Starts Here

Support SME

How to use ProductSyncUtil to trigger product sync from Salesforce to Zuora?

How to use ProductSyncUtil to trigger product sync from Salesforce to Zuora?






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Support SME

Re: How to use ProductSyncUtil to trigger product sync from Salesforce to Zuora?

The ProductSyncUtil class contains global methods for programmatically triggering product synchronization and cleanups from Salesforce to Zuora.

 

Please fine below sample code for using ProductSyncUtil class:

List<Id> productIds = new List<Id> {'01t0Y000009Lc31QAC'};

zqu.ProductSyncUtil util = new zqu.ProductSyncUtil();

util.setSObjectType('Product2');

Id[] historyIds = util.syncProducts(productIds);

 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

1 REPLY 1
Highlighted
Support SME

Re: How to use ProductSyncUtil to trigger product sync from Salesforce to Zuora?

The ProductSyncUtil class contains global methods for programmatically triggering product synchronization and cleanups from Salesforce to Zuora.

 

Please fine below sample code for using ProductSyncUtil class:

List<Id> productIds = new List<Id> {'01t0Y000009Lc31QAC'};

zqu.ProductSyncUtil util = new zqu.ProductSyncUtil();

util.setSObjectType('Product2');

Id[] historyIds = util.syncProducts(productIds);

 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post