Skip to main content
Skip table of contents

updateRequestItem

This method is used to update an Item on a DocuFetch Request.

Returns: Updated cg.DocuFetchRequestItemInfo.

cg.DocuFetchRequestItemInfo updateRequestItem (cg.DocuFetchRequestItemInfo requestItemInfo)

JAVA
// 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);
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.