Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style
Scripting_function


Panel
titleDescription

Return a list of outgoing phone numbers for a Twilio account as a single-column Dataset. Note that these numbers are supplied by Twilio , and are not defined on a user in Ignition.

Client permissions restrictions


Panel
titleSyntax

system.twilio.getPhoneNumbersDataset(accountName)

  • Parameters

String accountName - The Twilio account for which to retrieve phone numbers for,.

  • Returns

Dataset - A list of phone numbers for the given Twilio account as a single-column dataset,

  • Scope

Gateway, Vision Client, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# Retrieves a list of phone numbers associated with a Twilio account and then passes the resulting list to a Table component's Data property.
# Checks against a Twilio Profileprofile configured on the Gateway by the name of "Twilio Account".


# Call system.twilio.getPhoneNumbers() and store the returned list into a variable.
twilioNumbers = system.twilio.getPhoneNumbersDataset("Twilio Account")
 
# Pass the dataset to a Table component. The Table is located in the same container as the 
# component calling this script.
event.source.parent.getComponent('Table').data = twilioNumbers
Panel
titleKeywords

system twilio getPhoneNumbersDataset, twilio.getPhoneNumbersDataset