Learn how to connect Engini to Outlook.
Using Engini’s outlook activities, you can: send mails, create and update events and Add attachment to existing event.
To get started with the outlook app, create an free account at outlook.com or use your organizational Office 365 mailbox.
Getting Started with Outlook #
Prerequisites #
- An Outlook account.
Add a connection to Outlook in Engini #
- Enter your Engini account at https://app.engini.io.
- Navigate to Connections page by clicking on the Connections on the left sidebar or by clicking here.
- Click on the Add connection option located at the topbar.
- Choose Outlook option from the available applications.
- Enter the following details in the “Edit Connection” form:
- Connection name
- Click on the “microsoft signin” button.
- Sign into your Microsoft account.
- Click on the save button to save the connection.
Trigger #
Check for new emails #
The trigger monitors the mailbox, listening for new emails sent to the connected mailbox at scheduled intervals as defined.
- Choose the Outlook software.
- Click on the “Check for new emails” trigger.
- Choose the mailbox you want to listen to.
This action enables you to listen to any mailbox for which you have permission, including shared mailboxes. You must choose a mailbox for which you have the appropriate permissions. If you select a mailbox for which you lack the necessary permissions, the workflow will encounter errors during execution. - Select the start date and time for the scheduled trigger.
- Choose the time interval for triggering and checking emails.
- You can specify a time frame during which the trigger will operate. For example, every 15 minutes from 8 AM to 5 PM.
- Select a filter if necessary:
- Click on “Add Filter” button.
- To select an item from the list, click the small arrow.
- Choose the field on which you want to apply the filter from the drop-down.
- Select the condition.
- Choose the value for which you want the condition to be met.
For example, to receive emails with attached files:
- Choose “include attachment” from the drop-down.
- Select the condition “equals.”
- Click the empty field and in the pop-up window, choose “true.”
Email’s properties #
Let’s understand what the properties received are:
- Body – The body property contains the entire message body in formal HTML format.
- Body Preview – The body preview contains a string of the body of the email.
- CC – The “CC” contains a string with all the emails included in the CC (carbon copy) field. The emails are separated by commas within the string.
- From – The ‘From’ property contains the email address from which the email to this mailbox was sent.
- Importance – If the email sent specifies ‘importance’, this property will contain that value.
- message Id – This property contains the unique identifier for the email for use in subsequent actions.
- Received date time – The ‘Received date time’ received is in the Israeli time zone (UTC + 3) and includes both the date and time.
- Subject – It contains the email subject.
- To – The ‘To’ property contains a string with all the email addresses to which the email received by this mailbox was sent. If the email was only sent to this mailbox, only the email address of this mailbox will appear. If the email was sent to additional email addresses, the email addresses will be separated by commas in the string.
Send Email #
- From mailbox
Choose the mailbox you want to listen to.
This action enables you to listen to any mailbox for which you have permission, including shared mailboxes. You must choose a mailbox for which you have the appropriate permissions. If you select a mailbox for which you lack the necessary permissions, the workflow will encounter errors during execution. - To
Enter the recipient’s email address.- Click on the empty field, and a tooltip will appear, displaying the email fields you can use.
- From the tooltip, select the recipient’s email address, or you can use a static value.
When using strings, be sure to enclose them in single quotes (‘).
- Subject
Fill in the email subject.- Populate the field with Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- You can also use property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Body
The body of an email is the main content of the message you are sending. It is the section where you write the text of your message and convey the purpose or intention of your email.- Click on the empty field next to the label “body.”
- A window will open where you can enter the email body.
You can populate the body with:
- Static value – number / string.
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Expression – using functions and/or Previous activity properties and/or static values.
- Pictures – click on the picture icon.
- Links – click on the picture icon.
- Add field
By clicking the “Add field” button, you can choose how to fill in the various fields. You can add one field to the action or more.- Choose from the drop down the field you want to fill.
- Click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field.
- You can populate the field in one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Expression – using functions and/or Previous activity properties and/or static values (Using the tooltip that opens when clicking on the field).
- Repeat steps a-c for all the fields you want to populate.
- Add Attachment
By clicking the “Add Attachments” button, you can choose to include attachments with the email. You can add one attachment to the email or multiple attachments.
- Click on the left empty field to choose the file name and the tooltip with all the options you can use to fill the field will be opened.
You can populate the field in one of the following options:- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Click on the right empty field to fill the file content.
- Repeat steps a-c for all the attachments you want to add.
Note: When you know the exact number of files you want to attach to each email during the workflow run, you can directly attach the files in the “send email” activity. However, when you don’t know in advance how many files, you’ll need to attach to an email sent during the run and you need dynamism, you need to work with an array whose size is not predefined.
Create event #
- Mailbox
Choose the mailbox you want to listen to.
This action enables you to listen to any mailbox for which you have permission, including shared mailboxes. You must choose a mailbox for which you have the appropriate permissions. If you select a mailbox for which you lack the necessary permissions, the workflow will encounter errors during execution. - Calendar id
Outlook allows you to create multiple calendars within your account.- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Choose the id of the calendar you want to add an event to.
- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Subject
Fill in the empty field the subject of the event you are creating. - Start Time
Fill in the empty field the start time of the event you are creating.
you can also choose to fill the field with property value from a previous activity (Using the tooltip that opens when clicking on the field). - End Time
Fill in the empty field the end time of the event you are creating.
you can also choose to fill the field with property value from a previous activity (Using the tooltip that opens when clicking on the field). - Time Zone
Outlook allows you to set time zone to ensure that your appointments and meetings are accurately reflected in the correct time zone.- Click on the empty field and the tooltip will pop up showing all the Coordinated Universal Time (UTC) you can use.
- Choose the time zone of the event from the tooltip.
- Click on the empty field and the tooltip will pop up showing all the Coordinated Universal Time (UTC) you can use.
- Add Field
- Choose from the drop down the field you want to fill.
- Click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field.
- You can populate the field in one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Expression – using functions and/or Previous activity properties and/or static values (Using the tooltip that opens when clicking on the field).
- Repeat steps a-c for all the fields you want to populate.
Update Event #
- Mailbox
Choose the mailbox you want to listen to.
This action enables you to listen to any mailbox for which you have permission, including shared mailboxes. You must choose a mailbox for which you have the appropriate permissions. If you select a mailbox for which you lack the necessary permissions, the workflow will encounter errors during execution. - Calendar id
Outlook allows you to create multiple calendars within your account.- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Choose the id of the calendar you want to add an event to.
- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Event id
- Click on the empty field and the tooltip will pop up showing the options you can choose.
- You need to populate the field with the event id. Do it by using one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Add field
By clicking the “Add field” button, you can choose how to fill in the various fields. You can add one field to the activity or more fields to the activity definitions.- Choose from the drop down the field you want to fill.
- Click on the empty field to the right of the drop down to be shown the tooltip with all the options you can use to fill the field.
- You can populate the field in one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- Expression – using functions and/or Previous activity properties and/or static values (Using the tooltip that opens when clicking on the field).
- Repeat steps a-c for all the fields you want to populate.
Add attachment to existing event #
- Calendar id
- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Choose the calendar you want to add an event to.
- Click on the empty field and the tooltip will pop up showing the calendar id you can use.
- Event id
- Click on the empty field and the tooltip will pop up showing the options you can choose.
- You need to populate the field with the event id. Do it by using one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- File Name
- You need to populate the field with name of the event you want to update. Do it by using one of the following options:
- Static value – number / string. when using strings, you need to surround them with single quotes (‘).
- Property value from a previous activity (Using the tooltip that opens when clicking on the field).
- You need to populate the field with name of the event you want to update. Do it by using one of the following options:
- Content
- Click on the empty field to fill the file content.
The file content must be in base64 format.
- Click on the empty field to fill the file content.
Initialize attachment array #
To create multiple files that will be sent in the email, you need to initialize an array for the files. Choose this action to initialize the array, and give it a name.
Note: When you know the exact number of files you want to attach to each email during the workflow run, you can directly attach the files in the “send email” activity. However, when you don’t know in advance how many files, you’ll need to attach to an email sent during the run and you need dynamism, you need to work with an array whose size is not predefined.
Append to attachments array #
- To use this action, you first need to initialize an array.
- Choose the array in which you want to include the files from the drop-down.
- Specify the file name.
- Choose the content that the file will contain. Please note that the content should be in base64 format.