Insert row

Insert Row enables you to insert row at the specified position in a table. In case, you insert the row below the previous row then they are shifted downwards.


Using Insert Row feature

  1. Make sure the prerequisites for using Office 365 activities are met.
  2. In the Canvas Tools pane, click Office 365 Services to expand the tool and view the associated activities. 
  3. Drag the Excel 365 activity inside the Office 365 Application Activity. Ensure that the output token of the OAuth process is passed on to the Excel activity for authentication. For more information, see OAuth Activity.
    1. The validation error symbol disappears when you select relevant values in the particular field from the available list. For example,  Access Token, Insert Row, and Output. 

  4. In the Access Token list, select the output parameter holding the value of access token from the OAuth activity to pass in the Excel 365 activity. For more information, see OAuth activity.
  5. In the Feature list, select Insert Row.
    1. Click the  (Setting) icon to configure the input configuration. The Input Configuration screen appears.

    2. Ensure to define all the input parameters as an in argument in the Parameter bar for selection in the mandatory options.
      1. Mandatory Options:
        1. In the workbook, select the parameter holding the path along with workbook name or name (if workbook is in root folder) of the workbook. For example, FolderName/WorkbookName.xlsx. Ensure to add the extension of excel while providing the name of workbook. i.e.xlsx.
        2. In the worksheet, select the parameter holding the worksheet name in the excel file.
        3. In the table-Name, select the parameter holding the table name of new row to insert. 
        4. In the index, select the parameter holding the specified index in the table after which you want to insert the new row. Indexing starts from zero and minus one for last position.
        5. In the values, select the parameter holding the values of the table row to insert. You must provide comma separated values. Value parameter is of type string. For example, 1, 2,3,4.
      2. You can select the Is Default Value checkbox to set the selected input parameter as the default value.
      3. Once done, click Confirm.
  6. In the Output list, select the argument which should store the result. The argument should be of Out Direction. You must pre-define the parameter as an out argument to make it available for the selection.
  7. Save the process. 
  8. In the Tool bar, click Setup Environment.


    NOTE:  

    You must select the relevant scope as per the activities in the automation process.

  9. Once environment setup is completed perform the Test Run. The studio console will display the successful message with the required output else, output will be blank.
    1. Output is of the format : { "Response": "Row Inserted Successfully" }.