Skip to main content

Questions tagged [lightning-out]

Lightning Out is a feature that allows Lightning Components to be used in pages that are run from non-Salesforce servers allowing components to be added to external apps. A JavaScript library is included in the page on the origin server. Markup is added to configure & activate the Lightning components app. Lightning Out pulls the components app into the page over a secure connection & inserts it into the DOM of the page.

Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

How to expose Salesforce Components in external website (with and without authentication)?

Has anyone worked with the 'Lightning Out' feature in Salesforce, which allows using components outside Salesforce and is currently in Beta? I'm interested in learning about any challenges, ...
Diptangsu Sasmal's user avatar
0 votes
0 answers
140 views

Lightning Out: Uncaught ReferenceError: $A is not defined at lightning.out.delegate.js

I used Lightning out feature to embed a custom LWC in our company's website. I have built the Aura Wrapper needed for the lightning out. <aura:application access="GLOBAL" extends="...
Raniel's user avatar
  • 1
2 votes
0 answers
5k views

Troubleshooting 401 errors && ERR_BLOCKED_BY_ORB on LightningOut using a custom domain

We're attempting to use a custom domain (ex. https://lightningout.example.com) to as the domain for lightning out components, see example below. We've configured a subdomain on our website and issues ...
islandtimesfdcdeveloper's user avatar
1 vote
1 answer
279 views

How to create a LWC for Lightning Out with the custom font of the external Website

I wanted to create a LWC that should be used as a kind of Web2Case form on the website of a customer. Technically, everything is working but I cannot change the font of the LWC to match the font of ...
Andreas Epping's user avatar
0 votes
1 answer
69 views

How to redirecct to record detail page using ltng out app and flow

I'm using a ltng:outApp that opens a lightning:flow from a visualforce page. The flow takes multiple inputs from the user and creates a record on a custom object. When the flow finishes I'm trying to ...
user1718612's user avatar
0 votes
1 answer
186 views

$Lightning.use() function with access token

Hello Community Experts, Whenever I use the access token into the $Lightning.use() function, It will give the Invalid session ID error and my component will not load on an external site. I have ...
Tushar Jadav's user avatar
  • 2,745
0 votes
1 answer
205 views

Unable to Upload Files of Lightning Flow launched by Visualforce

We are using Visualforce override page for New Case Action that is triggering Lightning Screen Flow via Lightning Out. The Lightning Runtime in Visualforce Page was Rendered according to Salesforce ...
Vasyl Poidynets's user avatar
0 votes
0 answers
178 views

Render Lightning Runtime for Flows in a Visualforce Page and get variable value from URL

I'd like to launch my flow in lightning run time in a visualforce page and pass a variable to the flow. I previously used a formula URL in classic that appended recordid= Contact.Id to the URL which ...
forcethesales's user avatar
0 votes
1 answer
196 views

Lightning out loads but apex calls return cors error

The lightning out(LO) app I have created worked fine. I did not use it however for a few months and now i get a 'Redirect is not allowed for a preflight request' error when my LWC tries to make an ...
Dane's user avatar
  • 167
1 vote
2 answers
304 views

Using LWC in a VF page (Lightning Out) is causing issues with the old VF page behavior

We have a VisualForce page which is used to be the config page for a managed package, there we have a lot of logic, and everything worked fine before adding an LWC using the lightning out. All the ...
Elivelton Walter's user avatar
1 vote
0 answers
389 views

OmniOut + localhost:4002 error

Premise: I want to host my Omniscripts in a third-party CMS system but before that I have to demo that I can display my Omniscripts even on localhost. I followed this and this. My node version is 14....
user43598's user avatar
  • 517
0 votes
1 answer
246 views

Auth Token Vulnerability with Lightning out

I have been assured by 2 Archtects that there is no security issue here but I want to ask the wider community because i sense a security vulnerability looming. Below is the standard markup for ...
Dane's user avatar
  • 167
1 vote
1 answer
119 views

Visualforce handler not invoked when event fired in aura component

I'm using an aura component in a visual force page. Aura Component: RichInputText.cmp <aura:component> <aura:attribute name="bodyVal" type="String" /> <!-- ...
Ibrahim Ahmed's user avatar
1 vote
0 answers
73 views

slds modal in inline visualforce page

I'm using lightning out to put my lwc in classic record page. Everything works, except the slds modal open within the hight of inline vf page rather than as an overlay. In lightning, this works ...
vishesh's user avatar
  • 763
6 votes
1 answer
1k views

Lightning Out : Uncaught ReferenceError: $A is not defined when user is not logged in

I want to use my LWC'in an External Site (Heroku). For it I use Lightning Out. I have built a simple Aura Application (in my Sandbox) according to documentation here : Lightning Out Dependencies <...
Vitalii Dehnerys's user avatar
2 votes
1 answer
531 views

Screen Flow Error on an External Web Application

I am embedding a Salesforce screen flow in my web application using Lighting Out feature. It worked for very basic screen flow with 2 screens but when I used a complex screen flow it is showing me ...
Rohan Thakur's user avatar
1 vote
0 answers
113 views

