Difference between revisions of "Creating SmartConnect Functions"

From SmartWiki
Jump to: navigation, search
Line 18: Line 18:
 
* '''Record Type''' – a list of all SmartSimple objects within this instance. This will include: Report (reports you have created in the instance), Organization (company records), Users (system users and contacts), and each Universal Tracking Application™ Level 1, Level 2 and Level 3 type that you have created in the instance.
 
* '''Record Type''' – a list of all SmartSimple objects within this instance. This will include: Report (reports you have created in the instance), Organization (company records), Users (system users and contacts), and each Universal Tracking Application™ Level 1, Level 2 and Level 3 type that you have created in the instance.
 
* '''Action Type''' – this defines the action to be taken by the function. The following actions are available:  GET META, UPDATE META, GET, LIST, UPDATE, UPDATE ASSOCIATIONS, LIST ASSOCIATIONS, DOWNLOAD FILE, LIST FILES, SEARCH FILES, LIST NOTES and  VARIABLE REPLACE. Details on these Action Types / Methods are available below.
 
* '''Action Type''' – this defines the action to be taken by the function. The following actions are available:  GET META, UPDATE META, GET, LIST, UPDATE, UPDATE ASSOCIATIONS, LIST ASSOCIATIONS, DOWNLOAD FILE, LIST FILES, SEARCH FILES, LIST NOTES and  VARIABLE REPLACE. Details on these Action Types / Methods are available below.
* '''Field List''' – this restricts the fields that are to be retrieved from the underlying object.
+
* '''Field List''' – this restricts the fields that are to be retrieved from the underlying object.<br />
  
 
==SmartConnect Function Samples==
 
==SmartConnect Function Samples==
Line 29: Line 29:
 
'''Object Type'''  -  Company<br />
 
'''Object Type'''  -  Company<br />
 
'''Action Type '''  -  Get<br />
 
'''Action Type '''  -  Get<br />
'''Field List'''  -  sf_Company ID;;sf_Name;;sf_Address;;sf_City;;sf_Country;;sf_Zip / Postal Code;;cf_EIN Number;;sf_Mission Statement
+
'''Field List'''  -  sf_Company ID;;sf_Name;;sf_Address;;sf_City;;sf_Country;;sf_Zip / Postal Code;;cf_EIN Number;;sf_Mission Statement<br />
  
 
[[File:APIFunctionSample1.PNG|800px]]
 
[[File:APIFunctionSample1.PNG|800px]]
Line 39: Line 39:
 
'''Object Type'''  -  User<br />
 
'''Object Type'''  -  User<br />
 
'''Action Type '''  -  Get<br />
 
'''Action Type '''  -  Get<br />
'''Field List'''  -  sf_User ID;;sf_Last Name;;sf_First Name;;sf_Prefix;;sf_Suffix;;sf_Title;;sf_Phone;;sf_Email
+
'''Field List'''  -  sf_User ID;;sf_Last Name;;sf_First Name;;sf_Prefix;;sf_Suffix;;sf_Title;;sf_Phone;;sf_Email<br />
  
 
[[File:APIFunctionSample2.PNG|800px]]
 
