# SDK Quick Testing

This article is intended to share quick examples to test from the developer’s console.

## S-Docs

Combine All Documents

```apex
SDOC__SDTemplate__c template = [SELECT Id FROM SDOC__SDTemplate__c WHERE Name = 'Opportunity Template'];
Set<Id> templates = new Set<Id>{
    template.Id
};
List<Opportunity> opps = [SELECT Id FROM Opportunity LIMIT 20];
List<Id> objs = new List<Id>();
for (Opportunity opp : opps) {
    objs.add(opp.Id);
}
SDOC.CombinedDocumentHandler handler = new SDOC.CombinedDocumentHandler();
handler.fileName = 'YOUR_FILE_NAME'; // No extension
List<SDOC.BatchAction> handlers = new List<SDOC.BatchAction>{
    handler
};
Id asyncId = SDOC.DocumentSDK.generateDocsInBatch(objs, templates, 2, handlers);
```

## S-Sign

## Related articles


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sdocs.com/developer-hub/document-generation-workflows/apex-and-programmatic-automation/software-development-kit/sdk-code-snippets-and-boilerplates/sdk-quick-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