Lightning out authentication for website VS mobile App

I am creating a Lightning Out Component(LOC) that will be used in website XYZ available after login to that website. So i am a website XYZ user and I have logged in and the LOC is now visible to me. ...
Dane's user avatar
  • 167
1 vote
0 answers
180 views

Provide a Single LWC to a User - Licensing & Design

I'm working on a use case where an organization uses Salesforce as it's primary desktop solution for it's employee base where the employees have a full Salesforce license. A custom lightning web ...
S.B.'s user avatar
  • 2,131
7 votes
1 answer
3k views

Lightning Out : getting "No 'Access-Control-Allow-Origin' header is present on the requested resource" from Heroku App

---------- THE EXPLANATION ---------- I need to use my LWC's in an External Site. For it I use Lightning Out, and I want to test it with Heroku App. I have built a simple Aura Application according to ...
Vitalii Dehnerys's user avatar
1 vote
1 answer
2k views

Handle LWC event in Visual force page

I have overridden Standard "convert Lead" button with a Visual force page. LWC component is inside Visual force page using Lightning out. When I click Cancel button in LWC component, I want ...
Sudhir Balijepalli's user avatar
0 votes
1 answer
153 views

Embed LWC row buttons in Visualforce? Actionfunction oncomplete not working

I need to embed an LWC stateful button component in the rows of VisualForce output that appear after being refreshed from an apex:actionfunction call to an Apex custom set controller. The purpose is ...
skycafe's user avatar
  • 397
1 vote
0 answers
43 views

LWC Application not running outside of salesforce [duplicate]

Hi I'm new to salesforce, I have one requirement to use my LWC Component outside salesforce, I have searched in google is there any possible way, finally I found one approach to use Lightning out ...
Madhu Gangumolu's user avatar
5 votes
0 answers
701 views

reCaptacha in iFrame LWC Lightning Out - external website

I am trying to use reCapatcha in LWC using iframe, it works fine on the lightning record page, however the same component I am using on an external website using lightning out. The iframe is refuse to ...
Ajay 's user avatar
  • 1,609
2 votes
2 answers
3k views

Lightning out in external site as guest

I am trying to build a simple lightning out on my local host which should be available for guests. I have several issues: I assume that the user does not need to do any log in of any kind because i ...
Dane's user avatar
  • 167
1 vote
1 answer
704 views

How to check if LWC component is available for Lightning out

I have several components which have complex logic (Platforn events , Message service) How to check if LWC component/module is available for Lightning out and will work there ? Any help will be ...
Vitalii Dehnerys's user avatar
2 votes
1 answer
260 views

Using several LWC's in another system using Lightning out

I have a managed package with a custom lightning page and several LWC's placed on it. And I need to know Do we have the possibility to place this lightning page using "lightning out" into ...
Vitalii Dehnerys's user avatar
2 votes
2 answers
2k views

"LIGHTNING OUT" is not working on Visualforce page set as "Inactive Site Home Page" when community is inactive

I've got the requirement to prepare a page that will be displayed to users when the Community is inactive. I prepared a Visualforce page and set this as "Inactive Site Home Page" in the ...
Nobi992's user avatar
  • 370
0 votes
1 answer
14k views

This page has an error. You might just need to refresh it

I am trying to put a flow in a lwc using this. However when I put this flow on external website using lightning out the flow works fine for the first two screen but throws This page has an error. You ...
zachary edgell's user avatar
1 vote
0 answers
547 views

Lightning out App error in callback function From VF page

When trying to access my VF page I am facing the following error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://mydomain-dev-ed-dev-ed.lightning.force.com') ...
Gabriel Serrano Salas's user avatar
7 votes
3 answers
3k views

How to subscribe to events from LWC embedded in Visualforce

I have an LWC which subscribes and display a custom Platform Event import { LightningElement } from 'lwc'; import { subscribe, unsubscribe, onError } from 'lightning/empApi'; export default class ...
Robert Sösemann's user avatar
3 votes
0 answers
4k views

Get field Label in LWC for custom Object in Lightning Out for Managed Package

I have a component where I need to get field Label. import { LightningElement, wire, api, track } from 'lwc'; import CUSTOM_OBJECT from '@salesforce/schema/CUSTOM_OBJECT__c'; import { getObjectInfo } ...
Manjot Singh's user avatar
  • 3,556
2 votes
0 answers
997 views

Lookup search modal not working for lightning-input-field component in lightning out for LWC

As visible in the screenshot below, The lightning-input-field component along with lightning-record-edit-form is used to generate this view. LWC is embedded inside the Visualforce page using the ...
Akshay Poddar's user avatar
2 votes
0 answers
232 views

Lightning Out gives 404 erors for LWC files

I am using Lightning Out to embed a component into my NodeJS web-application. I use JWT+Connected App to authenticate users. I am able to pass different usernames and log in under different users. I ...
Konstantin Borisov's user avatar
4 votes
2 answers
6k views

Can any LWC be hosted in any external website without a user logging in?

