Connect your Lightning Web Runtime (LWR) site to the Lightning Out 2.0 app. Configure
site access and security, and publish the site to give employees access to Salesforce IT Service
in Microsoft Teams.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited
Editions with Agentforce IT Service. |
| User Permissions Needed |
| To configure Microsoft Teams and the Lightning Out 2.0 app: |
Salesforce administrator |
-
Turn on the Microsoft Teams to provision the Lightning Out 2.0 app.
-
From Setup, in the Quick Find box, enter Salesforce Go, and then
select Salesforce Go.
-
Find and select Microsoft Teams for Employees and
Fulfillers.
-
Turn on Microsoft Teams for Employees and Fulfillers.
Turning on this feature deploys the default tabs (Tickets, Approvals, Service
Catalog, My Assets, and Employee Enablement) and creates the Lightning Out 2.0 app in the
background.
-
Turn on Employee Service to help employees create and manage tickets from Microsoft
Teams.
-
Create an Experience Cloud site by using the Lightning Out (LWR) template.
-
From Setup, in the Quick Find box, enter Digital Experiences, and
then select All Sites.
-
Click New.
-
Select the Lightning Out (LWR) template.
Use the Lightning Out (LWR) template to render Salesforce IT Service lightning web
components directly in an LWR site.
-
On the Lightning Out (LWR) template page, click Get Started.
-
Enter a name and a URL suffix for the site, and then click
Create.
Use the URL suffix lwrPortal.
-
Add the employees who need access as members of the site.
-
Select Administration for the site.
-
Select Members, and add the profiles or permission sets for users
who access the site.
-
Save your changes.
-
Allow employees to log in directly to the site.
-
In the Administration settings, select Login &
Registration.
-
Select Allow employees to log in directly to an Experience Cloud
site.
-
Save your changes.
-
Configure security and privacy settings for an LWR site in Microsoft Teams.
-
Open your LWR site in Experience Builder.
-
Go to Settings > General and confirm that
the site uses the Lightning Out (LWR) template.
-
Select Security & Privacy.
-
For Clickjack Protection Level, select Allow framing of site pages on external
domains (Good protection).
-
Under Trusted Domains for Inline Framing, click Add Trusted
Domain.
-
Enter a Microsoft Teams origin URL that users access the site from, such as
https://teams.cloud.microsoft,
https://teams.microsoft.com, or your production URL, and click
Add Trusted Domain.
URLs must begin with https:// or wss://, and spaces must be encoded as %20.
-
Repeat steps e and f for all Microsoft
Teams origin URLs that users access.
-
Under Content Security Policy (CSP), set Security Level to Strict CSP: Block
Access to Inline Scripts and Permit Access to Allowed Hosts (Recommended).
-
Confirm that Lightning Web Security remains enabled to isolate components in different
namespaces.
-
Under Trusted Sites for Scripts, add any third-party script hosts.
-
From Setup, in the Quick Find box, enter Trusted URLs, and then
select Trusted URLs.
-
Add hosts for other external resources, such as images, videos, and stylesheets.
-
Review CSP Errors for resources blocked within the past 30 days and resolve any conflicts
until the section indicates that the site is issue-free.
-
Confirm that the Salesforce IT Service components are added to the Lightning Out 2.0
app.
-
From Setup, in the Quick Find box, enter Lightning Out, and then
select Lightning Out 2.0 App Manager.
-
For the TEAMS_LO2_LWR_APP app, click the dropdown arrow, and then select Edit
App.
-
On the App Components tab, confirm that the Lightning web components for the IT Service
experience (Service Catalog, My Assets, Employee Enablement, and Tickets) are listed.
-
To add a component, enter its name in the Add Component field, and then click
Add Component.
-
Link the LWR site to the Lightning Out 2.0 app.
-
On the Edit Lightning Out 2.0 App page, select Linked Communities
Site tab.
-
Select the Lightning Out (LWR) site that you created.
-
Save your changes.
-
Publish the site.
-
Go to Experience Builder for your LWR site.
-
Click Publish.
-
Wait for the confirmation email indicating the site is published.