[[File:APIFunctionSample2.PNG|800px]]
Line 48: Line 48:
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Action Type '''  -  Get<br />
 
'''Action Type '''  -  Get<br />
'''Field List'''  -  cf_Project Name;;cf_Submission Number;;sf_Application Type;;sf_Status;;sf_Customer;;sf_Owner;;cf_Focus Area;;cf_Amount Requested;;cf_Program Area;;cf_Location;;cf_Proposed Start Date;;cf_Proposed End Date
+
'''Field List'''  -  cf_Project Name;;cf_Submission Number;;sf_Application Type;;sf_Status;;sf_Customer;;sf_Owner;;cf_Focus Area;;cf_Amount Requested;;cf_Program Area;;cf_Location;;cf_Proposed Start Date;;cf_Proposed End Date<br />
  
 
[[File:APIFunctionSample3.PNG|800px]]
 
[[File:APIFunctionSample3.PNG|800px]]
Line 57: Line 57:
 
'''Object Type'''  -  Submission Manager - Activity<br />
 
'''Object Type'''  -  Submission Manager - Activity<br />
 
'''Action Type '''  -  Get<br />
 
'''Action Type '''  -  Get<br />
'''Field List'''  -  sf_Status;;sf_Activity Type;;cf_Payment ID;;cf_Payment Amount;;cf_Payment Date;;Payment Notes
+
'''Field List'''  -  sf_Status;;sf_Activity Type;;cf_Payment ID;;cf_Payment Amount;;cf_Payment Date;;Payment Notes<br />
  
 
[[File:APIFunctionSample4.PNG|800px]]
 
[[File:APIFunctionSample4.PNG|800px]]
Line 67: Line 67:
 
'''Object Type'''  -  Report<br />
 
'''Object Type'''  -  Report<br />
 
'''Action Type '''  -  Query<br />
 
'''Action Type '''  -  Query<br />
'''Field List'''  - 
+
'''Field List'''  - <br />
  
 
=====A report query on the number of assessors grouped by specialty=====
 
=====A report query on the number of assessors grouped by specialty=====
Line 74: Line 74:
 
reportid : 36864<br />
 
reportid : 36864<br />
 
criteriavalue: <br />
 
criteriavalue: <br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
=====A report query on a list of Grants grouped by Organization=====
 
=====A report query on a list of Grants grouped by Organization=====
Line 81: Line 81:
 
reportid : 36812<br />
 
reportid : 36812<br />
 
criteriavalue: <br />
 
criteriavalue: <br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
=====A report query on a list of Grants grouped by Focus Area=====
 
=====A report query on a list of Grants grouped by Focus Area=====
Line 88: Line 88:
 
reportid : 36814<br />
 
reportid : 36814<br />
 
criteriavalue: <br />
 
criteriavalue: <br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
=====A report query on a list of Payments grouped by Grant Type=====
 
=====A report query on a list of Payments grouped by Grant Type=====
Line 95: Line 95:
 
reportid : 36806<br />
 
reportid : 36806<br />
 
criteriavalue: <br />
 
criteriavalue: <br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
===List===
 
===List===
Line 104: Line 104:
 
'''Object Type'''  -  User<br />
 
'''Object Type'''  -  User<br />
 
'''Action Type '''  -  List<br />
 
'''Action Type '''  -  List<br />
'''Field List'''  -  sf_User ID;;sf_First Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;
+
'''Field List'''  -  sf_User ID;;sf_First Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;<br />
  
 
<u>'''Sample 1A'''</u><br/>
 
<u>'''Sample 1A'''</u><br/>
Line 112: Line 112:
 
sortby : [{"field":"sf_First Name","direction":"asc"}]<br />
 
sortby : [{"field":"sf_First Name","direction":"asc"}]<br />
 
getstorevalue :<br />
 
getstorevalue :<br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5a.PNG|800px]]
 
[[File:APIFunctionSample5a.PNG|800px]]
Line 122: Line 122:
 
sortby : [{"field":"sf_First Name","direction":"asc"}]<br />
 
sortby : [{"field":"sf_First Name","direction":"asc"}]<br />
 
getstorevalue :<br />
 
getstorevalue :<br />
--End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5b.PNG|800px]]
 
[[File:APIFunctionSample5b.PNG|800px]]
Line 131: Line 131:
 
'''Object Type'''  -  Company<br />
 
'''Object Type'''  -  Company<br />
 
'''Action Type '''  -  List<br />
 
'''Action Type '''  -  List<br />
'''Field List'''  -  sf_Company ID;;sf_Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;cf_Mission Statement
+
'''Field List'''  -  sf_Company ID;;sf_Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;cf_Mission Statement<br />
  
 
<u>'''Sample 2A'''</u><br/>
 
<u>'''Sample 2A'''</u><br/>
 
'''Description'''  - To retrieve a list of organizations with organization name that starts with "Br"<br />
 
'''Description'''  - To retrieve a list of organizations with organization name that starts with "Br"<br />
 --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"}]<br />
+
criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"}]<br />
 sortby : <br />
+
sortby : <br />
 getstorevalue :<br />
+
getstorevalue :<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5c.PNG|800px]]
 
[[File:APIFunctionSample5c.PNG|800px]]
Line 145: Line 145:
 
<u>'''Sample 2B'''</u><br/>
 
<u>'''Sample 2B'''</u><br/>
 
'''Description'''  - To retrieve a list of organizations with organization name that starts with "Br" and address that contains "Ave" with an ascending order based on the organization name.<br />
 
'''Description'''  - To retrieve a list of organizations with organization name that starts with "Br" and address that contains "Ave" with an ascending order based on the organization name.<br />
 --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"},{"andor":"and","field":"sf_Address","operator":"like","value":"%Ave%"}]<br />
+
criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"},{"andor":"and","field":"sf_Address","operator":"like","value":"%Ave%"}]<br />
 sortby : [{"field":"sf_Name","direction":"asc"}]<br />
+
sortby : [{"field":"sf_Name","direction":"asc"}]<br />
 getstorevalue :<br />
+
getstorevalue :<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5d.PNG|800px]]
 
[[File:APIFunctionSample5d.PNG|800px]]
Line 158: Line 158:
 
'''Object Type'''  -  Cast Management 360° - Case<br />
 
'''Object Type'''  -  Cast Management 360° - Case<br />
 
'''Action Type '''  -  List<br />
 
'''Action Type '''  -  List<br />
'''Field List'''  -  sf_Application Template Type;;sf_Customer;;cf_Claim;;cf_Nature of Injury / Comments on Claim;;sf_Activity List
+
'''Field List'''  -  sf_Application Template Type;;sf_Customer;;cf_Claim;;cf_Nature of Injury / Comments on Claim;;sf_Activity List<br />
  
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 criteria : [{"andor":"and","field":"cf_Nature of Injury / Comments on Claim","operator":"like","value":"%professor%"}]<br />
+
criteria : [{"andor":"and","field":"cf_Nature of Injury / Comments on Claim","operator":"like","value":"%professor%"}]<br />
 sortby : [{"field":"sf_Customer","direction":"desc"}]<br />
+
sortby : [{"field":"sf_Customer","direction":"desc"}]<br />
 getstorevalue :<br />
+
getstorevalue :<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5e.PNG|800px]]
 
[[File:APIFunctionSample5e.PNG|800px]]
Line 174: Line 174:
 
'''Object Type'''  -  Company<br />
 
'''Object Type'''  -  Company<br />
 
'''Action Type '''  -  List Files<br />
 
'''Action Type '''  -  List Files<br />
'''Field List'''  -  
+
'''Field List'''  -  <br />
  
 
Parameters used are:<br />
 
Parameters used are:<br />
 
''objectid'' = [[Determining_the_companyid|Company ID]]<br />
 
''objectid'' = [[Determining_the_companyid|Company ID]]<br />
 fieldid = [[Custom_Field_ID|Custom Field ID]] of an organization that is either [[Custom_Field_Type:_Upload_-_Single_File_Storage|single file type]] or [[Custom_Field_Type:_Upload_-_Multiple_Files_Storage|multiple file type]].
+
''fieldid'' = [[Custom_Field_ID|Custom Field ID]] of an organization that is either [[Custom_Field_Type:_Upload_-_Single_File_Storage|single file type]] or [[Custom_Field_Type:_Upload_-_Multiple_Files_Storage|multiple file type]].<br />
  
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 objectid : 1688407<br />
+
objectid : 1688407<br />
 fieldid : 1523157<br />
+
fieldid : 1523157<br />
 getstorevalue :<br />
+
getstorevalue :<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5f.PNG|800px]]
 
[[File:APIFunctionSample5f.PNG|800px]]
Line 193: Line 193:
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Action Type '''  -  List Files<br />
 
