GetRecord

Estimated reading: 3 minutes

The GetRecord activity is used to retrieve details of a specific Twilio record—such as a Call, Message, or Message Media—by using its ID. This activity is helpful when you already have a Twilio SID and need to fetch record information for validation, logging, monitoring, or further workflow processing.

How to Use the GetRecord Activity

1. In Manager, open your project and select the app integration connected with Twilio.
2. Connect the Twilio account using the required credentials.
3. In Designer, go to the Publish section and select the project where the Twilio integration is connected.
4. Drag and drop the GetRecord activity into the workflow.
5. Configure the activity fields as described below.
a. Twilio: Automatically populated with the integrated Twilio email ID.
b. Object Type: Select the required Twilio object type: Call, Message or Message Media
c. SID: Enter the unique SID of the selected Twilio object.
            A SID is a unique identifier assigned to every Twilio resource and is required to retrieve that specific record (See Step by Step Instruction).

Parameters

INPUT

Media ID: Required for Message Media. Specify the Media ID as a string. Retrieve it from the Send Message activity log output (See Step by Step Instruction)
Object Type: Automatically populated based on the selected object type.
SID*: The unique SID of the Twilio record to retrieve. You can either hardcode the values in the “String” variable or pass the values as “String” datatype. This parameter accepts values in “String” datatype.

MISC

DisplayName: Name of the activity. Can be customized for easier identification.
SkipOnError: Determines workflow behavior on error:
• True – Continue workflow even if error occurs
• False – Stop workflow on error
• None – Defaults to False
Version: Version of the activity being used.

OUTPUT

Output: Create a variable to store the retrieved record details. The output type is Array.
OutputTypeClass: Automatically populated based on selected object type.
Result: This parameter allows you to view the execution status of the activity and returns a value in “Boolean.”
 • True: Indicates that the activity has been executed successfully without any errors.
 • False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

How to Get Media ID and SID Using Send Message Activity

You can retrieve the required Media ID and SID using the Send Message activity.

Step 1: Configure the Send Message Activity 
• Refer to the Send Message Activity documentation for configuration details.
• Fill in all required fields based on your workflow needs.

Step 2: Capture Media ID and SID
1. Add a Write Log activity after the Send Message activity.
2. In the Input String, enter the variable created in the Send Message activity.
3. Type a dot (.) after the variable to view all available properties.
4. Select the Twilio URI property after the dot to get the complete endpoint and run the workflow.
5. Review the log output to identify the Media ID and SID.

Step 3: Sample Output
Example values:
Media ID: ME878a486bdfcb3e51b126cff371c87d6
SID: MM09beba6d02b39e261927b2acb81826eb
Tip: Use these retrieved values directly in the GetRecord activity configuration.

How to Retrieve the Output of GetRecord Activity

Steps to View Data Returned by the GetRecord Activity
1. Add a Write Log activity after the GetRecord activity.
2. In the Input String, enter the output variable created in the GetRecord activity.
    • Example: If your output variable is recordOutput, enter recordOutput.
3. Type a dot (.) after the variable to view all available output properties.
    • Example: recordOutput. → shows properties like Status, DateCreated, RecordID, etc.
4. Select the required properties.
   • Example: recordOutput.Status
5. Run the workflow and review the log output after execution is completed.

Share this Doc

GetRecord

Or copy link

CONTENTS