 Hello friends. I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate how you can upload a file using Lightning Flow in Salesforce. If you want to follow Salesforce training videos, you can search my name Sanjay Gupta on YouTube and you can follow my YouTube channel. Here various playlists related to Salesforce and other programming languages are available. So to implement this scenario, I have already implemented a flow that is on contact. So I'm going to create a contact record. So on contact last name is required. So I'm going to use that field. So I will be filling last name only. And here you can see in the sources I created a variable that is record ID. So this record ID will be off account. So this contact will be automatically associated with an account. And here I'm going to create a record. So contact record will be created. So record ID will assign account ID into account ID variable that is available on contact. And last name will be field. Then after this record creation, I'm going to fetch the record ID of newly created contact record. So here we can store contact ID in a variable. So let's say I'm creating a new resource. It's type is variable and API name is contact ID and it is of text type and I'm clicking on done. So after contact record creation newly created records ID will be available in this contact ID variable. So now I'm going to place one more scheme where I will put a component for file upload. So here I'm putting upload file. So this is the label for screen. Now, here you can search file upload so you can drag and drop it. Right inside you can provide the API so contact file upload. Then this is file upload label. So upload a file. This will be the label. And now here I need to put the related record ID with which this uploaded file will be attached. So that will be contact ID. So I'm picking up that. So automatically the uploaded file will be related to this contact ID. So I'm clicking on done. Now I'm connecting this. So it is connected. I'm saving it as a new version. So it is saved. Now I'm going to activate so it is just okay. So the screen includes screen components that require lightning runtime. So we will be running it in lightning experience. So right now I'm activating this now moving to account record. So on account I'm going to put this flow. Sorry. So I need to click on edit page. And on each account record this flow will be available where you can put contact related details. And along with you can upload a particular file that will be automatically associated with a contact. So just drag and drop this flow here. And yeah, this is create contact. So I'm saving this. So this is one way to put lightning screen flow on record page. If you want to run this screen flow through protection so you can do that as well. So that video is available in the playlist related to lightning flow on my YouTube channel. So you can watch that. So after this flow edition you will see on contact record flow will be available. So here it is available. So let's say I am putting last name as Gupta and clicking on next. So you can see contact is created. Now it is asking for a file to be uploaded. So let's say I am uploading this file. So this file is uploaded. I'm clicking on done and clicking on finish. So here you can see contact record is created. Now I'm going to open it in new window. Sorry new tab. So this contact record will be having a file in file related list. So here I need to check. Yeah. So here it is available in notes and attachment. Right. So this file I uploaded. So it is automatically available here. Right. So now I'm moving to setup and searching for the contact object and open the page layout. So this is a layout that I'm using. So here you will see we can attach one more related list that is fine. Yeah. So you can attach this so you can simply drag and drop it. So it will be available on your page layout. So you can use notes and attachment or you can use files. So both will be available on your page. So here you can see notes and attachment and files both are having the uploaded file. So you can use a particular related list that is required in your scenario. And yeah. So this is the explanation how we can upload a file with enlightening flow. So in this flow, you can see I use this screen component that is upload file. And if you want to watch more Salesforce training videos, you can search my name Sanjay Gupta on YouTube. And in my YouTube channel, you can see various playlist related to Salesforce and other programming. Thank you for watching this video.