I see a lot online about Lightning Out, Embedded Service, and other things, but can't get a clear answer on this and I'm not a web developer so a lot of it is opaque. Can any LWC be hosted on any ...
number41's user avatar
  • 980
1 vote
0 answers
75 views

Can LWCs be used in Mobile SDK Hybrid Local Apps?

I see that as of v8.2, the Mobile SDK can use LWCs in Hybrid Apps. But looking closer, it looks like they can only be used in Hybrid Remote Apps and note Hybrid Local apps. Our current app is a hybrid ...
Rozgonyi's user avatar
  • 627
1 vote
1 answer
287 views

Avoid errors in standard Salesforce delegate.js file when opening packaged lwc inside VF page in subscriber org without My Domain feature enabled?

I have build functionality for my client using the latest LWC framework and shipped that functionality as Managed Package (2GMP). Unfortunately, the client doesn't have MyDomain feature enabled so my ...
Patlatus's user avatar
  • 17.4k
1 vote
1 answer
402 views

Lightning Out/Appointment Scheduling CORB issue

I have an FSL scheduling flow that is on a public community page, and am trying to expose it on an external site via lightning out (https://help.salesforce.com/articleView?id=ls_expose_flow_on_website....
Matt Bratton's user avatar
1 vote
2 answers
2k views

Salesforce Classic + LWC inside Visualforce + Platform Events?

A new component I'm building uses Platform Events to communicate async server-side changes to the front end. This works great in LWC in Lightning Experience using empApi, but empApi isn't supported ...
Matthew Souther's user avatar
1 vote
2 answers
2k views

Flow exposed in external website using Lightning out - Not Rendering, no error

What I did Aura Component <aura:component> <lightning:flow aura:id="flowData"/> </aura:component> Controller ({ init: function (component, event, helper) { ...
AjFmO's user avatar
  • 292
1 vote
0 answers
633 views

Creating a basic Lightning App that will display an Einstein Analytics Dashboard using Lightning Out

I'm trying to create a basic Lightning App that will display a Dashboard from Einstein Analytics. Here's the code that I'm using. CMP <aura:component access="global" > <wave:...
Naofumi Kun's user avatar
1 vote
1 answer
2k views

Load time of '<lightning-input-field>' of LWC is much higher than '<apex:inputfield>' of VF page

I am trying to create an LWC which is similar to a VF page. I have inserted the LWC on the VF page using lightning out. The VF page uses <apex:inputfield> to take input from the user in a ...
Koustubh's user avatar
  • 1,203
1 vote
1 answer
773 views

Unable to fire toast events and apex controller methods from a lightning component called from a visualforce page through ltng:outApp

I am stuck with a simple requirement that turned complex altogether. I simply had to get rid of a javascript button to make it lightning compatible. I decided to create a lightning component and ...
Shobhit Saxena's user avatar
0 votes
1 answer
539 views

Authentication in Lightning Out by passing Session Id

In below VF page <apex:page showHeader="false" sidebar="false" cache="false" standardStylesheets="false"> <apex:includeLightning /> &...
Aakash's user avatar
  • 1
1 vote
1 answer
292 views

Salesforce Custom label for lightning component does not kick off localization

We have managed package with lightning component hosted in VF page via lightning out .Localization does not kick off for non-english user .This works perfectly fine in scratch org but not with the ...
Debadyuti Sil's user avatar
3 votes
1 answer
676 views

'No component definition' warning for LWC even though I defined the component on VF page (Lightning Out)

I am using Lightning out to display LWC on VF page. I have included the definition of LWC on the VF page. Even then, my LWC loads very slowly on the VF page and I get the following warning in the ...
Koustubh's user avatar
  • 1,203
0 votes
1 answer
87 views

How to destroy LightningOutApp

Can anyone please help me. I have implemented the LightningOut using visual force page to call a lightning component. When I am trying to destroy the lightning component using destroy() which is ...
Sharma_raj's user avatar
0 votes
0 answers
114 views

How do I expose a standard ui layout page as an externally facing website?

I am planning on adding a few custom objects and require a page to be exposed publicly. I have looked at both visualforce and lightning out, but am confused about the best practices. Can I expose a ...
Kyle J V's user avatar
  • 285
0 votes
1 answer
2k views

$lightning.createcomponent callback function return before component setCallback

Lightning App: NewOppLEXApp <aura:application extends="ltng:outApp" access="GLOBAL"> <aura:dependency resource="c:OpportunityLEX" /> </aura:application&...
sfdc rowdy's user avatar
4 votes
2 answers
971 views

Externally hosted Javascript is unable to access Visualforce page

From my Visualforce page I am calling an externally hosted Javascript app: <apex:page> <apex:iframe src="https://external.com/index.html" id="theFrame" /> </apex:...
Robert Sösemann's user avatar
3 votes
0 answers
642 views

Redirect from LWC embedded via Visualforce in Page Layout fails

I have an LWC component that needs to log in via an OAuth flow before it can be used. If unauthenticated the component first redirects to an external Login page after the user clocks a button. <...
Robert Sösemann's user avatar