Has anyone made a Lightning hack for a List Button that acts as a Hybrid for both Classic and Lightning? How'd you do it?
Context: I'm running a pilot of some users on Lightning and I have an Event custom List button with pre-filled values I tried to use an if statement that checks if the user is in Lightning and if so serve up the Lightning Page if not serve up the Classic one, the Lightning piece works, the Classic now gives me a "URL no longer exists" error.
Button URL:
(IF($User.UITheme) == 'Theme4d',
'/lightning/o/Task/new?&defaultFieldValues=
WhatId='&{!Opportunity.Id}&
',RecordType=01260000000Lvyb,
who_id='&{!$User.Id},
'/00U/e?what_id='&{!Opportunity.Id}&
'&who_id='&{!$User.Id}&
'&RecordType=01260000000Lvyb&
retURL='&{!Opportunity.Id})
Theme Detection: https://developer.salesforce.com/blogs/isv/2016/04/introducing-ui-theme-detection-for-lightning-experience.html