Difference between revisions of "Creating SmartConnect Functions"
m (Chin moved page Creating JSON functions to Creating SmartConnect Functions) |
(→SmartConnect Function Samples) |
||
Line 32: | Line 32: | ||
|| | || | ||
[[Image:GetCompany.PNG|thumb|right|851x230px|<strong>Get Company</strong>]] | [[Image:GetCompany.PNG|thumb|right|851x230px|<strong>Get Company</strong>]] | ||
− | <span | + | <span> </span><br /> |
− | <span | + | <span> 3.01.1 Get Method Sample 1: Retrieve a Single Organization Record</span><br /> |
− | <span | + | <span> 3.01.2 Get Method Sample 2: Retrieve a Single Contact Record</span><br /> |
− | <span | + | <span> 3.01.3 Get Method Sample 3: Retrieve a Single Grant Application Record</span><br /> |
− | <span | + | <span> 3.01.4 Get Method Sample 4: Retrieve a Single Grant Application Payment Record</span><br /> |
− | <span | + | <span> 3.01.5 Get Method Sample 5: List Files</span> |
|- | |- | ||
Line 146: | Line 146: | ||
<span style="color: #247859;"> 3.13.2 Get Report Sample 2: GMS360°: Grants by Organization Report</span><br /> | <span style="color: #247859;"> 3.13.2 Get Report Sample 2: GMS360°: Grants by Organization Report</span><br /> | ||
<span style="color: #247859;"> 3.13.3 Get Report Sample 3: GMS360°: GMS360°: Grants by Focus Area Report</span><br /> | <span style="color: #247859;"> 3.13.3 Get Report Sample 3: GMS360°: GMS360°: Grants by Focus Area Report</span><br /> | ||
− | <span style="color: #247859;"> 3.13.4 Get Report Sample 4: GMS360°: GMS360°: Payments Made by Grant Type Report</span | + | <span style="color: #247859;"> 3.13.4 Get Report Sample 4: GMS360°: GMS360°: Payments Made by Grant Type Report</span> |
|} | |} |
Revision as of 15:18, 21 August 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.
- Log into the copy of SmartSimple where you wish to add the function.
- Navigate to Global Settings.
- Click on the Integrations tab.
- Click on the SmartConnect API link. Existing functions will be listed here for you to update.
- 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, 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' |
|
'List' |
|
'Update' |
|
'Download File' |
|
'List File' |
|
'Search File' |
|
'List Notes' |
|
'List Multiple Addresses' |
|
'Update Multiple Addresses' |
|
'List Associations' |
|
'Update Associations' |
|
'Metadata' |
|
'Report' |
|
See Also
SmartConnect - RESTful API
JSON API (SmartConnect) Standard Field Names