Skip to main content

Microsoft Teams Integration

User guide: Creating Microsoft Teams notifications for Order status updates in Quartzy (via Power Automate)

For questions, please reach out to support@quartzy.com

Overview

This user guide contains step-by-step instructions on how to set up alerts in Microsoft Teams for Order status updates in Quartzy. These alerts will help Quartzy users keep track of their Quartzy orders in Teams and prepare ahead for upcoming deliveries.

Use case nameUse case description
Order item shippedReceive a Teams notification when an item ordered from Quartzy gets shipped and is assigned a tracking number
Order item backorderedReceive a Teams notification when an item ordered from Quartzy becomes backordered
Order item deliveredReceive a Teams notification when an item ordered from Quartzy gets delivered
Order item cancelledReceive a Teams notification when an order is cancelled for an item previously ordered from Quartzy

Here is an example of a Teams notification that one can configure using the steps mentioned in this user guide. Example Notification

Prerequisites

Before getting started, please go through this checklist of prerequisites:

  • Quartzy
    • You should have an active account in Quartzy
    • You should be assigned to an Organization and a Lab in Quartzy by your lab manager
  • Teams
    • You should have an active account in Teams
  • Power Automate or Zapier
    • At present, Microsoft supports integration with Microsoft Teams using their own product calledPower Automateor through automation systems such asZapier.
    • You should have access to Microsoft’s Power Automate feature
    • An alternative to using Power Automate is the automation tool called Zapier. Please share the following with your IT administrator

Step-by-step instructions

1. Create a channel where you want alerts from Quartzy to appear

  • Set up a new Teams channel or use an existing Teams channel to receive alerts.
    • In the example below, we are using an existing team called Quartzy orders, in which we created a channel called Quartzy order status alerts to receive Teams notifications.

2. Choose and configure which alerts you want from Quartzy

  • Depending on your use case, download the Teams Workflow files linked below.
Use case nameUse case descriptionTeams Workflow
Order item shippedReceive a Teams notification when an item ordered from Quartzy gets shipped and is assigned a tracking numberLink
Order item backorderedReceive a Teams notification when an item ordered from Quartzy becomes backorderedLink
Order item deliveredReceive a Teams notification when an item ordered from Quartzy gets deliveredComing soon!
Order item cancelledReceive a Teams notification when an order is cancelled for an item previously ordered from QuartzyComing soon!
  • Open the Power Automate tool
    • Navigate to the tab My Flows
    • Click the Import button in the top navigation

Example Power Automate

  • This will take you to a new page and ask you to upload the file. Click the Upload button to start importing the downloaded file specific to your use case.

Example Power Automate

  • After you upload the file, you will see a confirmation screen such as the one in the example below

Example Power Automate

  • If the row under the section “Related resources” contains a warning icon in red, then click the row and open the sidebar on the right side of the screen as shown below.
    • Select the email address in the list and click the Save button.

Example Power Automate

  • The red warning icon would disappear and you would see an Import button below to complete this step.
    • Here is an example below

Example Power Automate

  • As soon as the import is complete, you would receive a confirmation message as shown below

Example Power Automate

  • Go back to the “My Flows” tab to see the newly imported flow. Click on the “three dots” icon next to the flow name and click on the option “Turn On” to initiate the flow.

Example Power Automate

  • Click on the flow name to enter the Settings page for the flow.
    • In the new page, click on the “Edit” button in the top left corner

Example Power Automate

  • You will land on the flow details page
  • Click on the first step in the flow “When a HTTP request is received”
    • The window for this step will expand. Click on the “Copy URL” icon and use it in the next step.

Example Power Automate

  • Use the copied URL in the previous step to set up a Webhook configuration according to instructions in this other user guide.
    • In this step you would need the following information as also shown in the screenshot below.
Information neededExample
Use caseOrder item shipped
Copied URLhttps://prod-158.westus.logic.azure.com:443/workflows/7de32d4143a74871b5de18b836bda/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fHoI1QxhVled_isp9X-gL3hsKj81IIHkjmTbKFSvz3w

Example Webhook

  • Now, depending on your use case, when the relevant event occurs (e.g. Order placed, Order item shipped etc.), Quartzy will send information to this saved URL which will in turn trigger your workflow and send Teams notifications to the channel selected by you in the previous step.

Best practices, Troubleshooting tips and FAQs

Notification etiquette

  • While the Teams notifications can be sent as direct messages, we recommend using channels. This allows the users to mute the channel if they are not interested in a Teams notification.
  • As a Teams administrator for your organization, before setting up alerts, we recommend that you discuss with your team members and then
    • Decide which alerts to set up for your organization
    • Determine the content and tone of the message to use in the alert
    • Determine when to configure @mentions in the alerts

Opting users in and out of Teams notifications

Teams provides lots of flexibility in terms of opting users in and out of a notification. We recommend the following options:

  • If a particular user wants to opt out of all Quartzy notifications, they can mute or leave the Teams channel set up in the previous step.
  • If a particular user wants to opt in to a specific type of notification, then they can use this user guide and configure a Teams workflow of their own.
  • To opt out all users in your organization from a particular type of notification (e.g. Order item shipped), you can click Turn Off to pause the entire workflow corresponding to this notification. Here is an example:

Example Power Automate

Troubleshooting

  • If you notice that you are not receiving Teams alerts, the first place to check is the 28-day run history box of your flow

Example Power Automate

  • Common errors include
    • Typos in variable names in the Teams workflow
    • Mismatch in email address set up for the same user in Quartzy vs. Teams
  • If you are getting stuck while troubleshooting, please reach out to support@quartzy.com

FAQs

