All Collections
Wrk Action Library
Google Docs
Retrieve text from Google Docs
Retrieve text from Google Docs
Bassem Khalifa avatar
Written by Bassem Khalifa
Updated over a week ago

Retrieve text from a Google document using one of these methods:

  • Retrieve text between the specified header and the next header of the same type

  • Retrieve text between the specified header and the next header of any type

Application

  • Google Docs

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Document link

Link

Yes

Retrieval method

Choose whether to return text from one heading type to the next heading of the same type, or text under a specific heading.

Pre-defined choice list

Yes

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

To use this Wrk Action you will need to create "Field(s) to capture" that match the text of the headers you wish to capture information from in your Google Doc. Once stated the Wrk Action will extract all text from below that header.

A header type can be any of the following: Normal text, title, subtitle, heading 1, heading 2, or heading 3
โ€‹
If you select "Retrieve text between the specified header and the next header of the same type", then the Wrk Action will extract all text below the identified header until it arrives at the next header of the same type. For Example: If you write the text of the title of the document as a Field to capture then the Wrk Action will capture all text between that title and the next title or the end of the document if there are no other titles. This option is great for capturing entire documents.

If you select "Retrieve text between the specified header and the next header of any type", then the Wrk Action will extract all text below the idenitified header until it arrives at the next header of any type. For Example: If you write the text of the title of the document as a Field to Capture then the Wrk Action will capture all text between that title and the first header in your document that is not "Normal text". This option is great for capturing a small specific section of text.

Outcomes

Name

Description

No Result

This status is selected in the event of the following scenarios:

  • The provided header name cannot be found

Impossible to Complete

This status is selected in the event of the following scenarios:

  • All outcomes specified in the Application background document.

Requirements

  • N/A

Did this answer your question?