Skip to main content
Skip table of contents

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)

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

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

If this problem persists, please contact our support.