Add a new step called "Get a row by ID." Select the Contacts table and use the following code in the "Row ID" field:
Save the flow and copy the generated HTTP POST URL. Afterward, return to your solution and open the appropriate Model-Driven App, such as Customer Insights - Journeys.
In the navigation pane, select the entity's view and click on "Edit command bar."
Choose the "Main grid" option.
Add a new command button and name it, for example, "RunFlow."
In the Properties pane, set the action to "Run Javascript." Click on "Add Library," followed by "New web resource."
Create a local JavaScript file named
sendHttpRequestInView.js with the following code:
Replace the placeholder in the flowUrl variable with the HTTP POST URL you copied earlier and save the file.
Upload the JavaScript file as a new web resource by clicking "Choose file" and selecting your saved script.

Save and publish the web resource, then return to the "Add Javascript Library" dialog. Search for the uploaded web resource by its name, such as sendHttpRequestInView, and select it.
In the Properties pane, add sendHttpRequestInView as the function name and set "PrimaryControl" as Parameter 1.
Adjust the visibility settings by selecting "Show on condition from formula" in the visibility dropdown. Open the formula bar and enter the following code:
This ensures that the button is only visible when exactly one entity is selected in the view.
Finally, test the functionality to confirm everything is working correctly.
I hope these instructions have helped some of you.