Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to create or update the document header.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Create header function creates or updates the header section of a Google Docs document. The header appears at the top of every page.
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | Google Docs document ID |
| Section index | No | Number | 0 | Section index (0 for default section) |
| Variable | Yes | Text | - | Variable to store the header ID |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object containing headerId for subsequent text insertion |
Errors
- Document not found – the document ID is invalid or you lack access
Tips
- After creating the header, use Insert text with the header segment ID to add content
- Different sections can have different headers
Related functions
- Create footer – Create a document footer
- Insert text – Add text to the header