Difference between revisions of "Creating SmartConnect Functions"

From SmartWiki
Jump to: navigation, search
(SmartConnect Function Samples)
(SmartConnect Function Samples)
Line 50: Line 50:
 
<span style="color: #247859;">      List Method Sample 2: Retrieve a list of organizations</span><br />
 
<span style="color: #247859;">      List Method Sample 2: Retrieve a list of organizations</span><br />
 
<span style="color: #247859;">      List Method Sample 3: CMS360° - Retrieve a list of claims</span><br />
 
<span style="color: #247859;">      List Method Sample 3: CMS360° - Retrieve a list of claims</span><br />
<span style="color: #247859;">      List Method Sample 4: CMS360°- Retrieve a list of Services</span>
+
<span style="color: #247859;">      List Method Sample 4: CMS360°- Retrieve a list of Services</span><br />
 
+
<span style="color: #247859;">      List Method Sample 5: CMS360°- Retrieve Assessors list</span>
 
|-
 
|-
 
||
 
||
Line 57: Line 57:
 
||
 
||
 
[[Image:UpdateCompany.PNG|thumb|right|851x230px|<strong>Update Company</strong>]]
 
[[Image:UpdateCompany.PNG|thumb|right|851x230px|<strong>Update Company</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Global: Create organizations</span><br />
 
<span style="color: #247859;">      Global: Create organizations</span><br />
 
<span style="color: #247859;">      Global: Create/Update User</span>
 
<span style="color: #247859;">      Global: Create/Update User</span>
Line 66: Line 66:
 
||
 
||
 
[[Image:DownloadFiles.PNG|thumb|right|851x230px|<strong>Download Files from Level One</strong>]]
 
[[Image:DownloadFiles.PNG|thumb|right|851x230px|<strong>Download Files from Level One</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Global: Download file(s) from a company profile</span>
 
<span style="color: #247859;">      Global: Download file(s) from a company profile</span>
  
Line 74: Line 74:
 
||
 
||
 
[[Image:ListFiles.PNG|thumb|right|851x230px|<strong>List Files from Level One</strong>]]
 
[[Image:ListFiles.PNG|thumb|right|851x230px|<strong>List Files from Level One</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Sample of List Files - from an organization</span><br />
 
<span style="color: #247859;">      Sample of List Files - from an organization</span><br />
 
<span style="color: #247859;">      Sample of List Files - from an application</span>
 
<span style="color: #247859;">      Sample of List Files - from an application</span>
Line 83: Line 83:
 
||
 
||
 
[[Image:SearchFiles.PNG|thumb|right|851x230px|<strong>Search Files from Level One</strong>]]
 
[[Image:SearchFiles.PNG|thumb|right|851x230px|<strong>Search Files from Level One</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      CMS360°: Search Case Documents</span>
 
<span style="color: #247859;">      CMS360°: Search Case Documents</span>
  
Line 91: Line 91:
 
||
 
||
 
[[Image:ListNotes.PNG|thumb|right|851x230px|<strong>List Notes from a Company</strong>]]
 
[[Image:ListNotes.PNG|thumb|right|851x230px|<strong>List Notes from a Company</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      List Notes from an application</span>
 
<span style="color: #247859;">      List Notes from an application</span>
  
Line 99: Line 99:
 
||
 
||
 
[[Image:ListMultipleAddresses.PNG|thumb|right|851x230px|<strong>Get all multiple addresses of a Company</strong>]]
 
[[Image:ListMultipleAddresses.PNG|thumb|right|851x230px|<strong>Get all multiple addresses of a Company</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      List Multiple Addresses of an Organization</span>
 
<span style="color: #247859;">      List Multiple Addresses of an Organization</span>
  
Line 107: Line 107:
 
||
 
||
 
[[Image:UpdateMultipleAddresses.PNG|thumb|right|851x230px|<strong>Update multiple addresses of a Company</strong>]]
 
[[Image:UpdateMultipleAddresses.PNG|thumb|right|851x230px|<strong>Update multiple addresses of a Company</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Update Multiple Addresses of an Organization</span>
 
<span style="color: #247859;">      Update Multiple Addresses of an Organization</span>
  
Line 115: Line 115:
 
||
 
||
 
[[Image:List_Associations.png|thumb|right|851x230px|<strong>List Contact Association of a Level 1</strong>]]
 
[[Image:List_Associations.png|thumb|right|851x230px|<strong>List Contact Association of a Level 1</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Sample of List Contact Associations - from an application</span><br />
 
<span style="color: #247859;">      Sample of List Contact Associations - from an application</span><br />
 
<span style="color: #247859;">      Sample of List Organization Associations - from an application</span>
 
<span style="color: #247859;">      Sample of List Organization Associations - from an application</span>
Line 124: Line 124:
 
||
 
||
 
[[Image:Update_Associations.png|thumb|right|851x230px|<strong>Update Contact Association of a Level 1</strong>]]
 
[[Image:Update_Associations.png|thumb|right|851x230px|<strong>Update Contact Association of a Level 1</strong>]]
<span style="color: #247859;"> Examples from the '''[https://api.smartsimple.com/devtools/dev_api.html interactive demonstration page]''' </span><br />
+
<span style="color: #247859;"></span><br />
 
<span style="color: #247859;">      Update Contact Association of a Level 1</span><br />
 
<span style="color: #247859;">      Update Contact Association of a Level 1</span><br />
 
<span style="color: #247859;">      Update Organization Association of a Level 1</span>
 
<span style="color: #247859;">      Update Organization Association of a Level 1</span>

Revision as of 12:03, 12 April 2018

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.

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 Connectivity tab
4. Click on the SmartConnect API link

Any existing Functions are displayed

5. Click on the + button to create a new function.

Function Settings

Each function has the following settings:

  • 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.
  • Object 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 Types – this defines the action to be taken by the function. The following actions are available: GET, LIST, UPDATE, DOWNLOAD FILE, and LIST FILES. Details on these Action Types / Methods are available in the following section.
  • 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.

Function      Sample

'Get'

Get Company

 
      Get Method Sample 1: Retrieve a Single Organization Record
      Get Method Sample 2: Retrieve a Single Contact Record
      Get Method Sample 3: Retrieve a Single Grant Application Record
      Get Method Sample 4: Retrieve a Single Grant Application Payment Record
      Get Method Sample 5: List Files

'List'

List Level One

 
      List Method Sample 1: Retrieve a list of contacts
      List Method Sample 2: Retrieve a list of organizations
      List Method Sample 3: CMS360° - Retrieve a list of claims
      List Method Sample 4: CMS360°- Retrieve a list of Services
      List Method Sample 5: CMS360°- Retrieve Assessors list

'Update'

Update Company


      Global: Create organizations
      Global: Create/Update User

'Download File'

Download Files from Level One


      Global: Download file(s) from a company profile

'List File'

List Files from Level One


      Sample of List Files - from an organization
      Sample of List Files - from an application

'Search File'

Search Files from Level One


      CMS360°: Search Case Documents

'List Notes'

List Notes from a Company


      List Notes from an application

'List Multiple Addresses'

Get all multiple addresses of a Company


      List Multiple Addresses of an Organization

'Update Multiple Addresses'

Update multiple addresses of a Company


      Update Multiple Addresses of an Organization

'List Associations'

List Contact Association of a Level 1


      Sample of List Contact Associations - from an application
      Sample of List Organization Associations - from an application

'Update Associations'

Update Contact Association of a Level 1


      Update Contact Association of a Level 1
      Update Organization Association of a Level 1

See Also

JSON API (SmartConnect)
JSON API (SmartConnect) Prerequisite
Using JSON functions
JSON API (SmartConnect) Standard Field Names


API Sample Code