Tasks
Add Contact
The Add Contact task adds a contact to a stub's pre-existing contact list.
The contact can be added to the list using the contactuuid of the contact in the Org's contacts directory.
Basic usage
Add a contact to the Field Technicians contact list.
Parameters
required string
list_name The name of the list to add the contact to.
optional string
contactuuid The contactuuid of the contact to which to add to the list.
optional string
type The type of contactpoint associated with the contactuuid to be added to the list.
Options: email
stubberhandle
mobile
Refer to the Contacts documentation for more information on the type of contactpoints.
optional string
contactpoint The contact's contactpoint to be added to the list. If the contactuuid associated with the contactpoint is not already in the list, it will be added.
Result
Properties
string
list_name The name of the list the contact was added to.
string
contactuuid The contact's unique identifier which was added to the contact list.
object
contact The contact that was retrieved.
Show child attributes
object
avatar The contact's avatar.
Show child attributes
string
link The link to the contact's avatar.
string
type The type of avatar.
object
basic Show child attributes
string
descname A descriptive name for the contact. This is the combination of the contact's first name, middle names, and last name.
string
firstname The contact's first name.
string
middlenames The contact's middle names.
string
lastname The contact's last name.
array of objects
contactpoints Show child attributes
string
contact The contact "value" of the contactpoint. This could be an email address, mobile number, or a handle.
string
type The type of contactpoint. This could be:
email
stubberhandle
mobile
slack
etc.
string
uuid The unique identifier of the contactpoint.
string
contactuuid The contact's unique identifier.
string
orguuid The unique identifier of the Org the contact belongs to.
string
type The type of contact. This could be individual
or group
.
string
createdAt The date and time the contact was created.
string
updatedAt The date and time the contact was last updated.
Examples
These are some more complex examples