Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
0 answers
44 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
1 vote
0 answers
2k 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
77 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
42 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
0 answers
151 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
  • 1,818
0 votes
0 answers
99 views

lightning out "runtime_appointmentbooking:lightningOutGuest" does not work

I have been trying to embed Salesforce Scheduler flow to my external website. When I deploy the following code, bootstrap.js and inline.js returns 404 error. (Let's say https://xxx.my.site.com/ is ...
mkzyk's user avatar
  • 55
0 votes
1 answer
133 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
42 views

How to open a Flow from a custom action using a visualforce page?

I am trying to increase the size of the flow by using a visualforce page from a custom button. This is the following code that I am using but I can never get it to actually launch the flow but instead ...
Cathy's user avatar
  • 73
0 votes
0 answers
57 views

Unsafe attempt to load URL https://static.lightning.force.com/na224//insights/gen/static/wave/images/WaveCommon/static/icons/sprite.analytics..svg

i want to show the analytics dashboard in vf page so i used lightning out to show a dashboard in vfpage it was working fine but now it shows this bugs Unsafe attempt to load URL https://static....
Deena Vicky's user avatar
0 votes
0 answers
143 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
163 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
  • 139
1 vote
2 answers
222 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
288 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
  • 487
0 votes
1 answer
210 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
  • 139
1 vote
1 answer
109 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
67 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
1 vote
1 answer
465 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
108 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
  • 139
1 vote
0 answers
167 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,071
7 votes
1 answer
2k 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
144 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
42 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
657 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,589
2 votes
2 answers
2k 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
  • 139
1 vote
1 answer
674 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
231 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
13k 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
499 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,516
2 votes
0 answers
955 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
215 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
5k 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
  • 948
1 vote
0 answers
62 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
  • 617
1 vote
1 answer
265 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
  • 17k
1 vote
1 answer
386 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
1k 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
629 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,143
1 vote
1 answer
721 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
504 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
270 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
636 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,143
0 votes
1 answer
82 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
108 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
  • 287
0 votes
1 answer
1k 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