The CreatorCon Call for Content is officially open! Get started here.

need help to retrive url in Business rule

ManishKumaJ
Tera Contributor

Hi All,

I have before business rule , I am trying to get the URL when this business rule runs. Below is the statement that I am using. but i am getting as undefined. can someone help me here . How to get the url of the page where this business rule is executing

 // Get the current URL
    var currentUrl = gs.getRequestURI();
   
    // Log the current URL for debugging
    gs.info('Current URL: ' + currentUrl);
1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

@ManishKumaJ 

 

'gs.action.getGlideURI()' to retrieve URL parameters in a Business Rule.

 

Snippet of the syntax : 

 

SujathaVM_0-1712252227214.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.