<apex:pagesidebar="false"showHeader="false" > <html> <head> <apex:includeLightning /> </head> <bodyclass="slds-scope"> <divid="flowContainer" /> <script> // get url id parameter var queryString = window.location.search; var urlParams = new URLSearchParams(queryString); var RecordId =urlParams.get('Id'); var inputVariables = [ { name : 'RecordId', type : 'String', value :RecordId } ]; $Lightning.use("c:InputApp", function(){ $Lightning.createComponent("lightning:flow", { }, "flowContainer", function(cmp){ console.log("Component was created"); cmp.startFlow("ScreenFlow",inputVariables); console.log("Flow was created"); // do some stuff } ); }); </script> </body> </html> </apex:page>
<aura:componentcontroller="FileController"implements="lightning:availableForFlowScreens"access="global" > <aura:attributename="myRecordId"type="String"description="Record to which the files should be attached" /> <div> <inputtype="file"class="file"aura:id="file"onchange="{!c.FileOnchange}" /> </div> </aura:component>