1. Event/Function Object
1.1. Add the Related List ”Event Value Mappings” on the “Event/Function Layout” Page Layout of the Event/Function Object.
Feature: Delegate Sync to Campaign Member Status
Object Name: Event/Function
Page Layout Name: Event/Function Layout
Related Lists: “Event Value Mappings”
-
Click the Settings Edit Tool on the Event Value Mappings Related List, and add the following fields to the Selected Fields List if they are not already listed in the Selected Fields List.
“Event Value Mapping Name”, “Type”, “From Field”, “To Field”, “From Value”, “To Value”, & “Last Modified By”
Click “OK” and Click “Save”.
1.2.1. Edit the Page Section called “Booking Options” and change the Section to a 2-Column Section if this was not already a 2-Column Section, on the “Event/Function Layout” Page Layout of the Event/Function Object.
1.2.2. Add the fields “Booker Form”, “Booker Delegate Comms Permissions”, “Booking Reservation Timeout (Mins)”, “Booking Reservation Timeout Ext (Mins)”, &“Booking Backed Timeout (Mins)” to the section “Booking Options” on the “Event/Function Layout” Page Layout of the Event/Function Object.
Feature: Booking Wizard
Object Name: Event/Function
Page Layout Name: Event/Function Layout
Section Name: Booking Options
Fields Column 1: “Booker Form”, & “Booker Delegate Comms Permissions”
Fields Column 2: “Booking Reservation Timeout (Mins)”, “Booking Reservation Timeout Ext (Mins)”, &“Booking Backend Timeout (Mins)”
Click “Save”.
1.3. Edit the Related List “Event Bookings” on the “Event/Function Layout” Page Layout of the Event/Function Object.
Feature: Booking Wizard
Object Name: Event/Function
Page Layout Name: Event/Function Layout
Related Lists: “Event Bookings”
Remove field: “Total Price Of Items”
Add field: “Total Price Of Confirmed Items”
Order the field “Total Price of Confirmed Items” below “Booking status Date/Time”
Click “Ok” and Click “Save”.
1.4. If you are using your own EventSpark Flexipage, update the Event/Function Flexipage to include a Quick Action named ”Manage Event Value Mappings” below “Generate Documents”, as well as add the Tab “Event Value Mappings” after “Delegate Bulk Update”, and set the parameters as mentioned below.
Feature: Delegate Sync to Campaign Member Status
Flexi Page: Event or Function Record Page
Quick Actions: “Manage Event Value Mappings”
Visibility: EventSpark_Management_User = true
Tab: “Event Value Mappings”
Visibility: EventSpark_Management_User = true
Move Custom Component eventValueMappingManager to this Tab.
Select the Event/Functions Tab
Select an Event/Function Record
While on an Event/Function Record, select the Setup Cog and select “Edit Page”.
While on the Lightning Record Pages, click on the drop down component, Click “Add Action” and select “Manage Event Value Mappings” , and select “Delegates” on the right.
-
On the Action “Manage Event Value Mappings”, select Filter and add an Advanced Filter as shown below:
Field=Permission > Custom Permission > EventSpark_Management_User
Operator=Equal
Value-=True
Click Done, and Done, and Done.
While on the Lightning Record Pages, click “More” at the Tabs, click “Add Tab”, select the “Event Value Mappings” Tab and move it below “Delegate Bulk Update”.
-
On the Tab “Event Value Mappings”, select Filter and add an Advanced Filter as shown below:
Field=Permission > Custom Permission > EventSpark_Management_User
Operator=Equal
Value-=True
Click Done, and Done, and Done.
Select the Tab “Manage Event Value Mappings”, scroll dont on the left to find the “Event Value Mappings” component under Custom Components, and drag it onto the page:
Then Click “Save” at the top right of the page.
2. Event Booking Object
2.1. Add new Picklist Values to the field named “Booking Status” under Fields and Relationships of the “Event Booking” Object. The name of the values to be added are “Check Out” & “Abandoned”.
Feature: Booking Wizard
Object Name: Event Booking
Fields & Relationships Name: Booking Status
Picklist Label & Value: “Check Out” & “Abandoned”
While on the “Event Booking” Object, under Fields & Relationships search for the “Booking status” Field, and select it.
Scroll down to Values
Add new picklist values “Check Out” & “Abandoned”,
Assign it to all record types and click “Save”.
Reorder “Check Out” to be above “Confirmed”.
2.2. Add the field “Status” to Selected Values of the Related “Event Booking Items” on the “Event Booking Layout” Page Layout of the “Event Booking” Object.
Feature: Booking Wizard
Object Name: Event Booking
Page Layout Name: Event Booking Layout
Related List Name: Event Booking Items
Fields: “Status”
Click “Ok” and click “Save”.
2.3. Update the Event Booking Flexipage and remove the Component.
Feature: Booking Wizard
Object Name: Event Booking
Flexi Page: Event Booking Record Page
Component: Remove Booking Delegates
On the Waffle, search for Event Booking
Select an Event Booking Record
While on an Event Booking Record, select the Setup Cog and select “Edit Page”.
Remove the component “Booking Delegates” by selecting the Bin at the top right, if it is still on the page.
Click “Save”.
3. Event Booking Item Allocation Object
3.1. Add a new Picklist Value to the field “Allocation Status” under Fields and Relationships of the Event Booking Item Allocation Object. The name of the value to be added is “Abandoned”.
Feature: Booking Wizard
Object Name: Event Booking Item Allocation
Fields & Relationships Name: Allocation Status
Picklist Value: “Abandoned”
Reorder “Abandoned” to be above “Allocated”.
Assign it to all record types and click “Save”.
4. Organizing Entity Object
4.1. Add a new Picklist Value to the two fields, namely, “Clone Event Default Settings” & “Clone Event Required Settings” under Fields and Relationships of the “Organizing Entity” Object. The name of the value to be added is “Copy value mappings”.
While on the “Organizing Entity” Object, under Fields & Relationships search for the “Clone Event Default Settings” Field, and select it.
Scroll down to Values
Add new picklist value “Copy value mappings”,
Assign it to all record types and click “Save”.
Reorder “Copy value mappings” to be above “Copy document rules”.
While on the “Organizing Entity” Object, under Fields & Relationships search for the “Clone Event Required Settings” Field, and select it.
Scroll down to Values
Add new picklist value “Copy value mappings”,
Reorder “Copy value mappings” to be above “Copy document rules”.
Assign it to all record types and click “Save”.
5. Delegate/Guest Object
5.1. Add a new Picklist Value to the field “Campaign Member Sync” under Fields and Relationships of the Delegate/Guest Object. The name of the value to be added is “Synced”.
Feature: Campaign Member Status Sync
Object Name: Delegate/Guest
Fields & Relationships Name: Campaign Member Status
Value: “Synced”
Click “Save”.
6. Campaign Object [Optional]
6.1. Add the Related List ”Campaign Member Status” on the “Campaign Layout” Page Layout of the Campaign Object.
Feature: Delegate Sync to Campaign Member Status
Object Name: Campaign
Page Layout Name: Campaign Layout
Related Lists: “Campaign Member Status”
7. Classic Email Templates
7.1. Update the wording of the following three Classic Email Templates.
Feature: Booking Wizard
Classic Email Template Names: “Registration/RSVP Confirmation”, “Reminder to Attend", & "Reminder to Attend Virtual Event"
Go to Setup and search for “Classic Email Templates”
-
Under the EventSpark Folder, select the Email Template label for the following 3 Templates:
Registration/RSVP Confirmation
Reminder to Attend
Reminder to Attend Virtual Event
Select “Edit Template” on each Email Template and update the HTML for all three templates.
-
Registration/RSVP Confirmation
Replace the following code block with the new code snippet below:
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel' }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.evsprk__Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel><!-- When Using Booking Wizard -->
<apex:outputPanel layout="none" rendered="{! !ISBLANK(relatedTo.Event_Booking__c)}">
<p>
If you would like to manage your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<!-- When Using Registration Form -->
<apex:outputPanel layout="none" rendered="{! ISBLANK(relatedTo.Event_Booking__c)}">
<apex:outputPanel layout="none" rendered="{! (relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel') }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
</apex:outputPanel> -
Reminder to Attend
Replace the following code block with the new code snippet below:
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel' }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.evsprk__Invitation_URL__c}">here</a>.
</p><!-- When Using Booking Wizard -->
<apex:outputPanel layout="none" rendered="{! !ISBLANK(relatedTo.Event_Booking__c)}">
<p>
If you would like to manage your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<!-- When Using Registration Form -->
<apex:outputPanel layout="none" rendered="{! ISBLANK(relatedTo.Event_Booking__c)}">
<apex:outputPanel layout="none" rendered="{! (relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel') }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Registration_Method__c!='Invitation Only' }">
<p>
If you would like to register someone else, click
<a href="{!relatedTo.Event_Function__r.Event_Homepage_URL__c}">here</a>.
</p>
</apex:outputPanel>
</apex:outputPanel> -
Reminder to Attend Virtual Event
Replace the following code block with the new code snippet below:
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel' }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Registration_Method__c!='Invitation Only' }">
<p>
If you would like to register someone else, click
<a href="{!relatedTo.Event_Function__r.Event_Homepage_URL__c}">here</a>.
</p>
</apex:outputPanel><!-- When Using Booking Wizard -->
<apex:outputPanel layout="none" rendered="{! !ISBLANK(relatedTo.Event_Booking__c)}">
<p>
If you would like to manage your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<!-- When Using Registration Form -->
<apex:outputPanel layout="none" rendered="{! ISBLANK(relatedTo.Event_Booking__c)}">
<apex:outputPanel layout="none" rendered="{! (relatedTo.Event_Function__r.Allow_Delegates_To__c=='Update' || relatedTo.Event_Function__r.Allow_Delegates_To__c=='Cancel') }">
<p>
If you would like to update your registration please click <a href="{!relatedTo.Invitation_URL__c}">here</a>.
</p>
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{! relatedTo.Event_Function__r.Registration_Method__c!='Invitation Only' }">
<p>
If you would like to register someone else, click
<a href="{!relatedTo.Event_Function__r.Event_Homepage_URL__c}">here</a>.
</p>
</apex:outputPanel>
</apex:outputPanel>7.2. Remove “showBookingSummary="true"“ & “showTicketPrice="true"“ from four of five of the “Event Booking” Classic Email Templates .
Feature: Booking Wizard
Classic Email Template Names: “Event Booking Confirmation”, “Event booking Incomplete”, “Event Booking Payment Reminder”, & “Event Booking Reminder”
Go to Setup and search for “Classic Email Templates”
-
Under the EventSpark Folder, select the Email Template label for the following 4 Templates:
Event Booking Confirmation
Event booking Incomplete
Event Booking Payment Reminder
Event Booking Reminder
Select the Label and edit all four (4) Classic Email Templates show below:
Click “Edit Template” to update the HTML of the four (4) Classic Email Templates.
Remove the following two attributes from the code block of all four (4) Classic Email Templates and click “Save”:
8. Booking Wizard Data Upgrade Script
8.1. Go to “Developer Console” under “Setup”, and copy and past the upgrade script in the “Anonymous Execute” window.
/**
* @description Makes data changes when migrating from EventSpark v3.0 to EventSpark v3.1.
* These include:
* Event Booking records that are in Reserved Status
* Event Booking item records: Supplements Status pwhich is a new v3.1 field
* Event/Function records that use the Booking Wizard. Sets default timeout fields.
* Does not register delegates where Booking Status = Confirmed.
* These Delegates will only be registered when Booking Status = Completed.
* @author SparkSmiths | 27-09-2024
**/
// Update all Event Booking records that are in Reserved Status to Check Out
List<evsprk__Event_Booking__c> eventBookings = [SELECT Id, evsprk__Booking_Status__c FROM evsprk__Event_Booking__c WHERE evsprk__Booking_Status__c = 'Reserved'];
System.debug(LoggingLevel.DEBUG, 'Number of Event Booking Records: ' + eventBookings.size());
for (evsprk__Event_Booking__c eventBooking : eventBookings){
eventBooking.evsprk__Booking_Status__c = 'Check Out';
}
update eventBookings;
// Retrieve all Event_Booking_Item__c records. Status must be set.
List<evsprk__Event_Booking_Item__c> bookingItems =
[SELECT Id, Name, evsprk__Status__c, evsprk__Event_Booking__c,
evsprk__Event_Booking__r.evsprk__Booking_Status__c, evsprk__Event_Booking__r.evsprk__Booking_Status_Date_Time__c FROM evsprk__Event_Booking_Item__c];
for (evsprk__Event_Booking_Item__c bookingItem : bookingItems) {
evsprk__Event_Booking__c eventBooking = bookingItem.evsprk__Event_Booking__r;
// Default Item Status to that of Booking Status
bookingItem.evsprk__Status__c = eventBooking.evsprk__Booking_Status__c;
bookingItem.evsprk__Status_Date_Time__c = eventBooking.evsprk__Booking_Status_Date_Time__c;
// Where need be change status explicitly
if (eventBooking.evsprk__Booking_Status__c == 'Confirmed'
|| eventBooking.evsprk__Booking_Status__c == 'Completed') {
bookingItem.evsprk__Status__c = 'Issued';
}
else if (eventBooking.evsprk__Booking_Status__c == 'Check Out') {
bookingItem.evsprk__Status__c = 'Reserved';
}
}
System.debug(LoggingLevel.DEBUG, 'Number of Event Booking Items to update: ' + bookingItems.size());
update bookingItems;
// Update all Event/Function records that use the Booking Wizard to have timeout values
List<evsprk__Event_Function__c> events = [SELECT Id, evsprk__Booking_Registration_Tool__c, evsprk__Booking_Reservation_Timeout_Mins__c, evsprk__Booking_Backend_Timeout_Mins__c FROM evsprk__Event_Function__c WHERE evsprk__Booking_Registration_Tool__c = 'Booking Wizard'];
System.debug(LoggingLevel.DEBUG, 'Number of Event/Function records using Booking Wizard: ' + events.size());
List<evsprk__Event_Function__c> eventsForUpdate = new List<evsprk__Event_Function__c>();
for (evsprk__Event_Function__c event : events) {
Boolean updateRecord = false;
if (event.evsprk__Booking_Reservation_Timeout_Mins__c == null || event.evsprk__Booking_Reservation_Timeout_Mins__c <= 0) {
event.evsprk__Booking_Reservation_Timeout_Mins__c = 15;
updateRecord = true;
}
if (event.evsprk__Booking_Backend_Timeout_Mins__c == null || event.evsprk__Booking_Reservation_Timeout_Mins__c <= 0) {
event.evsprk__Booking_Backend_Timeout_Mins__c = 120;
updateRecord = true;
}
if (updateRecord) {
eventsForUpdate.add(event);
}
}
System.debug(LoggingLevel.DEBUG, 'Number of Event/Function records to update: ' + eventsForUpdate.size());
update eventsForUpdate;Open Developer Console
At the Debug dropdown, select “Execute Anonymous”
Paste the copied code block into the window and click “Execute”.