Create a Task (Salesforce) Data Flow Template
Last updated
Was this helpful?
Last updated
Was this helpful?
This is made up of two that allow app builders to create a task in Salesforce. This is achieved by connecting with the Salesforce integration, passing data to this Data Flow and then creating a task with such data.
This Data Flow contains four parts:
The Start pane keeps track of the inputs required by the Data Flow.
Sample Inputs:
contact_id Variable of type Text
subject Variable of type Text
Datasource: Salesforce
Operation: Create record (Create new record in Salesforce)
Object Type: Task (Task)
Object Body:
Name ID (Whold)
contact_id
Subject (Subject)
Subject
Assigned To ID (OwnerId)
User_id
Status (Status)
Waiting on someone else (Waiting on someone else)
Due date only (Activity Date)
Airkit expression to format DateTime
Reminder Date/Time (Reminder Date Time)
Reminder Set (IsReminderSet)
TRUE
Run Results: sf_task_result output Variable of type Any that is automatically created to hold the results of this Operation.
Transform Expression: sf_task_results.result.id - the Airscript expression to retrieve the ID of the task.
Output Format: Variable
Type: Text
Run Results: task_id output Variable of type Text that is automatically created to hold the results of this Operation.
The End step is where variables from the Data Flow can be used as an output..
Sample Return Value: task_id of type Text
Allow app builders to create a task in Salesforce.
In , Data Flow templates can be found with pre-populated sample data. However, to meet the requirements of their Journey, app builders should perform the necessary adjustments, such as adding other Data Ops.
Bear in mind that in order to use Salesforce as a datasource, credentials must be set in > to connect the corresponding account.
task_datetime of type
user_id Variable of type
Airkit expression using the function to add 15’ to DateTime