'''Action Type '''  -  List Files<br />
'''Field List'''  -  
+
'''Field List'''  -  <br />
  
 
Parameters used are:<br />
 
Parameters used are:<br />
 
''objectid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''objectid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 fieldid = [[Custom_Field_ID|Custom Field ID]] of UTA L1 that is either [[Custom_Field_Type:_Upload_-_Single_File_Storage|single file type]] or [[Custom_Field_Type:_Upload_-_Multiple_Files_Storage|multiple file type]].
+
''fieldid'' = [[Custom_Field_ID|Custom Field ID]] of UTA L1 that is either [[Custom_Field_Type:_Upload_-_Single_File_Storage|single file type]] or [[Custom_Field_Type:_Upload_-_Multiple_Files_Storage|multiple file type]].<br />
  
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 objectid : 1688407<br />
+
objectid : 1688407<br />
 fieldid : 1523157<br />
+
fieldid : 1523157<br />
 getstorevalue :<br />
+
getstorevalue :<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5g.PNG|800px]]
 
[[File:APIFunctionSample5g.PNG|800px]]
Line 213: Line 213:
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Object Type'''  -  Submission Manager - Grant<br />
 
'''Action Type '''  -  List notes<br />
 
'''Action Type '''  -  List notes<br />
'''Field List'''  - sf_Type Name;;sf_Content;;sf_Created By;;sf_Created By ID;;sf_Created Date;;sf_Note ID;;sf_Object ID;;sf_Type ID;;sf_Note Content<br /> 
+
'''Field List'''  - sf_Type Name;;sf_Content;;sf_Created By;;sf_Created By ID;;sf_Created Date;;sf_Note ID;;sf_Object ID;;sf_Type ID;;sf_Note Content<br />
  
Parameters used are:<br />
+
Parameters used are:
 
''objectid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''objectid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 objectid : 8276124<br />
+
objectid : 8276124<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5h.PNG|800px]]
 
[[File:APIFunctionSample5h.PNG|800px]]
Line 233: Line 233:
 
Parameters used are:<br />
 
Parameters used are:<br />
 
''objectid'' = [[Determining_the_companyid|Company ID]]<br />
 
''objectid'' = [[Determining_the_companyid|Company ID]]<br />
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 objectid : 1688407<br />
+
objectid : 1688407<br />
 --End custom parameter--
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5i.PNG|800px]]
 
[[File:APIFunctionSample5i.PNG|800px]]
Line 250: Line 250:
 
''recordid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''recordid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''type'' = either '"contacts"' or '"organizations"'<br />
 
''type'' = either '"contacts"' or '"organizations"'<br />
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 
recordid: 8276165<br />
 
recordid: 8276165<br />
 
type: contacts<br />
 
type: contacts<br />
 --End custom parameter--<br />
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5j.PNG|800px]]
 
[[File:APIFunctionSample5j.PNG|800px]]
Line 267: Line 267:
 
''recordid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''recordid'' = [[Determining_the_opportunityid|Opportunity ID]]<br />
 
''type'' = either '"contacts"' or '"organizations"'<br />
 
''type'' = either '"contacts"' or '"organizations"'<br />
  --Begin custom parameter --<br />
+
--Begin custom parameter --<br />
 
recordid: 8276165<br />
 
recordid: 8276165<br />
 
type: organizations<br />
 
type: organizations<br />
 --End custom parameter--<br />
+
--End custom parameter--<br />
  
 
[[File:APIFunctionSample5k.PNG|800px]]
 
[[File:APIFunctionSample5k.PNG|800px]]

Revision as of 13:53, 30 August 2018


Construction warning.png Please note that this page is currently under construction. There is more information to come.

SmartConnect functions are specific to individual copies of SmartSimple so you can only use the functions that are have been previously established in that copy. The article describes how you add functions to an instance.

Contents

Creating a New Function

You need to have Global User Administrator permissions in order to add JSON functions.

  1. Log into the copy of SmartSimple where you wish to add the function.
  2. Navigate to Global Settings.
  3. Click on the Integrations tab.
  4. Click on the SmartConnect API link. Existing functions will be listed here for you to update.
  5. Click on the + button to create a new function.

Function Settings

Each function has the following settings:

  • Function Name – you will use this name to call the function from your own code.
  • Description – used to provide documentation as to the function’s purpose.
  • Record Type – a list of all SmartSimple objects within this instance. This will include: Report (reports you have created in the instance), Organization (company records), Users (system users and contacts), and each Universal Tracking Application™ Level 1, Level 2 and Level 3 type that you have created in the instance.
  • Action Type – this defines the action to be taken by the function. The following actions are available:  GET META, UPDATE META, GET, LIST, UPDATE, UPDATE ASSOCIATIONS, LIST ASSOCIATIONS, DOWNLOAD FILE, LIST FILES, SEARCH FILES, LIST NOTES and  VARIABLE REPLACE. Details on these Action Types / Methods are available below.
  • Field List – this restricts the fields that are to be retrieved from the underlying object.

SmartConnect Function Samples

Visit the interactive demonstration page to test the sample functions.

Get

Retrieve a Single Organization Record

Function Name  -  3.01.1 Get Method Sample 1: Retrieve a Single Organization Record
Description  - This function will retrieve a single record from the organization using the Company ID. The function is set up to retrieve the fields listed under Field List.
Object Type  -  Company
Action Type   -  Get
Field List  -  sf_Company ID;;sf_Name;;sf_Address;;sf_City;;sf_Country;;sf_Zip / Postal Code;;cf_EIN Number;;sf_Mission Statement

APIFunctionSample1.PNG

Retrieve a Single Contact Record

This function will retrieve a single record from the users table using the User ID. The function is set up to retrieve the fields listed under Field List.

Function Name  -  3.01.2 Get Method Sample 2: Retrieve a Single Contact Record
Object Type  -  User
Action Type   -  Get
Field List  -  sf_User ID;;sf_Last Name;;sf_First Name;;sf_Prefix;;sf_Suffix;;sf_Title;;sf_Phone;;sf_Email

APIFunctionSample2.PNG

Retrieve a Single Grant Application Record

Function Name  -  3.01.3 Get Method Sample 3: Retrieve a Single Grant Application Record
Description  - This function will retrieve a single record from the Universal Tracking Application Level 1 using the Opportunity ID.
Object Type  -  Submission Manager - Grant
Action Type   -  Get
Field List  -  cf_Project Name;;cf_Submission Number;;sf_Application Type;;sf_Status;;sf_Customer;;sf_Owner;;cf_Focus Area;;cf_Amount Requested;;cf_Program Area;;cf_Location;;cf_Proposed Start Date;;cf_Proposed End Date

APIFunctionSample3.PNG

Sample 4: Retrieve a Single Grant Application Payment Record

Function Name  -  3.01.4 Get Method Sample 4: Retrieve a Single Grant Application Payment Record
Description  - This function will retrieve a single record from the Universal Tracking Application Level 2 using the Event ID.
Object Type  -  Submission Manager - Activity
Action Type   -  Get
Field List  -  sf_Status;;sf_Activity Type;;cf_Payment ID;;cf_Payment Amount;;cf_Payment Date;;Payment Notes

APIFunctionSample4.PNG

Report

Report Query

Function Name  -  3.02.1 Get Report Sample 1: Report Query
Description  - To retrieve data from a report. Object Type  -  Report
Action Type   -  Query
Field List  - 

A report query on the number of assessors grouped by specialty

Description  - A sample that will display the number of Assessors based on their specialty
--Begin custom parameter --
reportid : 36864
criteriavalue:
--End custom parameter--

A report query on a list of Grants grouped by Organization

Description  - A sample that shows a list of applications filtered by "Approved Proposal" status grouped by organizations
--Begin custom parameter --
reportid : 36812
criteriavalue:
--End custom parameter--

A report query on a list of Grants grouped by Focus Area

Description  - A sample that displays a list of applications grouped by focus area
--Begin custom parameter --
reportid : 36814
criteriavalue:
--End custom parameter--

A report query on a list of Payments grouped by Grant Type

Description  - A sample that  displays the payment amount for each grant grouped by organization
--Begin custom parameter --
reportid : 36806
criteriavalue:
--End custom parameter--

List

List

Retrieve a list of contacts

Function Name  -  3.03.1.1 List Method Sample 1: Retrieve a list of Contacts
Description  - This function will retrieve a list of contacts based on criteria specified.
Object Type  -  User
Action Type   -  List
Field List  -  sf_User ID;;sf_First Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;

Sample 1A
Description  - To retrieve a list of contacts where the first name begins with "J" and sorted by first name in ascending order
--Begin custom parameter --
criteria : [{"andor":"or","field":"sf_First Name","operator":"like","value":"J%"}]
sortby : [{"field":"sf_First Name","direction":"asc"}]
getstorevalue :
--End custom parameter--

APIFunctionSample5a.PNG

Sample 1B
Description  - To retrieve a list of contacts where the first name begins with "S" and the address contains "Peter" and sorted by first name in ascending order
--Begin custom parameter --
criteria : [{"andor":"or","field":"sf_First Name","operator":"like","value":"S%"},
{"andor":"and","field":"sf_Address","operator":"like","value":"%Peter%"}]
sortby : [{"field":"sf_First Name","direction":"asc"}]
getstorevalue :
--End custom parameter--

APIFunctionSample5b.PNG

Retrieve a list of organizations

Function Name  -  3.03.1.2 List Method Sample 2: Retrieve a list of Organizations
Description  - To retrieve a list of organizations. Object Type  -  Company
Action Type   -  List
Field List  -  sf_Company ID;;sf_Name;;sf_Address;;sf_Address 2;;sf_City;;sf_Country;;sf_State / Province;;sf_Zip / Postal Code;;cf_Mission Statement

Sample 2A
Description  - To retrieve a list of organizations with organization name that starts with "Br"
--Begin custom parameter --
criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"}]
sortby : 
getstorevalue :
--End custom parameter--

APIFunctionSample5c.PNG

Sample 2B
Description  - To retrieve a list of organizations with organization name that starts with "Br" and address that contains "Ave" with an ascending order based on the organization name.
--Begin custom parameter --
criteria : [{"andor":"and","field":"sf_Name","operator":"like","value":"Br%"},{"andor":"and","field":"sf_Address","operator":"like","value":"%Ave%"}]
sortby : [{"field":"sf_Name","direction":"asc"}]
getstorevalue :
--End custom parameter--

APIFunctionSample5d.PNG

Retrieve a list of claims

Function Name  -  3.03.1.3 List Method Sample 3: CMS360° - Retrieve a list of claims
Description  - To retrieve a list of claims from professors in profession sorted by organization name in descending order.
Object Type  -  Cast Management 360° - Case
Action Type   -  List
Field List  -  sf_Application Template Type;;sf_Customer;;cf_Claim;;cf_Nature of Injury / Comments on Claim;;sf_Activity List

--Begin custom parameter --
criteria : [{"andor":"and","field":"cf_Nature of Injury / Comments on Claim","operator":"like","value":"%professor%"}]
sortby : [{"field":"sf_Customer","direction":"desc"}]
getstorevalue :
--End custom parameter--

APIFunctionSample5e.PNG

List File

List files of an existing organization

Function Name  -  3.03.2.1 List Files Method Sample 1: from an existing organization
Description  - To retrieve the list of file(s) from the organization using the Company ID
Object Type  -  Company
Action Type   -  List Files
Field List  -  

Parameters used are:
objectid = Company ID
fieldid = Custom Field ID of an organization that is either single file type or multiple file type.

--Begin custom parameter --
objectid : 1688407
fieldid : 1523157
getstorevalue :
--End custom parameter--

APIFunctionSample5f.PNG

List files from an existing application

Function Name  -  3.03.2.2 List Files Method Sample 2: from an existing application
Description  - To retrieve the list of file(s) of an existing application using the Opportunity ID
Object Type  -  Submission Manager - Grant
Action Type   -  List Files
Field List  -  

Parameters used are:
objectid = Opportunity ID
fieldid = Custom Field ID of UTA L1 that is either single file type or multiple file type.

--Begin custom parameter --
objectid : 1688407
fieldid : 1523157
getstorevalue :
--End custom parameter--

APIFunctionSample5g.PNG

List Notes

List notes from an existing application

Function Name  -  3.03.3.1 List Notes Method Sample 1: from an existing application
Description  - To retrieve all note(s) associated with an existing application using the Opportunity ID
Object Type  -  Submission Manager - Grant
Action Type   -  List notes
Field List  - sf_Type Name;;sf_Content;;sf_Created By;;sf_Created By ID;;sf_Created Date;;sf_Note ID;;sf_Object ID;;sf_Type ID;;sf_Note Content

Parameters used are: objectid = Opportunity ID
--Begin custom parameter --
objectid : 8276124
--End custom parameter--

APIFunctionSample5h.PNG

List Multiple Addresses

List all Multiple Addresses of an existing Organization

Function Name  -  3.03.4.1 List Multiple Addresses Method Sample 1: Multiple Addresses of an existing Organization
Description  - To retrieve all of the multiple addresses of an existing organization using the Company ID
Object Type  -  Company
Action Type   -  List Multiple Addresses
Field List  - sf_Address;;sf_Address 2;;sf_City;;sf_State / Province;;sf_Country;;sf_Zip / Postal Code;;sf_Primary Address;;sf_Type;;sf_Type ID;;sf_Updated By;;sf_Last Modified;;sf_Object ID;;sf_Address ID
 

Parameters used are:
objectid = Company ID
--Begin custom parameter --
objectid : 1688407
--End custom parameter--

APIFunctionSample5i.PNG

List Associations

List Contact associations from an existing application

Function Name  -  3.03.5.1 List Associations Method Sample 1: Contact associations from an existing application
Description  - To retrieve the list of contacts associated with an existing application using the Opportunity ID
Object Type  -  Submission Manager - Grant
Action Type   -  List Associations
Field List  - contacts.*
 

Parameters used are:
recordid = Opportunity ID
type = either '"contacts"' or '"organizations"'
--Begin custom parameter --
recordid: 8276165
type: contacts
--End custom parameter--

APIFunctionSample5j.PNG

List Organization associations from an application

Function Name  -  3.03.5.2 List Associations Method Sample 2: Organization associations from an existing application
Description  - To retrieve the list of organizations associated with an existing application using the Opportunity ID
Object Type  -  Submission Manager - Grant
Action Type   -  List Associations
Field List  - organizations.*
 

Parameters used are:
recordid = Opportunity ID
type = either '"contacts"' or '"organizations"'
--Begin custom parameter --
recordid: 8276165
type: organizations
--End custom parameter--

APIFunctionSample5k.PNG

'Metadata'

Get Metadata from CMS360° Application Metadata

Get Metadata from GMS360° Application Metadata

Update

Update

Create/Update organization record
Create/Update User record

Update Multiple Addresses

Update/create multiple address record of an Organization

Update Associations

Create/Update contact associations of a Level 1

'Download File'

Download File(s) from a company profile

'Search File'

06.1 Search Files Method Sample 1: Search Case Documents





See Also

SmartConnect - RESTful API
JSON API (SmartConnect) Standard Field Names


API Sample Code