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 open Url from id

Hello,

I want to develop an apex action, that can open an URL when a certain ID is passed in. I created a formula. An ID should be passed into the action and then the URL should be opened. Could you show me a code that is able to achive this?
My formula example:

IF(CONTAINS({!URL_ID_Cmp.VTRURL}, '64191715'), 'https://www.company.com/linder',
IF(CONTAINS({!URL_ID_Cmp.VTRURL}, '64191717'), 'https://www.company.com/striepe',
NULL))