I have a global button (New Interaction)that appears on all pages in the top right hand corner as part of my master page (see below).
This creates a new salesforce event record
I want the WhatId on Event to be populated with the record id of the page that’s being looked at (unless of course it’s a list view). Is this possible, as the button is on the master page, which i guess isn’t associated with any record???