Set up Global Actions: New Task and New Event

For the correct operation of the Activity Sync functionality:

  • configure the display of the Type field for the following global actions: New Event and New Task.

    If you create a new Activity Sync setting with the filled CTCPG__StandardObjectCriteria__c or CTCPG__CustomObjectCriteria__c, the Type field will not affect the Activity Sync process.

  • add global actions on the Accounts and Contacts tabs.

  • specify the EventProcess and TaskProcess records in Trigger Settings. Also, check that the ActivityProcess setting is active.

Configure the Type field display

To display the Type field on the Accounts and Contacts tabs:

  1. Go to SetupUser Interface → Global Actions → Global Actions.

  2. Click Layout next to New Event.

  3. Drag-n-drop the Type field to the layout and click Save.

  4. Go to Setup → Users → Profiles → select the required profile.

  5. Go to the Field-Level Security section and click View next to Event.

  6. Add Read and Edit permissions to the Type field.

  7. Repeat steps 1–6 for the New Task object.

The setup is complete.

Add Global Actions

To add global actions, create a new Lightning page for the Account/Contact object and assign it to the CT CPG package and required profiles.

  1. Go to Setup → User Interface → Lightning App Builder → click New.

  2. Click Clone next to Account Page.

  3. On the right side, specify Label and Developer Name.

  4. Remove Activities and Objectives tabs.

  5. Drag-n-drop Activities from the left side list.

  6. Click Save and then click Activate.

  7. On the App, Record Type, and Profiles tab, click the Assign to Apps, Record Types, and Profiles button.

  8. Select CT CPG and other Lightning Apps (if needed) and click Next.

  9. On the next page, check the selected form factors (desktop and phone) and click Next.

  10. On the next page, select Master and click Save.

  11. On the next page, select the required profiles and click Next.

  12. Click Save.

  13. Repeat steps 1–12 for the Contact Page.

The setup is complete.

New Task global action

``