function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nevin O'Regan 3Nevin O'Regan 3 

Relate Contact To Custom Object Through A Flow

I have create a custom button on a custom object called Application__c, that launces a flow in lightning. The flow creates a contact record from within the custom object Application__c. 
I would like the created contact to be automatically related to the Application where it was created from.
Below is the custom button. Can anyone help me with this?

<apex:page standardController="Application__c ">
    <flow:interview name="ContactCreate" finishLocation="/{!Application__c.Id}"></flow:interview>
      <apex:param name="varRecordId" value="{!Application__c.Id}"/>
</apex:page>