This article aims to help Admins create a custom "Cancel" or "Delete" button in the Salesforce Event that Chili Piper creates. Once live, the button will allow your Chili Piper Users to remove a meeting from your users' calendar via a click of a button.
Notes:
- The button will not work for meetings not booked with Chili Piper
- The button will not work if the user attempting to click the button is not a Chili Piper User
This button will allow any Chili Piper user the ability to cancel a button. If you want to limit which users can cancel meetings, you may not want to include this button on that user's SFDC Page Layout.
We also have a Public Cancel URL that can be used by either prospects or anybody on your team with access to the URL, which will delete/cancel a meeting. Click here for more info.
Steps
Salesforce Classic:
- Navigate to "Setup" in Salesforce
- Go to the "Event Buttons and Links" section
- Build -> Customize -> Activities -> Event Buttons and Links
- Click "New Button or Link"
- Configure the Button using the following data:
- Label: Cancel (or Delete) - Your call!
- Name: Cancel (or Delete)
- Display Type: Details Page Button
- Behavior: Display in new window
- Content Source: URL
- Select Field Type: Event
-
Link to Add:
https://api.chilipiper.com/cancel/{!CASESAFEID(Event.Id)}
-
The public cancel URL with the following structure (this allows any user, not necessarily a logged in Chili Piper user, to cancel an event):
https://subdomain.chilipiper.com/book/cancel/{!CASESAFEID(Event.Id)}
-
- Link Encoding: Unicode (UTF-8)
- Click Save.
Your button setup should match the picture below.
Add button to Event Layout
Navigate to Customize -> Activities -> Event Page Layouts. “Edit” the Event Page Layout.
From the Buttons category in the palette, drag "Cancel" into the Custom Buttons area on the page layout.
Lightning View
- Navigate to "Setup" in Salesforce
- Go to the "Object Manager" and select "Event," then "Button, Links, and Actions"
- Event -> Button, Links, and Actions
- Click "New Button or Link"
- Configure the Button using the following data:
- Label: Cancel
- Name: Cancel
- Display Type: Detail Page Button
- Behavior: Display in new window
- Content Source: URL
- Select Field Type: Event
-
Link to Add:
https://api.chilipiper.com/cancel/{!CASESAFEID(Event.Id)}
- Link Encoding: Unicode (UTF-8)
- Click Save.
Your button setup should match the picture below.
Add button to layout
Navigate to Setup -> Object Manager -> Event -> Page Layouts. “Edit” the Event Page Layout.
From the Buttons category in the palette, drag "Cancel" into the Custom Buttons area on the page layout.
End Result
The Button you created should appear in your events.
In Lightning, you must create a page layout to display more than three buttons.
Classic View
Lightning view:
Clicking the Button
When you click the button, if it is successfully deleted, you will see the message: "Event was successfully canceled".
Tracking when a meeting is canceled
Remember that you can cancel/delete an event from the Google or Outlook Calendar but keep the event in Salesforce for tracking.
To do this, remember to add the custom field "Canceled_CP" to your Salesforce and disable the setting within CRM - Workspace Preferences "If a meeting is deleted in Google/O365, delete the meeting in Salesforce as well" then Chili Piper will check the field within Salesforce, so you know the event was canceled.
Here's the Custom Field you need to add to "Activity Custom Fields"
And here's the setting to make sure you uncheck if you want the Event to stay in Salesforce: