Skip to main content
Nintex Community Menu Bar
Question

Logical test for Lightning or Classic Salesforce

  • July 11, 2024
  • 5 replies
  • 27 views

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.

This topic has been closed for replies.

5 replies

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”


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?


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


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?