Office 365 Automation Actions
Get Or Update Contact
Get or add/update a Contact record for an Office 365 Account.
Click the Sign In button to sign-in to Office 365.
Enter the Email Address for the Contact record. Select the Update option if you want to add/update a contact record, otherwise the contact will be retrieved using the email address specified.
In the Map To Extracted Fields grid map your ThinkAutomation variables to the Exchange Contact fields. Against each Exchange contact field select the relevant ThinkAutomation Variable.
If updating then ThinkAutomation will first lookup an existing contact using the Email Address. If an existing contact is found then the contact is updated, otherwise a new contact record is created. If not updating then ThinkAutomation will lookup the contact using the email address and then if found, assign the contact fields to the mapped ThinkAutomation variables.
Create Appointment
Creates an appointment for an Office 365 Account.
Click the Sign In button to sign-in to Office 365.
You must then specify the Appointment Settings.
The Attendees field must use email addresses.
If %variable% replacements are used for the Start Date/Time or End Date/Time then you need to ensure that the fields contain valid dates or times.
Update Incoming Message
Set flags and/or modify the subject on the incoming Office 365 source message.
This action works with the message currently being processed.
Enter a comma separated list of Categories to assign to the message. Leave blank for no change.
Set Focused - set if the message appears in the 'Focused' or 'Other' view.
Set Importance - set the Importance for the message.
Set Mark As Read - set the 'read' status for the message.
Set Follow Up Flag - set the follow up status for the message.
If Follow Up Flag is set to Flagged, enter the number of Days if you want the follow-up flag to be set for the current message. The Days entry can use %variable% replacements. It should be set to a numeric value representing the number of days from today.
Modifying The Subject
You can modify the message subject by entering a value in the Subject entry. You can use %variable% replacements, for example to append '(processed)' you would set the Subject to %Msg_Subject% (processed). If this entry is blank then the subject is not changed.
This action can only be used on Automations that are called from an Office 365 Message Source.
Get User Presence
Get current presence information (availability and activity) for one or more users. This action reads presence information for Microsoft Teams users.
Click the Sign In button to sign-in to Office 365.
In the User Names entry enter one or more Office 365 user names that you want to read presence information for. This will usually be the user's login email address. Separate multiple users with commas or one per line. Up to 260 users can be specified per request.
Enable Return Only Presence option if you only want to return current presence, otherwise the username, displayname, current presence and current activity is returned (for each user).
Return As
The result can be returned as CSV, Markdown table or JSON.
For example:
CSV
Username,DisplayName,Availability,Activity
howard@parkersoftware.com,Howard Williams,BusyIdle,Busy
benjamin.wilshaw@parkersoftware.com,Benjamin Wilshaw,Available,Available
liam.dobbs@parkersoftware.com,Liam Dobbs,Offline,Offline
Markdown
+--------------------------------------------+-------------------+--------------+-----------+
| Username | Display Name | Availability | Activity |
+============================================+===================+==============+===========+
| mailto:howard@parkersoftware.com | Howard Williams | BusyIdle | Busy |
+--------------------------------------------+-------------------+--------------+-----------+
| mailto:benjamin.wilshaw@parkersoftware.com | Benjamin Wilshaw | Available | Available |
+--------------------------------------------+-------------------+--------------+-----------+
| mailto:liam.dobbs@parkersoftware.com | Liam Dobbs | Offline | Offline |
+--------------------------------------------+-------------------+--------------+-----------+
JSON
[
{
"Username": "howard@parkersoftware.com",
"DisplayName": "Howard Williams",
"Availability": "BusyIdle",
"Activity": "Busy"
},
{
"Username": "benjamin.wilshaw@parkersoftware.com",
"DisplayName": "Benjamin Wilshaw",
"Availability": "Available",
"Activity": "Available"
},
{
"Username": "liam.dobbs@parkersoftware.com",
"DisplayName": "Liam Dobbs",
"Availability": "Offline",
"Activity": "Offline"
}
]
If you enable Return Only Presence and Return As CSV and get the presence for a single user then a single text value will be returned with that users current presence only.
The presence (Availability) will be one of: Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown.
The Activity will be one of: Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive, InAMeeting, Offline, OffWork, OutOfOffice, PresenceUnknown, Presenting, UrgentInterruptionsOnly.
Select the variable to receive the results from the Assign To list.
Send Teams Message
Sends a message to a Microsoft Teams channel on behalf of an Office 365 user.
Click the Sign In button to sign-in to Office 365. This is the user that the message will be sent from.
The Teams and Channels for the user will then be listed. Select the Team and then the Channel within the team to send a message to.
Enter the Message text.
The message text can contain Markdown. If Markdown is used it will be converted to HTML before being sent.
Create Outlook MSG File
Saves the current message or a variable containing EML (mime) text as a Microsoft Outlook compatible MSG file to a folder on your file system.
Select the Save To folder and enter a File Name. The .msg file extension will be added automatically if not specified. If Ensure Unique File Name is enabled then ThinkAutomation will add a timestamp to the filename to ensure it is unique within the Save To folder.
Saving The Current Inc Message
From the Create Outlook MSG File Using list select Current Message. The currently executing message will then be saved as an Outlook MSG file (regardless of it's source type).
Saving EML (Mime) Text
This option will convert EML text to Outlook MSG format. From the Create Outlook MSG File Using list select Mime Text. You must then select a %variable% containing EML (mime) text created earlier.
If you want to create EML text, you can use the Send Email action to create a custom email message. Enable the Dont Send Just Assign Mime option and select a %variable% from the Assign Mime Text To list to save the mime text to. You can then use this variable on this action to create an Outlook MSG file based on the custom email.
You can assign the saved path & filename to a variable by selecting the variable from the Assign Saved File Path To list.