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
Jonathan Wolff 7Jonathan Wolff 7 

Apex action to get inputs from flow and redirect to website

Hello,

I have the following requirement:
I want to add an Id to from my flow into an apex action.
The value from the flow has the name {URLComponent.baseId}

With this input I want to have a query that finds the related record of a custom object type where the ID is linked with. In the related record I have a field with an website link in it. So the flow should perform an action where the website, which is linked in the field is automatically opened.

Kind regards
Jonathan wolff
PriyaPriya (Salesforce Developers) 

Hey Jonathan,

Kindly check if this documents help you :- 

https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_apex_invocable.htm&type=5 (https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_apex_invocable.htm&type=5)

Thanks & Regards,

Priya Ranjan