{
  "apiVersion": 63,
  "status": "Active",
  "label": "Standard Create Event Activity",
  "description": "Creates an Event from standard activity quick-create actions (Engagement). Runs atomically and returns the created eventId.",
  "runAtomically": true,
  "start": {
    "locationX": 40,
    "locationY": 0,
    "connector": { "targetReference": "CreateEventActivity" }
  },
  "variables": [
    { "name": "recordId", "dataType": "String", "isInput": true },
    { "name": "WhatId", "dataType": "String", "isInput": true },
    { "name": "WhoId", "dataType": "String", "isInput": true },
    { "name": "Contact_Role", "dataType": "String", "isInput": true },
    { "name": "Other_Participants_Names", "dataType": "String", "isInput": true },
    { "name": "Other_Participants_Info", "dataType": "String", "isInput": true },
    { "name": "OwnerId", "dataType": "String", "isInput": true },
    { "name": "EventSubject", "dataType": "String", "isInput": true },
    { "name": "Description", "dataType": "String", "isInput": true },
    { "name": "Risk_and_Next_Step", "dataType": "String", "isInput": true },
    { "name": "StartDateTime", "dataType": "DateTime", "isInput": true },
    { "name": "EndDateTime", "dataType": "DateTime", "isInput": true },
    { "name": "eventId", "dataType": "String", "isOutput": true }
  ],
  "recordCreates": [
    {
      "name": "CreateEventActivity",
      "label": "Create Event activity",
      "locationX": 40,
      "locationY": 120,
      "object": "Event",
      "inputAssignments": [
        { "field": "WhoId", "value": { "elementReference": "WhoId" } },
        { "field": "WhatId", "value": { "elementReference": "WhatId" } },
        { "field": "Contact_Role__c", "value": { "elementReference": "Contact_Role" } },
        { "field": "Other_Participants_Names__c", "value": { "elementReference": "Other_Participants_Names" } },
        { "field": "Other_Participants_Info__c", "value": { "elementReference": "Other_Participants_Info" } },
        { "field": "OwnerId", "value": { "elementReference": "OwnerId" } },
        { "field": "Subject", "value": { "elementReference": "EventSubject" } },
        { "field": "Description", "value": { "elementReference": "Description" } },
        { "field": "Risk_and_Next_Step__c", "value": { "elementReference": "Risk_and_Next_Step" } },
        { "field": "StartDateTime", "value": { "elementReference": "StartDateTime" } },
        { "field": "EndDateTime", "value": { "elementReference": "EndDateTime" } }
      ],
      "assignRecordIdToReference": "eventId"
    }
  ]
}
