Global button new event - what id population

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
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???
 
Photo of Glenn Daly

Glenn Daly

  • 1,560 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,240 Points 5k badge 2x thumb
Glenn,

I'm not sure if it's possible or not. You might try setting the WhatId of the event to be the id page params and see what happens (it might catch the page parameters). You could make the condition deactivate if the parameter is not provided and hopefully that will take care of your list page situation. Let us know how it goes!