updateRequestItem
This method is used to update an Item on a DocuFetch Request.
Returns: Updated cg.DocuFetchRequestItemInfo
.
cg.DocuFetchRequestItemInfo updateRequestItem (cg.DocuFetchRequestItemInfo requestItemInfo)
// Update Request Item
Id sampleRequestItemId = 'a1bXXXXXXXXXXXXXXX'; // e.g. DocuFetch request item ID
cg.DocuFetchRequestItemInfo item = cg.DocuFetchTools.getRequestItem(sampleRequestItemId);
item.name = 'Updated ' + item.name;
item = cg.DocuFetchTools.updateRequestItem(item);
if(item.result){
System.debug('Update request item succeeds: ' + item);
}
else {
System.debug('Update request item fails: ' + item.message);
}