Get list of Interfaces in CS

It is straightforward in CS to get a list off applications in the current environment and their associated URLs using the cs.get_applications function. Is there any way to get similar information (name, id, url) for the interfaces in the current application?

Hi Dylan

Have you tried the cs.build_choices method, this would allow you to access a variety of build configuration options.

cs.build_choices( [component_type], [options] );

#component_type:
adapter
api_call
api_connection
api_endpoint
api_function
api_schedule
application
asset_file
asset_image
asset_pdf_form
authentication_flow
base_format
calendar
channel_identity
chart
composite
data_group
data_type
diary
email_sending_domain
environment
event
firewall_profile
inbound_handler
message
object
object_connection
object_endpoint
odbc_database
odbc_view
page
privilege
process
property
recipient
rule
sftp_connection
sftp_poll
shortcut
signal
snapshot
special_record
sso_provider
subset
template
theme
timer
toolbar_icon
variable

#[options]:

Filtering objects by type
cs.build_choices(‘object’, { ‘type’ : ‘file’ })

type - type of object (List below)
general
case
party
user
message
file
booking
api_request
conversation

Filtering pages by type
cs.build_choices(‘page’, { ‘type’ : ‘popup’ })

type - type of page (List below)
interface
subpage
popup
template_include
webpage_public
webpage_auth

Filtering assets by mime type
cs.build_choices(‘asset_image’, { ‘mime_type’ : ‘image/gif’ })

Filtering to a specific data type
cs.build_choices(‘data_type’, { ‘base_format’ : ‘choice’, ‘data_type_id’ : ‘DTP0000085EFCAE1’ })
data_type_id - the id of the data type ( Example DTP0000085EFCAE1 )

Note that if using a first argument of ‘data_type’, by adding … parameters, the function will return an array of that data_types choices instead of an array of data types.

Returning all the data types with a specific base format
cs.build_choices(‘data_type’, { ‘base_format’ : ‘integer’ })

base_format - filter the list by base format type. (List below)
integer
money
boolean
date
datetime
time
email
mobile
string
text
choice
link
auto_ref
file
twitter_alias
password
timestamp
uk_postcode
country
color
lat_long
us_zipcode
image
duration
video_link
text_formatted
decimal
percentage
mobile_device_token
timezone
currency
language
booking_week_mask

Regards
Liam