SalesforceAskUser

Ask a user a question via Salesforce Chatter and process the reply directly into the investigation.

python · Salesforce

Details

IDSalesforceAskUser
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658

README

Asks a user a question via Salesforce Chatter and process the reply directly into the investigation.

Script Data


Name Description
Script Type python
Tags -

Dependencies


This script uses the following commands and scripts.

  • salesforce-push-comment

Inputs


Argument Name Description
persistent Indicates whether to use a one-time entitlement or a persistent one.
replyEntriesTag The tags to add on comment reply entries.
retries The number of times to try and create an entitlement when there is a failure.
task The task that should be closed with the reply. If none, then no playbook tasks will be closed.
option1 The first option for a user reply. Options cannot contain whitespaces.
option2 The second option for the user reply. Options cannot contain whitespaces.
oid The object ID of the subject.
additionalOptions A comma delimited list of additional options (in cases where more than 2 options are needed). Options cannot contain whitespaces.
text The text of the chatter comment. If not given, a default post message will be generated based on option arguments.
link The link to add to the message.

Outputs


There are no outputs for this script.

commonfields:
  id: SalesforceAskUser
  version: -1
name: SalesforceAskUser
script: ''
type: python
subtype: python3
tags: []
comment: Ask a user a question via Salesforce Chatter and process the reply directly into the investigation.
enabled: true
args:
- name: persistent
  auto: PREDEFINED
  predefined:
  - "true"
  - "false"
  description: Indicates whether to use one-time entitlement or a persistent one.
  defaultValue: "false"
- name: replyEntriesTag
  description: Tag to add on comment reply entries.
- name: retries
  description: Indicates how many times to try and create an entitlement in case of failure.
  defaultValue: "10"
- name: task
  description: Which task should we close with the reply. If none then no playbook tasks will be closed.
- name: option1
  description: First option for a user reply. Options cannot contain whitespaces.
  defaultValue: "yes"
- name: option2
  description: Second option for the user reply. Options cannot contain whitespaces.
  defaultValue: "no"
- name: oid
  description: Object ID of Subject.
- name: additionalOptions
  description: A comma delimited list of additional options (in case more than 2 options are needed). Options cannot contain whitespaces.
- name: text
  description: Chatter comment text. If not given, a default post message will be generated based on option arguments.
- name: link
  description: Add a link to the message.
scripttarget: 0
dependson:
  must:
  - salesforce-push-comment
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10116658
tests:
- No tests (auto formatted)