WriteToExcel365

Description

The WriteToExcel365 component can output data to a OneDrive in Excel format.

The use of this component requires a contract and pre-configuration of Office365 for Business and OneDrive for Business.

How to prepare your Microsoft account

  1. Prepare an Office365 account and log in to the Azure portal.
  2. Search for App registration in the Identity section to create an application.
actioncomponent-writetoexcel365-1
  1. Give the app a meaningful name, and pick single tenant. (Note: if you don't have this single tenant option, you may not have a registered business account)
actioncomponent-writetoexcel365-2
  1. Open the details screen after creating the application and note the displayed Application (Client) ID and Directory (Tenant) ID. You will need to enter them in Gravio.
actioncomponent-writetoexcel365-3
  1. Put these values ​​in the properties of the WriteToExcel365 component along with the email address and password of the Office365 account.
  2. Now go to Authentication and make sure the app is treated as a public client:
actioncomponent-writetoexcel365-5
  1. Then open API Permissions and add Files.ReadWrite.All permissions, which you can find under the Microsoft Graph section.
actioncomponent-writetoexcel365-6 actioncomponent-writetoexcel365-7 actioncomponent-writetoexcel365-8 actioncomponent-writetoexcel365-10
  1. The preparation is now complete.

Component Properties

Property NameDescription
File NameSpecify Excel file name to output
Sheet NameSpecify sheet name to output data
Write ModeSpecify whether to overwrite (Replace) the file or append the data (Append). The value of cp.WriteMode can be either "Append" or "Overwrite".
Output headerSelect whether to output header when outputting data
Column MappingSpecify which column of Excel to output among the columns of step output. More than one can be specified. (Example: To output Step_a of step output to column A of the Excel and Step_c to column B of Excel, specify Step_a: A, Step_c: B and the field of step output and the column of Excel with :, If you specify more than one, separate with , comma)
Client IdSpecify Application (client) ID
Tenant IdEnter the Directory (tenant) ID
InstanceOnly change if your Azure account is hosted on a custom domain, as opposed to on Microsoft's domain
Username or EmailSpecify Office365 Business account
passwordSpecify password for Office365 Business account