In this block, I am going to show you how we can get the current recordId (recordId from URL) in flow. So, open Setup >> Search for flow >> New Flow >> Screen Flow.
Step 1: Create a variable name “recordId”. Make sure the “Available for input” checkbox is checked.
Step 2: Drag the screen and add the variable name as below and Save.
Step 3: Add the flow on the record page to verify the recordId in the variable. Open the record page of the Account and click on the edit page.
Step 3: Drag the flow component on page and select your flow name. Give the same variable name as flow.
Step 4: Save the page and go back to your account record page. And you will see something like the below.
Hope you got your solution. You can comment below for any quires.
THANKYOU | HAPPY LEARNING