String accountName - The Twilio account for which to retrieve phone numbers.
Dataset - A list of phone numbers for the given Twilio account as a single-column dataset,
Gateway, Vision Client, Perspective Session
# 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 profile 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
system twilio getPhoneNumbersDataset, twilio.getPhoneNumbersDataset