Tasks
Find or Create Contact
The Find or Create Contact task adds a contact to an existing contact list on a stub. If the contact already exists in the org, it will add the existing contact to the contact list. Otherwise it will create a new contact with the contact point in the task definition in the org, and add it the contact list.
It finds existing contacts using the contact point in the task definition.
Basic usage
Add a contact to the Field Technicians contact list.
Parameters
required string
list_name The name of an existing contact list on the stub to add the contact to. If the contact list does not already exist, this task will fail.
required string
contactpoint The value of the contact point. This depends on the type
of the contact point.
Examples in the form {{example_type}}:{{example_contactpoint}}
:
email:technician1@bobstechnicians.com
mobile:+27711234321
required string
type The type of contactpoint associated with the contactpoint to be added to the contact list.
Examples:
email
stubberhandle
mobile
Refer to the Contacts documentation for more information on the type of contactpoints.
optional string
descname A descriptive name for the contact.
Examples
John Doe
Advanced Support
.~~#jsonata#$substringBefore(stubpost.data._email_in.from_address, "@")
Result
Properties
boolean
found Whether or not the contact was found.
object
contact This will be an entire contact object as it exists in your org's database.
Example contact object:
Examples
These are some more examples