salesforce.cases.create

Element details

type: meya.salesforce.cases.component.create
class: SalesforceCasesCreateComponent
path: /meya/salesforce/cases/component/create.py
signature: -

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
descriptionA text description of the case.nullstr
commentsUsed to insert a new CaseComment. Note: This is a single comment string, not a list of strings due to a misnomer in Salesforce APInullstr
contact_idID of the associated contact.nullstr
is_escalatedIndicates whether the case has been escalated (true) or not. A case's escalated state does not affect how you can use a case, or whether you can query, delete, or update it.nullbool
originThe source of the case, such as Email, Phone, or Web.nullstr
owner_idID of the contact who owns the case.nullstr
parent_idThe ID of the parent case in the hierarchynullstr
priorityThe importance or urgency of the case, such as High, Medium, or Low.nullstr
reasonThe reason why the case was created, such as 'Instructions not clear' or 'User didn't attend training'.nullstr
source_idThe ID of the social post source.nullstr
statusThe status of the case, such as New, Closed, or Escalated. This field directly controls the IsClosed flag.nullstr
subjectThe subject of the case.nullstr
supplied_companyThe company name that was entered when the case was created.nullstr
supplied_emailThe email address that was entered when the case was created.nullstr
supplied_nameThe name that was entered when the case was created.nullstr
supplied_phoneThe phone number that was entered when the case was created.nullstr
case_typeThe type of case, such as Feature Request or Question.nullstr
last_referenced_dateThe timestamp when the current user last accessed this record, a record related to this record, or a list view.Accepted formats: YYYY-MM-DD, YYYY-MM-DDThh:mm:ss+hh:mm, YYYY-MM-DDThh:mm:ss-hh:mm or YYYY-MM-DDThh:mm:ssZ. Ready-only field you'll need special permission to edit this field.nullstr
datetime
NoneType
last_viewed_dateThe timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.Accepted formats: YYYY-MM-DD, YYYY-MM-DDThh:mm:ss+hh:mm, YYYY-MM-DDThh:mm:ss-hh:mm or YYYY-MM-DDThh:mm:ssZ. Ready-only field you'll need special permission to edit this field.nullstr
datetime
NoneType
master_record_idIf this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null.Ready-only field you'll need special permission to change this field.nullstr
contact_mobileMobile telephone number for the contact. Ready-only field you'll need special permission to change this field.nullstr
contact_phoneTelephone number for the contact. Ready-only field you'll need special permission to change this field.nullstr
closed_dateThe date and time when the case was closed.Accepted formats: YYYY-MM-DD, YYYY-MM-DDThh:mm:ss+hh:mm, YYYY-MM-DDThh:mm:ss-hh:mm or YYYY-MM-DDThh:mm:ssZ. Ready-only field you'll need special permission to edit this field.nullstr
datetime
NoneType
contact_emailEmail address for the contact. Ready-only field you'll need special permission to edit this field.nullstr
contact_faxFax number for the contact. Ready-only field you'll need special permission to change this fieldnullstr
is_deletedIndicates whether the object has been moved to the Recycle Bin (true) or not (false).Ready-only field you'll need special permission to change this field.nullbool
custom_fieldsDictionary of name, value pairs used to set custom fields for the case object. Custom fields must be defined by your Salesforce administrator. Field names must be entered using the API Name (ex. HireDate__c).nulldict
integrationSalesforceCasesIntegrationRef
contextSend context data with this component's event.{}
dict
sensitivetruebool
triggersActivate these dynamic triggers when the component runs. Check the component triggers guide for more info.[]list
send_transcriptSend the conversation transcript as a case comment to the case.falsebool
account_idThe ID of the account associated with this case.nullstr
contact_first_nameThe contact's first name. If not provided the contact's first name will be Meya User.nullstr
contact_last_nameThe contact's last name. If not provided the contact's last name will be id: MEYA_USER_ID.nullstr
linkLinks the current thread with the integration thread when true.This allows salesforce.case.component.update and salesforce.case.component.add_comment components to be used without the case_id parameter, also, this parameter will control whether new messages sent by user using orb should be relayed to the case (coming soon).falsebool

Usage reference

Basic

triggers:
  - keyword: meya.salesforce.cases.component.create
steps:
  - type: meya.salesforce.cases.component.create
    integration: integration.salesforce_cases

Full

triggers:
  - keyword: meya.salesforce.cases.component.create
steps:
  - type: meya.salesforce.cases.component.create
    spec:
      type: STRING
      data:
        STRING: ANY
      timeout: 123
      trigger_when: ANY
    description: STRING
    comments: STRING
    contact_id: STRING
    is_escalated: false
    origin: STRING
    owner_id: STRING
    parent_id: STRING
    priority: STRING
    reason: STRING
    source_id: STRING
    status: STRING
    subject: STRING
    supplied_company: STRING
    supplied_email: STRING
    supplied_name: STRING
    supplied_phone: STRING
    case_type: STRING
    last_referenced_date: STRING
    last_viewed_date: STRING
    master_record_id: STRING
    contact_mobile: STRING
    contact_phone: STRING
    closed_date: STRING
    contact_email: STRING
    contact_fax: STRING
    is_deleted: false
    custom_fields:
      foo: bar
    integration: integration.salesforce_cases
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    send_transcript: false
    account_id: STRING
    contact_first_name: STRING
    contact_last_name: STRING
    link: false