You need to sign in to do that
Don't have an account?
Delinda Tinkey
Embed VF in Lightning Component on Community Pages
I have a flow embedded on a VF page and a lightning component with an iframe to the VF page. The VF page renders for me when I log into the community (Napili template), but not when I log in as an external user. I have ensured the external user has access to the VF page.
How can I expose this VF/flow to external users? Here's my lightning component:
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<iframe src="https://xxx.salesforce.com/apex/my_vf_page" width="100%" height="1000px;" frameBorder="0"/>
</aura:component>
How can I expose this VF/flow to external users? Here's my lightning component:
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<iframe src="https://xxx.salesforce.com/apex/my_vf_page" width="100%" height="1000px;" frameBorder="0"/>
</aura:component>
I have faced same problem as you... I realize that when the url is starts with "/apex/page_name" it gives 503 error. But if url starts with full adress "https://your-domain.salesforce.com/apex/page_name", it is opened.
So, to get full url I am using:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global">
<iframe src="{! '/apex/YourPageName'}" width="100%" height="500px;" frameBorder="0"/>
</aura:component>
Did you find a solution for this problem? I am stuck too.
Thanks,
Navita