Pandora Functions Descriptions
From SmartWiki
Revision as of 10:00, 6 August 2010 by sharris@smartsimple.com (talk | contribs)
Contents
Function Overview
Pandora functions are are divided into a number of types.
- Session Level Functions – these functions are used to manage the session associated with the processing being performed.
- Information Finding Functions – these functions are used to retrieve multi-record recordsets based on provided criteria.
- List functions
- Update Functions – these functions are used to create new entities within the system.
- Utility functions – these functions provide additional general functionality to the API.
Session Level Functions
These functions are used to enable a valid session in which process can be performed and once created, determine user and related organization attributes. Unless a function is established, no functionality is available.
Function | Description |
---|---|
Session_Login (Find) | Enables Login to the instance. |
session_logout(flag,callbackfunc) | Enables logout of the instance. |
session_islogin(flag,callbackfunc) | Enables retrieving of active user information. |
Session_getCurrentUser (Find) | Enables retrieving the current user information. |
Session_getCurrentCompany (Find) | Enables retrieving the current user’s organisational information. |
Information Finding Functions
These functions return record sets containing multiple records based on the filter passed to the functions. Each of these functions uses the following parameters:
- Fields – the fields list to be retrieved and created in the recordset. Notes an ID field will be prefixed onto the user specified field list providing the unique identifier for each record.
- Filter – the criteria by which fields should be retrieved.
- Order – the field list to control the sort sequence of the records set.
- Start – the starting record to be returned. The default is 0.
- End – the end record to be returned. The default is 200.
- Pref -
Recordset Retrieval Functions
Function | Description |
---|---|
contact_list(flag,callbackfunc,fields,filter,html,order,start,end,cfidused) | Enables creation of a contact recordset. |
webform_list(flag/callbackfunc,actionname,formid,scoreid,filter,order) | Enables return of all webforms recordset. |
company_list(flag,callbackfunc,fields,filter,html,order,start,end,cfidused) | Enables return of an organisation recordset. |
levelone_list(flag,callbackfunc,appid,fields,filter,html,order,start,end,cfidused) | Enables return of UTA Level 1 recordset. |
Function | Description |
---|---|
send_msg(flag,callbackfunc,msgtype,format,fromadd,touserid,cc,subject,body) | Enables sending a message (email or quick message). |
variables_replace(flag,callbackfunction,40,userid,variable) | Obtains System Variables or other values. |
UTA Functions
Function | Description |
---|---|
leveloneskills_update(flag,callbackfunc,objectid,rs) | Enables access to Level 1 skills. |
Transaction Functions
Function | Description |
---|---|
translink_add(flag ,callbackfunc,translinkid,transid,objectid,linktype,recordset) | Updates intersection table between Transactions and Level 1 items. |
General Guidelines
The following guides are common to all function calls.
Field Referencing
- Standard fields are referenced by name. ,’firstname,lastname’.
- Custom fields by filename (recommended) or field ID.
- Fields specified = recordset fields.
- First field always ID.
- Standard fields when field list empty.