Skip to main content
Amy Morris (Onyx Technologies) 님이 #Agentforce에 질문했습니다

Hello, 

 

I have a Flow Action on an Agentforce Service Agent that should be able to create Event records. The flow works in debug mode but when the agent tries to run the flow I get this error: 

 

an error occurred while your "Create Conference Event for Contact" flow was running.

Debug this flow in Flow Builder.

 

Error element Create_Event (FlowRecordCreate). 

This error occurred when the flow tried to create records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: entity type cannot be inserted: Event. You can look up ExceptionCode values in the

SOAP API Developer Guide

 

I tried to give the agent access to events with a permission set, but there is no option in aa permission set to give Create access to the Event object. Only to change some it's field's access. I thought maybe then that you could do it from the Activity object in the permission set (since tasks and events stem from Activity) but this does not appear to be the case either.  I cannot see an Activities object at all in the Object Settings in a new permission set.

 

Please help if you have any idea how to make it possible for a Service Agent to have access to create Event records.  

 

Thank you! 

 

#Agentforce  #Permissionset

답변 7개
  1. 2025년 9월 20일 오후 2:42

    this is a classic Salesforce "Event object permissions" gotcha.

    Here’s what’s happening and how to fix it:

    Why Debug Works but the Agent Fails

    • Debug mode runs as you (the Flow Builder), not the agent. 

      That’s why it works in debug, but fails when the agent runs it.

    • The error CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: entity type cannot be inserted: Event means the user doesn’t have permission to create Events.

    Why You Don’t See "Event" in Permission Sets

    • Events (and Tasks) are controlled by the Activity object, but Salesforce doesn’t show "Activity" in Object Settings in permission sets.
    • Instead, Create/Read/Edit/Delete access for Events and Tasks is granted through Profiles or Record Types setup.

    How to Give Agents Event Create Access

    You have a few options:

    1. Profile Level (most common)

    1. Go to Setup → Profiles.
    2. Open the Service Agent’s Profile.
    3. Scroll to Standard Object Permissions.
    4. Find Activities → check Create, Read, Edit, Delete (or just Create if that’s all you need).

    2. Permission Set (if you don’t want to edit the profile)

    • In a Permission Set, you won’t see Activities in the "Object Settings" section.
    • Instead:
      1. Edit the Permission Set.
      2. Go to App Permissions.
      3. Under Salesforce CRM, find Activities and Calendar–related permissions (like "Edit Events", "Allow Events").
      4. Assign that permission set to your agents.

    3. Check Record Types & Page Layouts

    • Make sure the Event record type(s) are assigned to the agent’s profile/perm set.
    • If no Event record type is assigned, they won’t be able to create Events even with CRUD access.
0/9000