youtube image
From YouTube: Using 3rd Party APIs in Viva Connections ACEs

Description

In this 13-minute developer-focused demo, Paolo Pialorsi steps viewers through the setup and consumption of a 3rd party/custom API (Azure Functions, ASP.NET REST APIs) in an ACE. Start with registering the API in AAD as an AAD app, consenting the AAD app in target tenant, granting permissions to the app via SPO Admin UI to consume the API via SPFx context and AadHttpClient. After setup, see the code for calling and rendering stock values acquired via the third-party API. This PnP Community demo is taken from the Viva Connections & SharePoint Framework Bi-weekly sync call recorded on March 24, 2022.

Demo Presenter: Paolo Pialorsi (PiaSys) | @PaoloPia

Supporting materials:
• Documentation - Connect to Azure AD-secured APIs in SharePoint Framework solutions | https://docs.microsoft.com/sharepoint/dev/spfx/use-aadhttpclient
• Documentation - AadHttpClient class | https://docs.microsoft.com/javascript/api/sp-http/aadhttpclient?view=sp-typescript-latest
• Sample - Consuming Third Party APIs secured with Azure Active Directory within SharePoint Framework | https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-3rd-party-api

Learn more:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp/videos