We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

sujitha16
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.