Sitemap

Sunday, April 5, 2015

UCM: Delete a folder and all the contents inside it

Use COLLECTION_DELETE_LOT service.
NOTE: This service works for Folders_G and not for Framework Folders component.

DataBinder serviceBinder = idcClient.createBinder();

serviceBinder.putLocal("IdcService", "COLLECTION_DELETE_LOT");
serviceBinder.putLocal("collectionselect0", "true");
serviceBinder.putLocal("fromCollectionisLink0", "0");
serviceBinder.putLocal("fromdCollectionID0", "814720879757000011");//child folder which we want to delete
serviceBinder.putLocal("fromhasCollectionID0", "1");

ServiceResponse response = idcClient.sendRequest(userContext, serviceBinder);
DataBinder responseBinder = response.getResponseAsBinder();

No comments:

Post a Comment