TASK_APPEND appends the contents from a source file to an output file directly from your Google Sheet. It automatically detects the file type and converts Google Docs to Markdown when needed, eliminating manual copying and pasting.
=TASK_APPEND(input_file_cell, output_file_cell)
Parameter | Data Type | Required | Description |
---|---|---|---|
input_file_cell |
|
Required | The cell reference (in quotes) that contains the hyperlink to the input file. For example:
|
output_file_cell |
|
Required | The cell reference (in quotes) that contains the hyperlink to the output file. For example:
|
When the input file URL contains
docs.google.com/document
For plain text files, the content is handled as raw text.
If a new Google Doc is created during the operation, TASK_APPEND automatically updates the output cellโs hyperlink to point to the newly updated document.
"A1"
"B1"
=TASK_APPEND("A1", "B1")
"D1"
"E1"
=TASK_APPEND("D1", "E1")
Ensure that the cell provided to TASK_APPEND contains a valid file hyperlink. Re-copy the shareable file link if necessary.
Double-check that both the input and output cell references are provided as strings in quotes. Verify that there are no extra characters or spacing issues in your function call.
Review the sharing settings of your files. Both files should be accessible (typically โAnyone with the link can viewโ) so that the add-on can read and update the content.
Confirm that the URL includes
docs.google.com/document
If the output file (especially a Google Doc) is not updated, try re-running the function or checking that no conflicting data validation rules are applied to the output cell.
TASK_APPEND supports both Google Docs and plain text files. It converts Google Docs to Markdown and handles plain text files as raw text.
Yes. Both the source and destination files must be shared appropriately (e.g., โAnyone with the link can viewโ) for the add-on to retrieve and update their content.
In that case, the add-on converts its content to Markdown, appends the new content, creates a new Google Doc with the combined text, and updates the output cellโs hyperlink with the new document link.
Yes. When working with plain text files, TASK_APPEND simply appends the new text to the destination file.
A confirmation message will appear after running the function, such as โAppended content to text file. File updated successfully.โ The output cellโs hyperlink will also update to reflect the new or updated file.
1 month ago