Skip to main content
Skip table of contents

getAllRequestsByParentId

Description: Fetches all requests linked to a specific parent record.

Parameters:

  • sampleParentId: ID of the related parent record.

  • relationshipName: Name of the related parent object. Returns: List of matching DocuFetchRequestInfo objects.

JAVA
// 2. Get All Requests by Parent Object
Id sampleParentId = '001XXXXXXXXXXXXXXX'; // e.g. Account or Case ID
String relationshipName = 'Your_Relationship__r'; // e.g. cg__Account__r
List<cg.DocuFetchRequestInfo> requestsByParent = cg.DocuFetchTools.getAllRequestsByParentId(sampleParentId, relationshipName);
System.debug('Requests by Parent: ' + requestsByParent);

JavaScript errors detected

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

If this problem persists, please contact our support.