---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Microsoft Word connector methods

# Microsoft Word connector methods {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 19 minutes to read  
The Microsoft Word connector methods enable you to perform various
day-to-day tasks with Microsoft Word documents and automate them. For example, add a page
footer.

## Open {#connectors-msword-methods__section_ffv_1kz_hrb}

Opens a Microsoft Word file saved on the local disk.  
Note:  
You must execute this method before executing any other method on the Microsoft Word connector.
{#connectors-msword-methods__table_avb_nsh_ltb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Filepath | Specifies the path to the Microsoft Word file in the local disk. | Data in | String |
| Timeout | Specifies the time after which the operation times out. | Data in | Integer |
| Password | Use a password if the document is password protected. | Data in | String |
| Return | Returns the boolean value based on the outcome of the operation. If True, the file is opened. Else, if False, the file failed to open. | Data out | Boolean |
[Table 1. Open method parameters]

{#connectors-msword-methods__table_avb_nsh_ltb}

For details on the issues related to the Open method, see [KB article KB1123558](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1123558) and [KB article KB1123548](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1123548).

## AddFooter {#connectors-msword-methods__section_n4w_pg1_3rb}

Adds a footer to the Microsoft Word document in the specified font size.

To use this method, provide the text to be added to the Text parameter and the font size in which the footer text needs to be displayed to the FontSize parameter. Default value of the FontSize parameter is 12.  
Note:  
You must execute the Open method before executing this method.
{#connectors-msword-methods__table_pn2_gpw_xtb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Text | Specifies the text in the footer. | Data in | String |
| FontSize | Specifies the font size of the text in the footer. Default value is 12. | Data in | Integer |
[Table 2. AddFooter method parameters]

{#connectors-msword-methods__table_pn2_gpw_xtb}

To provide inputs, see [Configure port properties](https://www.servicenow.com/docs/ED3jBpqtlHH8p~yFFmyRBQ "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.")

## AddHeader {#connectors-msword-methods__section_snp_mxq_4rb}

Adds a header to a Microsoft Word document in specified font size.

To use this method, provide the text to be added to the Text parameter and the font size in which the header text needs to be displayed to the FontSize parameter. Default value of the FontSize parameter is 12.  
Note:  
You must execute the Open method before executing this method.
{#connectors-msword-methods__table_nly_xsw_xtb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Text | Specifies the text in the header. | Data in | String |
| FontSize | Specifies the font size of the text in the header. Default value is 12. | Data in | Integer |
[Table 3. AddHeader method parameters]

{#connectors-msword-methods__table_nly_xsw_xtb}

## CellCopy {#connectors-msword-methods__section_pfw_4lg_prb}

Copies the content of a table cell identified using the row index and column index of the table in a Microsoft Word document.

To use this method, provide the row index to the RowIndex parameter and column index to the ColumnIndex parameter. The default value for RowIndex and ColumnIndex is -1 each.  
Note:  
You must execute the SetTable method before executing this method.
{#connectors-msword-methods__table_ujg_qzf_qcd__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index of the row of the cell that needs to be copied. The row index value must be equal or greater than zero. Default value is -1, which means there is no cell available. | Data in | Integer |
| ColumnIndex | Index of the column of the cell that needs to be copied. The column index must be equal to or greater than zero. Default value is -1 which means there is no cell available. | Data in | Integer |
[Table 4. CellCopy method parameters]

{#connectors-msword-methods__table_ujg_qzf_qcd}

## CellPaste {#connectors-msword-methods__section_zcb_zlg_prb}

Pastes the copied table cell content into a table cell identified using the row index and column index of the table in a Microsoft Word document.

To use this method, provide the row index to the RowIndex parameter and column index to the ColumnIndex parameter. The default value for RowIndex and ColumnIndex is -1 each.  
Note:  
You must execute the SetTable and CellCopy methods before executing this method.
{#connectors-msword-methods__table_z5m_pfg_qcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index of the row of the cell to which data needs to be pasted. The row index value must be equal or greater than zero. Default value is -1, which means there is no row available to paste data. | Data in | Integer |
| ColumnIndex | Index of the column of the cell to which data needs to be pasted. The column index must be equal to or greater than zero. Default value is -1 which means there is no column available to paste data. | Data in | Integer |
[Table 5. CellPaste method parameters]

{#connectors-msword-methods__table_z5m_pfg_qcc}

## Close {#connectors-msword-methods__section_lzd_5rm_3rb}

Closes the last opened Microsoft Word document. While closing the document, it is optional to save changes.

If modification done to the word document needs to be saved then set the saveChanges boolean parameter to True, else set it to False. By default the saveChanges boolean parameter is set to True.  
Note:  
You must execute the Open method before executing this method.  
{#connectors-msword-methods__table_axk_3ww_xtb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| saveChanges | Specifies whether to save the changes made in the word document before closing. By default, it is set to True, meaning the changes will be saved before closing. If changes are not required to be saved before closing, set to False. | Data in | Boolean |
[Table 6. Close method parameters]

{#connectors-msword-methods__table_axk_3ww_xtb}

## DeleteColumn {#connectors-msword-methods__section_kbj_qlg_prb}

Deletes a column from a table based on a specified index value of the column in a Microsoft Word document.

To use this method, provide the index of the column that needs to be deleted to the ColumnIndex parameter. Default value is -1.  
Note:  
You must execute the SetTable method before executing this method.
{#connectors-msword-methods__table_rnh_2hg_qcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| ColumnIndex | Index of the column that needs to be deleted. The column index must be equal to or greater than zero. Default value is -1 which means there is no column available to be deleted. | Data in | Integer |
[Table 7. DeleteColumn method parameters]

{#connectors-msword-methods__table_rnh_2hg_qcc}

## DeletePage {#connectors-msword-methods__section_dxz_k1p_3rb}

Deletes a page based on a specified index value from a Microsoft Word document.

To use this method, provide the index value of the page that needs to be deleted to the PageIndex parameter.  
Note:  
You must execute the Open method before executing this method.  
{#connectors-msword-methods__table_zg5_tyw_xtb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| PageIndex | Specifies the index number of the page that needs to be removed or deleted. If you don't provide any index number, the method deletes the first page by default. | Data in | Integer |
[Table 8. DeletePage method parameters]

{#connectors-msword-methods__table_zg5_tyw_xtb}

## DeleteRow {#connectors-msword-methods__section_mbw_bst_4rb}

Deletes a row based on the specified index value from a table in a Microsoft Word document.

To use this method, provide the index of the row that needs to be deleted to the RowIndex parameter. Default value is -1.  
Note:  
You must execute the SetTable method before executing this method.
{#connectors-msword-methods__table_sln_1kg_qcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index of the row that needs to be deleted. The row index value must be equal or greater than zero. Default value is -1, which means there is no row available to be deleted. | Data in | Integer |
[Table 9. DeleteRow method parameters]

{#connectors-msword-methods__table_sln_1kg_qcc}

## DeleteTable {#connectors-msword-methods__section_r32_1rg_prb}

Deletes a table from a Microsoft Word
document.

If the document has multiple tables, the method deletes the first table in the
document.  
Note:  
You must execute the SetTable method before executing this method.

## ExportToPDF {#connectors-msword-methods__section_lpd_pnl_lrb}

Exports a Microsoft Word document to a PDF document at a specified path.  
To use this method, provide the path where the PDF file needs to be extracted to the Filepath parameter.  
Note:  
You must execute the Open method before executing this method.  
{#connectors-msword-methods__table_tb5_ywx_xtb__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Filepath | Specifies the folder path where the Word document is exported to PDF. | Data in | String |
[Table 10. ExportToPDF method parameters]

{#connectors-msword-methods__table_tb5_ywx_xtb}

## Find {#connectors-msword-methods__section_edx_xjp_3rb}

Finds the text you specify in a Microsoft Word document and returns a Boolean response.

To use this method, provide the text that you want to find in the document to the Text parameter.  
{#connectors-msword-methods__table_xxl_cc3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Text | Text to find in the Word document. | Data in | string |
| Return | Returns a true/false value indicating whether the text is found in the Word document. | Data out | Boolean |
[Table 11. Find method parameters]

{#connectors-msword-methods__table_xxl_cc3_rcc}

## GetCellValueByIndex {#connectors-msword-methods__section_wrj_h2m_jrb}

Returns the value of a cell in a table in a Microsoft Word document.  
To use this method, provide the index of the cell to retrieve the cell value to the CellIndex parameter.  
Note:  
You must execute the SetTable method before executing this method.  
{#connectors-msword-methods__table_jl1_hc3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| CellIndex | Index of a cell to retrieve the value. | Data in | String |
| Return | Returns the value present in the required cell. | Data out | String |
[Table 12. GetCellValueByIndex method parameters]

{#connectors-msword-methods__table_jl1_hc3_rcc}

## GetFooterText {#connectors-msword-methods__section_fhp_dgm_jrb}

Returns the footer text in a Microsoft Word document.  
Note:  
You must execute the Open method before executing this method.  
{#connectors-msword-methods__table_jxf_qg3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Return | Returns the footer text in the string format. | Data out | String |
[Table 13. GetFooterText method parameters]

{#connectors-msword-methods__table_jxf_qg3_rcc}

## GetHeaderText {#connectors-msword-methods__section_hwk_3lg_prb}

Returns the header text in a Microsoft Word document.  
Note:  
You must execute the Open method before executing this method.  
{#connectors-msword-methods__table_pbw_sg3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Return | Returns the header text in the string format. | Data out | String |
[Table 14. GetHeaderText method parameters]

{#connectors-msword-methods__table_pbw_sg3_rcc}

## GetPageCount {#connectors-msword-methods__section_bh1_3rg_prb}

Returns the total number of pages in a Microsoft Word document.  
{#connectors-msword-methods__table_ak4_1h3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Return | Returns the integer number or numeric value of the total pages in a Word document. | Data out | Integer |
[Table 15. GetPageCount method parameters]

{#connectors-msword-methods__table_ak4_1h3_rcc}

## GetRowIndexByValue {#connectors-msword-methods__section_e53_gl5_4rb}

Returns the row index value of a row based on the specified value of a cell in the row.  
To use this method, provide the document table to the Table parameter to retrieve the index of the row based on the value provided to the Value parameter.  
Note:  
You must execute the GetTable and SetTable methods before executing this method.  
{#connectors-msword-methods__table_sp3_ph3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Table | Table object in the word document as a reference to perform further actions on it. | Data in | Object |
| Value | Search text that corresponds to a certain row in the table. | Data in | String |
[Table 16. GetRowIndexByValue method parameters]

{#connectors-msword-methods__table_sp3_ph3_rcc}

## GetTable {#connectors-msword-methods__section_hrr_k33_prb}

Returns the data in a table of a Microsoft Word document as a table object
and data table. If the document contains multiple tables, you can specify the table index to
identify the table for the method. You can also specify the table type, if needed.

To use this method, provide the index of the expected table to the TableIndex parameter. Set the FirstRowIsHeader parameter to True if the first row needs to be treated as header, else it is set to False.  
Depending on the table structure, you can optionally configure the table type for the method. To configure the table, do the following steps.

1. Click the method settings icon (![Method settings icon.]()).
2. Select the table type.
3. Click OK.
{#connectors-msword-methods__ol_pkw_vsk_tsb}  
{#connectors-msword-methods__table_w45_xn3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
|   |   | Data in |   |
| TableIndex | Index of a table in a Microsoft Word document. | Data in | String |
| FirstRowIsHeader | Boolean value to indicate whether the method should treat the first row as a header of the table. By default, it is set to True, which means that the first row is considered as a header. If first row is not header, then set this parameter to False. | Data in | Boolean |
| Table | Returns the data in a table as an object. | Data out | Object |
| Data | Returns the data in the table. | Data out | Data |
[Table 17. GetTable method parameters]

{#connectors-msword-methods__table_w45_xn3_rcc}

## GetTableCellValues {#connectors-msword-methods__section_rlg_ygm_jrb}

Returns the values in one or more table cells.

To use this method, provide the indices of the table cells whose value is required, in the configuration window.  
To specify the number of cells, you must configure the index values of the cells. To configure, do the following.

1. Click the method settings icon (![Method settings icon.]()).
2. Click (![Click to add cell index icon.]()).
3. Enter the index values for the cells.
4. Repeat the steps to add more index values.
5. Click OK.
{#connectors-msword-methods__ol_yrw_5l5_4rb}

## GetTableCount {#connectors-msword-methods__section_j5h_lm5_4rb}

Returns the number of tables in a Microsoft Word document. You can optionally
specify the type of table for the method to identify.

Select the table type from the config window. If you expect to receive total number of tables in a word document, then the table type is set to 'Default'. If a count of nested tables within a cell in a table is expected then set
the table type to 'Nested'. Provide the index of table which has nested tables to the TableIndex parameter and table cell index from which count of nested tables is expected to CellIndex parameter.  
To configure the type of table, do the following steps.

1. Click the method settings icon (![Method settings icon.]()).
2. Select the table type.
3. Click OK.
{#connectors-msword-methods__ol_kkn_qvk_tsb}  
{#connectors-msword-methods__table_urb_ws3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Return | Returns the integer value of total number of tables in word document. | Data in | Integer |
[Table 18. GetTableCount method parameters]

{#connectors-msword-methods__table_urb_ws3_rcc}

## GetTableRowData {#connectors-msword-methods__section_z2y_vm5_4rb}

Returns the values in one or more cells of a row in a Microsoft Word document. You can specify the index values of the cells of the row.  
Note:  
You must execute the SetTable method before executing this method.  
You can configure the index values of the cells in a row. To configure, do the following steps.

1. Click the method settings icon (![Method settings icon.]()).
2. Click the add index value icon (![Add index value icon.]()).
3. Enter the index value of the cell.
4. Repeat the steps to add more index values.
5. Click OK.
{#connectors-msword-methods__ol_t1r_1ql_tsb}  
{#connectors-msword-methods__table_mkt_ws3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index of the row from which data needs to be retrieved. Default value is 0, meaning the data will be fetched from the first row. | Data in | Integer |
[Table 19. GetTableRowData method parameters]

{#connectors-msword-methods__table_mkt_ws3_rcc}

## GetText {#connectors-msword-methods__section_ldc_cn5_4rb}

Returns all the text content in a Microsoft Word document.  
{#connectors-msword-methods__table_olm_dyp_g5b__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Return | Returns the complete document's text in a string format. | Data Out | String |
[Table 20. GetText method parameters]

{#connectors-msword-methods__table_olm_dyp_g5b}

## InsertNewColumn {#connectors-msword-methods__section_lvc_yc5_jrb}

Inserts a new column in the first table in the document based on the specified index value.

To use this method, provide the index number at which a new column needs to be inserted to the ColumnIndex parameter. Default value is -1, which means that a column is inserted before the first column.  
{#connectors-msword-methods__table_p2n_n53_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| ColumnIndex | Index at which new column must be inserted. Default value is -1, which means there are no columns in the table. | Data in | Integer |
[Table 21. InsertNewColumn method parameters]

{#connectors-msword-methods__table_p2n_n53_rcc}

## InsertNewRow {#connectors-msword-methods__section_j2j_wc5_jrb}

Inserts a new row based on the index value.

To use this method, provide the index number at which a new row needs to be inserted to the RowIndex parameter. Default value is -1, which means a row is inserted before the first row.  
{#connectors-msword-methods__table_xll_hv3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index at which new row must be inserted. Default value is -1, which means there are no rows in the table. | Data in | Integer |
[Table 22. InsertNewRow method parameters]

{#connectors-msword-methods__table_xll_hv3_rcc}

## InsertPicture {#connectors-msword-methods__section_zym_1ql_lrb}

Inserts an image into Microsoft Word document from the file path provided at a particular bookmark.

To use this method, provide the file path of the image that needs to be inserted to the ImageFilePath parameter. Provide the identification place at which the image needs to be inserted in the Word document to the Bookmark
parameter.  
{#connectors-msword-methods__table_o52_tw3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| ImageFilePath | System folder path to the image that needs to be inserted. | Data in | String |
| Bookmark | Point at which the image needs to be added. | Data in | String |
[Table 23. InsertPicture method parameters]

{#connectors-msword-methods__table_o52_tw3_rcc}

## InsertTable {#connectors-msword-methods__section_ltm_y45_4rb}

Inserts a table into a Microsoft Word document. You can optionally customize the document by configuring it before inserting.

To use this method, the point at which the table needs to be added is provided to the Bookmark parameter and the table that needs to be added should be passed to the Data parameter.  
Note:  
Before executing this method, you must execute the GetTable and SetTable methods.  
To customize the table before inserting, do the following steps.

1. Click the method settings icon(![Method settings icon.]()).
2. Select Include Headers.
3. Select border style and autofit behavior.
4. Select Include Empty Rows.
5. To ignore specific columns, click the add index value icon (![Add index value]()).
6. Enter the index value of the column.
7. Click OK.
{#connectors-msword-methods__ol_mtz_jwl_tsb}  
{#connectors-msword-methods__table_czt_kx3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Bookmark | Specific position in the Word document where the table will be inserted. Before inserting the table, you must add a bookmark. | Data in | String |
| Data | Table data that will be inserted at the bookmark point. | Data in | Data |
[Table 24. InsertTable method parameters]

{#connectors-msword-methods__table_czt_kx3_rcc}

## InsertText {#connectors-msword-methods__section_zz5_np5_4rb}

Inserts text in the beginning of the Microsoft Word document.

To use this method, provide a value that needs to be inserted to the text parameter.  
{#connectors-msword-methods__table_gmq_szp_g5b__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| text | Text value that needs to be inserted. | Data In | String |
[Table 25. InsertText method parameters]

{#connectors-msword-methods__table_gmq_szp_g5b}

## IsOpen {#connectors-msword-methods__section_usg_whw_jrb}

Checks whether a Microsoft Word document
is open.  
{#connectors-msword-methods__table_cl4_sy3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Filepath | System folder path to word document or file. | Data in | String |
| Return | System folder path to word document or file. | Data Out | Boolean |
[Table 26. IsOpen method parameters]

{#connectors-msword-methods__table_cl4_sy3_rcc}

## MergeByCellIndices {#connectors-msword-methods__section_v1k_54f_prb}

Merges the range of cells specified in the form of index value range.

To use this method, provide the starting cell index value to the StartCellIndex parameter and ending cell index value to the EndCellIndex parameter.  
{#connectors-msword-methods__table_zt1_vy3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| StartCellIndex | Index of starting cell point to start merging cells. | Data in | Integer |
| EndCellIndex | Index of ending cell point to end merging cells. | Data in | Integer |
[Table 27. MergeByCellIndices method parameters]

{#connectors-msword-methods__table_zt1_vy3_rcc}

## MergeByRowCol {#connectors-msword-methods__section_sgx_tsf_prb}

Merges a range of cells of a table in a Microsoft Word document.

To use this method, provide the starting row index to the StartRowIndex parameter, ending row index to the EndRowIndex parameter, and starting column index to the StartColIndex parameter and ending column index to the
EndColIndex parameter.  
{#connectors-msword-methods__table_ogh_wy3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| StartRowIndex | Index of starting row. | Data in | Integer |
| StartColIndex | Index of starting column. | Data in | Integer |
| EndRowIndex | Index of ending row. | Data in | Integer |
| EndColIndex | Index of ending column. | Data in | Integer |
[Table 28. MergeByRowCol method parameters]

{#connectors-msword-methods__table_ogh_wy3_rcc}

## ReplaceBookmark {#connectors-msword-methods__section_akd_kql_lrb}

Replaces a bookmark in a Microsoft Word document with the specified text.

To use this method, provide the identification bookmark to Bookmark parameter with the text to be replaced given to the ReplaceText parameter.  
{#connectors-msword-methods__table_r35_xy3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Bookmark | Identification bookmark in the word document. | Data in | String |
| ReplaceText | Replace text at the bookmarked location with the new value provided. | Data in | String |
[Table 29. ReplaceBookmark method parameters]

{#connectors-msword-methods__table_r35_xy3_rcc}

## ReplaceBookmarks {#connectors-msword-methods__section_ff2_kzf_prb}

Finds and replaces multiple bookmarks in a Microsoft Word document with the specified text.

To use this method, provide value to the added field(s) which is the text with which the bookmark needs to be replaced.  
Provide more details of the bookmark text to replace as follows:

1. Double-click the component.
2. In the PROVIDE LABELS/BOOKMARKS dialog box, click the click to add label icon (![Click to add label icon.]()) and enter the bookmark to replace it.

   Repeat this step to add more
   bookmarks.
3. Click OK.
{#connectors-msword-methods__ol_gf2_kzf_prb}  
{#connectors-msword-methods__table_hh3_1z3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Text | Text to be replaced in a Microsoft Word document. | Data in | String |
[Table 30. ReplaceBookmarks method parameters]

{#connectors-msword-methods__table_hh3_1z3_rcc}

## ReplaceFooterText {#connectors-msword-methods__section_dpx_mvf_prb}

Finds and replaces the footer text in a Microsoft Word document with the specified text.

Provide the original footer text value that is present in the word document to the FindText parameter and the text with which original footer text has to be replaced to the ReplaceText parameter.  
{#connectors-msword-methods__table_zch_cz3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| FindText | Current value that is present in the footer. | Data in | String |
| ReplaceText | Value that is required to replace the FindText value with, in the footer. | Data in | String |
[Table 31. ReplaceFooterText method parameters]

{#connectors-msword-methods__table_zch_cz3_rcc}

## ReplaceHeaderText {#connectors-msword-methods__section_k4p_rvf_prb}

Finds and replaces the header text in a Microsoft Word document with the specified text.

Provide the original header text value that is present in the word document to the FindText parameter and the text with which original header text has to be replaced to the ReplaceText parameter.  
{#connectors-msword-methods__table_br2_4cj_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| FindText | Current value that is present in the header. | Data in | String |
| ReplaceText | Value that is required to replace the FindText value with, in the header. | Data in | String |
[Table 32. ReplaceHeaderText method parameters]

{#connectors-msword-methods__table_br2_4cj_rcc}

## ReplaceStaticText {#connectors-msword-methods__section_zgp_wvf_prb}

Finds and replaces the text in a Microsoft Word document with the specified
text. Replaces bookmarks, headings, or any text based on the configuration.

To use this method, provide a value to the added field which is the text with which the label / bookmark needs to be replaced.  
You must configure the method before executing. To configure, do the steps.

1. Click the method settings icon (![Method settings icon.]()).
2. Click the add text icon (![Add text icon.]())
3. Enter the heading, bookmark, or text that you want to replace.
4. Repeat the steps to enter more text.
5. Click OK.
{#connectors-msword-methods__ol_udm_zkm_tsb}

## ReplaceText {#connectors-msword-methods__section_qcn_cwf_prb}

Finds and replaces the text in a Microsoft Word document with the specified text.

Provide the original text value that is present in the word document to the FindText parameter and the text with which original text has to be replaced to the ReplaceText parameter.  
{#connectors-msword-methods__table_mtz_ycj_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| FindText | Current value that is present in the Word document. | Data in | String |
| ReplaceText | Value that is required to replace the FindText value with, in the Word document. | Data in | String |
[Table 33. ReplaceText method parameters]

{#connectors-msword-methods__table_mtz_ycj_rcc}

## Resize {#connectors-msword-methods__section_u4y_tdx_jrb}

Resizes the window of a Microsoft Word document according to the left, top, width and height parameters.

To use this method, specify the Left and Top margins and the Width and Height parameters for the content.  
{#connectors-msword-methods__table_jvn_hz3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Left | Left margin of content in word document. | Data in | Integer |
| Top | Top margin of content in word document. | Data in | Integer |
| Width | Width of the word document. | Data in | Integer |
| Height | Height of the word document. | Data in | Integer |
[Table 34. Resize method parameters]

{#connectors-msword-methods__table_jvn_hz3_rcc}

## Save {#connectors-msword-methods__section_t45_j2x_jrb}

Saves the opened Microsoft Word
document.

## SaveAs {#connectors-msword-methods__section_eww_x2x_jrb}

Saves a copy of the opened Microsoft Word document with another name at a location provided in the Filepath parameter.

To use this method, provide the new location to which the Microsoft Word document needs to be saved in the Filepath parameter. If the file needs to be password protected, pass the value to the Password parameter.  
{#connectors-msword-methods__table_fdk_pdj_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Filepath | System folder path to the word document or file. | Data in | String |
| Password | Open a password protected word document with the password provided. The default value is empty. | Data in | String |
[Table 35. SaveAs method parameters]

{#connectors-msword-methods__table_fdk_pdj_rcc}

## SetTable {#connectors-msword-methods__section_b4h_32y_jrb}

Sets a table in a Microsoft Word document.

To use this method, it is necessary to pass the table object to the Table parameter.  
{#connectors-msword-methods__table_wmf_lz3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| Table | Table that needs to be set in the word document. | Data in | Object |
[Table 36. SetTable method parameters]

{#connectors-msword-methods__table_wmf_lz3_rcc}

## SetTableCellValues {#connectors-msword-methods__section_rjl_tgg_prb}

Sets the content of a table cell in a Microsoft Word document.

To use this method, provide the indices of the table cells whose value needs to be set in the configuration window.  
Provide one or more cell indexes and value types as follows:

1. Double-click the component.
2. In the PROVIDE CELL INDEXES dialog box, click the click to add cell index icon (![Click to add cell index icon.]()) and enter a cell index and select a value type.

   Repeat this step to add more
   cell indexes and value types.
3. Click OK.
{#connectors-msword-methods__ol_sjl_tgg_prb}

## SetTableRowData {#connectors-msword-methods__section_nnc_cfl_krb}

Sets the content in a row of a table in a Microsoft Word document.  
To use this method, index of the table row at which the data needs to be set is passed to the RowIndex parameter.  
Note:  
You must execute the SetTable method before executing this method.

Input
    : [RowIndex](https://www.servicenow.com/docs/LV9gAu1iIMh0bw_64JjZZg#method-parameter-msword__RowIndex)  
    Provide the column index as follows:

    1. Double-click the component.
    2. In the PROVIDE COLUMN INDEXES dialog box, click the click to add cell index icon (![Click to add cell index icon.]()) and enter a column index.
    3. Click OK.
{#connectors-msword-methods__ol_stj_hfl_krb}  
{#connectors-msword-methods__table_oh4_nz3_rcc__entry__4}

| Parameter | Description | Data port type | Data type |
|-|-|-|-|
| RowIndex | Index of row at which data needs to be set. Default value is 0, meaning the data will be set to the first row. | Data in | Integer |
[Table 37. SetTableRowData method parameters]

{#connectors-msword-methods__table_oh4_nz3_rcc}

