Skip to main content
Nintex Community Menu Bar
Question

Logical test for Lightning or Classic Salesforce

  • July 11, 2024
  • 5 replies
  • 0 views
  • Translate

Forum|alt.badge.img+3

Is there a logical test to determine if the page is running in Lightning or Classic Salesforce?  I want to do a Row Action URL redirect…but the URL should be different for Lightning than for Classic depending on which environment the page is currently running in.

Did this topic help you find an answer to your question?
This topic has been closed for comments

Forum|alt.badge.img+13

You can use {{$Platform.name}} in merge syntax to get the name of the current platform, which will be either “lightning ” or “visualforce”

Translate

Forum|alt.badge.img+6

Forum|alt.badge.img+3

The page runs in a visualforce wrapper regardless of whether the user is clicking the tab from Classic or Lightning…won’t the Platform Name still show Visualforce regardless?

Translate

Forum|alt.badge.img+3

My use case here is that I need to redirect to a Salesforce report from a row action and pass a parameter from the row (record owner) to the report.  I mdoing this using the URL and appending the correct filter number…but the syntax is different for Classic and Lightning…“pv” vs “fv”  so the same URL doesn’t work in both

Translate

Forum|alt.badge.img+13

That makes sense, yeah the Platform Name will still say Visualforce in both cases. 

Could you pass both parameter values? Or does that not work?

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings