sbtron / extendteamsapp-1

Extend Northwind supplier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Northwind Supplier

This app will have below Teams capabilities

  • Message extension (search based)
  • Link unfurling
  • Pages with action
  • Outlook add-in
  • Personal tab
  • Channel tab
  • Meeting app

Prerequisites

Please note that after you enrolled your developer tenant in Office 365 Target Release, it may take couple days for the enrollment to take effect.

Getting Started

Follow below instructions to get started with this application template for local debugging.

Test your application with Visual Studio Code

  1. Press F5 or use the Run and Debug Activity Panel in Visual Studio Code.
  2. Select a target Microsoft application where the message extension runs: Debug in Teams, Debug in Outlook and click the Run and Debug green arrow button.

Try out

After side loading the app to Teams you can test out

Message extension in Micrsoft Teams

Open Microsoft Teams, go to a conversation and select the ellipses in the chat compose area. Find the app "Northwind-local" and search for "c" select the product "Chai" (Or do another search for another product) and it will insert the card into the chat area. Send the message.

Message extension in Outlook

Open Outlook, create a new email. From the top ribbon select the Apps icons and choose "Northwind-local" app. Do the search and insert of cards similar to the instructions in Teams.

Link unfurling in Teams and Outlook

Go to Teams chat or Outlook compose email and paste below link:

https://test.northwindtraders.com?supplierID=3

You can change the ID to 1 or 2. The link should show a preview card automatically.

Pages with action

After side loading the app open the app by "Adding" the personal tab. The tab will list the suppliers dashboard.

In Teams you will see the contact information has a call button to call the contacts. In Outlook launch the same personal tab/page and you will see a mail button to compose a mail to the contacts.

Outlook add-in

To run outlook add-in you need a windows desktop app with Beta channel. You'll need to choose the debug configuration Outlook Desktop (Edge Chromium) before selecting F5. This will sideload the add-in to Outlook.

To test:

Compose a new meeting and on the top ribbon select the "Northwind categories" add in, which will open a taskpane. Select a category from the form (one or more categories) and apply to the mail. You will see colour coded labels on the top of the meeting. Don't select Northwind suppliers: sales from the list. Compose email with body having "sales" in text. Try to send the meeting request after filling the rest (Title, To, lLocation etc) of the form. You will get a dialog prompt to add the Northwind suppliers: salesto the meeting before sending.

References

About

Extend Northwind supplier


Languages

Language:JavaScript 83.2%Language:Bicep 6.2%Language:HTML 5.3%Language:CSS 5.3%