Q. Besides Teams, I want to handle other integration use cases such as creating a task in Asana, adding a record in Google Sheets, trigger an action in my homegrown application etc. Can you help with that?

  • To integrate with other tools such as Asana, Google Sheets or even your homegrown application, you can use Quartzy’s webhooks along with your own web server or with an Integration-platform-as-a-Service tool such as Zapier or Workato.
  • To learn how to configure Quartzy’s webhooks, please use this other user guide.

Appendix

List of variables that can be configured

Field nameDescriptionExample value
specversionEvent specification1
idEvent IDd31891b9-17d4-4430-aa01-2e7be1df184c
sourceEvent sourcehttps://quartzy.com
typeEvent typecom.quartzy.sales-order-item.shipped
datacontenttypeEvent content typeapplication/json
timeTimestamp when event got created2021-07-01T18:28:06Z
data.sales_order_item.idOrder item ID1638745
data.sales_order_item.statusOrder Item statusSHIPPED
data.sales_order_item.sell_price.amountItem price (in cents)29307
data.sales_order_item.sell_price.currencyItem price currencyUSD
data.sales_order_item.quantityItem quantity1
data.sales_order_item.estimated_shipment_dateEstimated Ship Date2021-07-24
data.sales_order_item.product.idProduct ID3685196
data.sales_order_item.product.item_nameItem nameCytiva's Amersham Hybond P 0.45 PVDF 300mmx4m 1 roll/PK
data.sales_order_item.product.catalog_numberCatalog numberQ7KAY47
data.sales_order_item.request.idRequest ID23440056
data.sales_order_item.request.requested_atTimestamp when requested2021-06-08T19:49:58+00:00
data.sales_order_item.request.requested_by.idRequester ID412978
data.sales_order_item.request.requested_by.first_nameRequester’s first nameAnkur
data.sales_order_item.request.requested_by.last_nameRequester’s last nameDatta
data.sales_order_item.request.requested_by.emailRequester’s email addressankur.datta@quartzy.com
data.sales_order_item.shipments.0.idShipment ID1676825
data.sales_order_item.shipments.0.carrierCarrier nameFedEx
data.sales_order_item.shipments.0.trackingTracking number1234567890
data.sales_order_item.shipments.0.quantityShipment quantity1
data.sales_order_item.shipments.0.shipped_atTimestamp when item got shipped
data.sales_order_item.shipments.0.delivered_atTimestamp when item got delivered
data.sales_order_item.sales_order.idOrder ID1295291
data.sales_order_item.sales_order.keyOrder No.QY21070005212006
data.sales_order_item.sales_order.lab.idLab ID5212
data.sales_order_item.sales_order.lab.nameLab nameBioChem Dept
data.sales_order_item.sales_order.lab.organization.idOrganization ID6493
data.sales_order_item.sales_order.lab.organization.nameOrganization NameQuartzy Testing University

Example JSON of event payloads

  • Order item shipped
{
"specversion": "1.0",
"id": "d31891b9-17d4-4430-aa01-2e7be1df184c",
"source": "https://quartzy.com",
"type": "com.quartzy.sales-order-item.shipped",
"datacontenttype": "application/json",
"time": "2021-07-01T18:28:06Z",
"data": {
"sales_order_item": {
"id": "1638745",
"status": "SHIPPED",
"sell_price": {
"amount": "29307",
"currency": "USD"
},
"quantity": 1,
"estimated_shipment_date": "2021-07-24",
"estimated_delivery_date": "2021-07-26",
"product": {
"id": "3685196",
"item_name": "Cytiva's Amersham Hybond P 0.45 PVDF 300mmx4m 1 roll/PK",
"catalog_number": "Q7KAY47"
},
"request": {
"id": "23440056",
"app_url": "",
"requested_at": "2021-06-08T19:49:58+00:00",
"requested_by": {
"id": "412978",
"first_name": "Ankur",
"last_name": "Datta",
"email": "ankur.datta@quartzy.com"
}
},
"shipments": [
{
"id": "1676825",
"carrier": "FedEx",
"tracking": "1234567890",
"quantity": 1,
"shipped_at": null,
"delivered_at": null
}
],
"sales_order": {
"id": "1295291",
"app_url": "",
"key": "QY21070005212006",
"lab": {
"id": "5212",
"name": "BioChem Dept",
"organization": {
"id": "6493",
"name": "Quartzy Testing University"
}
}
}
}
}
}

  • Order item backordered
{
"specversion": "1.0",
"id": "f72f060e-d7dc-42e9-b508-c23dbfdbe877",
"source": "https://quartzy.com",
"type": "com.quartzy.sales-order-item.backordered",
"datacontenttype": "application/json",
"time": "2021-07-01T18:24:18Z",
"data": {
"sales_order_item": {
"id": "1638744",
"status": "BACKORDERED",
"sell_price": {
"amount": "5942",
"currency": "USD"
},
"quantity": 1,
"estimated_shipment_date": "2021-07-16",
"estimated_delivery_date": "",
"product": {
"id": "26631140",
"item_name": "Axygen 200uL Maxymum Recovery Universal Fit Filter Tips, Clear, Rack
Pack, 96 Tips/Rack, 10 Racks/Pack, 5 Packs/Case.",
"catalog_number": "Q9R2YA4"
},
"request": {
"id": "23497518",
"app_url": "",
"requested_at": "2021-06-14T18:17:37+00:00",
"requested_by": {
"id": "412978",
"first_name": "Ankur",
"last_name": "Datta",
"email": "ankur.datta@quartzy.com"
}
},
"shipments": [],
"sales_order": {
"id": "1295291",
"app_url": "",
"key": "QY21070005212006",
"lab": {
"id": "5212",
"name": "BioChem Dept",
"organization": {
"id": "6493",
"name": "Quartzy Testing University"
}
}
}
}
}
}