updateRequestItems
This method is used to update multiple Items on a DocuFetch Request
Returns: List of updated cg.DocuFetchRequestItemInfo
.
List<cg.DocuFetchRequestItemInfo> updateRequestItems (List<cg.DocuFetchRequestItemInfo> requestItemInfoList)
// Update Multiple Request Items
List<cg.DocuFetchRequestItemInfo> allItemsList = cg.DocuFetchTools.getAllRequestItems();
for(cg.DocuFetchRequestItemInfo item: allItemsList){
item.name = 'Updated ' + item.name;
// or update any other fields
}
allItemsList = cg.DocuFetchTools.updateRequestItems(allItemsList);
for(DocuFetchRequestItemInfo item: allItemsList){
if(item.result){
System.debug('Item update succeeds: ' + item);
}
else {
System.debug('Item update fails: ' + item.message);
}
}