Newer Version Available
Create Service Document Actions
Create service documents from work orders, work order line items, or service
appointments.
This object is available in API version 60.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v60.0/actions/standard/createServiceDocument
- Formats
- JSON
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| recordId |
|
| templateId |
|
| locale |
|
| title |
|
| documentType |
|
| pdfReportId |
|
Outputs
| Inputs | Details |
|---|---|
| pdfReportId |
|
Usage
- Sample Input
-
The following code sample generates a PDF of a service document with a specific recordId and templateId:
1{ 2 3 "inputs":[ 4 5 { 6 7 "recordId": "08pOG00000023anYAA", 8 9 "templateId": "0M0OG0000005Na40AE", 10 11 "locale": "en_US", 12 13 "title": "My Awesome PDF" 14 15 } 16 17 ] 18 19}