--- title: "TIES Adapter Actions" slug: "ties-adapter-actions" updated: 2022-08-04T18:43:21Z published: 2022-08-04T18:43:21Z canonical: "help.rapididentity.com/ties-adapter-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # TIES Adapter Actions ## TIES Adapter Actions ### defineTIESConnection Define a connection to a TIES Server. | Property | Value | Description | | --- | --- | --- | | url* | text, expression, variable | the Base URL of the TIES REST service, not including page number | | apiKey* | text, expression, variable | API key for authentication to the TIES REST service | | secretKey* | password, string, expression, variable | Secret key for authentication to the TIES REST service | | districtNumber* | text, expression, variable | The District Number for use with the TIES REST service | | options | expression, variable | A record or JavaScript object with a field for each additional option. Currently defined fields are connectTimeout and socketTime which require a numeric value from 1 to 2147483647 (0x7FFFFFFF) that represents the number of milliseconds for the timeout, and 0 representing no timeout. | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript Global.tiesURL = "https://api.tiescloud.net" Global.tiesApiKey = "feeddeadbeef" Global.tiesSecretKey = Global.tiesDistrictNumber = 4200000000 session = defineTIESConnection(Globale.tiesURL, Global.tiesApiKey, Global.tiesSecretKey, Global.tiesDistrictNumber) ``` ### getTIESFamilies Get All TIES Family Records. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript filter = createRecord() setRecordFieldValue(filter, "StudentIds", student.StudentId) families = getTIESFamilies(session, filter) ``` ### getTIESFamily Get a given TIES Family Record. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | id* | text, expression, variable | The ID of the family | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript family = getTIESFamily(session, "1234") ``` ### getTIESStaffMember Gets a given TIES Staff Member Record. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | id* | text, expression, variable | The ID of the Staff Member | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript staffMember = getTIESStaffMember(session, "1234") ``` ### getTIESStaffMembers Get All TIES Staff Member Records. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript teachers = getTIESStaffMembers(session) ``` ### getTIESStudent Gets a given TIES Student Record. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | id* | text, expression, variable | The ID of the student | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript student = getTIESStudent(session, "4567") ``` ### getTIESStudents Get All TIES Student Records. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript filter = createRecord() setRecordFieldValue(filter, "SchoolYear", "2015") setRecordFieldValue(filter, "Grade", "12") students = getTIESStudents(session, filter) ``` ### openTIESFamilyIterator Open TIES Family Iterator. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript filter = createRecord() setRecordFieldValue(filter, "StudentIds", student.StudentId) it = openTIESFamilyIterator(session, filter) ``` ### openTIESStaffMemberIterator Open TIES Staff Member Iterator. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript it = openTIESStaffMemberIterator(session) ``` ### openTIESStudentIterator Open TIES Student Iterator. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the TIES connection definition | | filter | text, expression, variable | Any additional parameters to pass to the TIES REST service | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript filter = createRecord() setRecordFieldValue(filter, "SchoolYear", "2015") setRecordFieldValue(filter, "Grade", "12") it = openTIESStudentIterator(session, filter) ``` ### Supported TIES Fields - Student - [Record Fields](https://api.tiescloud.net/v1.0/Students/help/operations/Students#responsejson) - [Filter Fields](https://techdocs.broadcom.com/us/en/symantec-security-software/web-and-network-security/web-isolation/1-15/Reports/Filtering-and-Searching-Logged.html) - Family - [Record Fields](https://api.tiescloud.net/v1.0/students/help/operations/Family#responsejson) - Filter Fields (not currently documented) - StaffMember - [Record Fields](https://api.tiescloud.net/v1.0/Staff/help/operations/Teachers#responsejson) - Filter Fields (not currently documented)