Can I disable the delete action from the calendar?

The easiest way to disable users' ability to delete calendar appointments is to create an object trigger on the Activity object.

Your object trigger needs to be on the Before Remove action. It will display an error when a user tries to delete an appointment.

Here's a sample script that will restrict the ability to delete calendar items based on a user role:

// Get the security context def secCtx = adf.context.getSecurityContext()

// Check if user has a given role if (secCtx.isUserInRole('MyAppRole')) {

// get the current user's name def user = secCtx.getUserName()

// Do something if user belongs to MyAppRole

}

See the Configuring Applications Using Application Composer guide for more information.