0

I created a web tab to display an external web application. This is what happens in Classic and Lightning:

Classic - The web tab loads the web application and I can even login into the application. CSS, and other resources gets loaded automatically. No issues here.

Lightning - The application doesn't load and I get the following error:
File not found The resource that you have requested was not found. Please check the link and try again.

I decided to whitelist CORS with the web application URL but the result is the same.

Have you come across this and if so, how to load the external application inside Lightning experience using Web Tabs?

  • does the site which you are loading allow iframing i.e. does it allow to be embeded in a iframe? – Rohit C Jan 15 at 13:59
  • I don't have ownership to the site but I think yes because when I try to create a lightning component and use iframe to display the external app and preview the component inside a lightning application, then it works perfectly fine. – user3810861 Jan 15 at 14:52
  • Below is the code I am using to display the external application inside iframe of lightning component <aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global"> <iframe src="yourWebsiteURL.com" width="100%" height="1000px;" frameBorder="0"/> </aura:component> – user3810861 Jan 15 at 14:58
  • let me know if this link is helpful - success.salesforce.com/answers?id=90630000000hN39AAE – Rohit C Jan 15 at 15:38
  • Also , instead of a web tab , custom link can be used to achieve the same result. – Rohit C Jan 15 at 15:39
0

If anyone is looking for alternate solution, I am posting it here.

Create a lightning component with iframe and mention your external application url in the iframe.

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId, force:appHostable" access="global"> 
<iframe src="yourWebsiteURL.com" width="100%" height="1000px;" frameBorder="0"/> 
</aura:component>

Make sure you mention force:appHostable as it will allow you to inculde the lightning component under Setup>Tabs > Lightning Component Tabs.

Based on my research, web tabs didnt work is lightning because of the following reason however I am not definitive for my scenario. Read the response here (https://success.salesforce.com/answers?id=90630000000hN39AAE)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.