Difference between revisions of "SsGet"
Line 23: | Line 23: | ||
:*3-search current object and people underneath (company entity only) | :*3-search current object and people underneath (company entity only) | ||
* ''rolelist'': applies if "search options" is set to 2 or 3. Should be in format of comma-delimited [[roleid|role ids]] or role names (but not ids mixed with names). | * ''rolelist'': applies if "search options" is set to 2 or 3. Should be in format of comma-delimited [[roleid|role ids]] or role names (but not ids mixed with names). | ||
− | ''meta template'': | + | *''meta template'': Template of how "header" of results will be returned. Default template will be used if empty |
:variables that can be used include: | :variables that can be used include: | ||
:*''<nowiki>[[entity]]</nowiki>'' - search type | :*''<nowiki>[[entity]]</nowiki>'' - search type | ||
Line 29: | Line 29: | ||
:*''<nowiki>[[recordcount]]</nowiki>'' - number of records returned by OFAC search | :*''<nowiki>[[recordcount]]</nowiki>'' - number of records returned by OFAC search | ||
:*''<nowiki>[[now]]</nowiki>'' - Current date | :*''<nowiki>[[now]]</nowiki>'' - Current date | ||
− | :''<nowiki>Example : "Search type : [[entity]] , Search for : [[name]], Records returned : [[recordcount]], Date :[[now]]"</nowiki>'' | + | :''<nowiki>Example: "Search type : [[entity]] , Search for : [[name]], Records returned : [[recordcount]], Date :[[now]]"</nowiki>'' |
− | + | *''line template'': Template of how "body" of results will be returned. Default template will be used if empty | |
− | + | :variables that can be used include: | |
− | line template : | + | :*''<nowiki>[[index]]</nowiki>'' - search type |
− | + | :*''<nowiki>[[id]]</nowiki>'' - search type | |
− | Example : <tr><td>[[index]]</td><td>[[id]]</td><td>[[name]]</td><td>[[type]]</td><td>[[details]]</td><td>[[score]]</td></tr> | + | :*''<nowiki>[[name]]</nowiki>'' - search type |
+ | :*''<nowiki>[[type]]</nowiki>'' - search type | ||
+ | :*''<nowiki>[[details]]</nowiki>'' - search type | ||
+ | :*''<nowiki>[[score]]</nowiki>'' - search type | ||
+ | :''<nowiki>Example: <tr><td>[[index]]</td><td>[[id]]</td><td>[[name]]</td><td>[[type]]</td><td>[[details]]</td><td>[[score]]</td></tr></nowiki>'' | ||
Revision as of 15:27, 2 December 2014
The ssGet variable is used to extract information from databases, including the OFAC (Office of Foreign Assets Control) database, U.S. census data and Janus, SmartSimple’s Machine Learning tool.
The syntax for the ssGet variable varies by the database from which information is being returned.
Returning information from the Office of Foreign Assets Control (OFAC)
On-request checks can be made against the OFAC's online database within SmartSimple. For example, on an organization profile, a button can be configured that exposes the following check results:
In the above illustration, the OFAC has returned one 100% match result on the company name, and no results on the attached contacts.
The syntax for configuring the OFAC check is as follows:
- @ssGet(OFAC,entity;;firstname;;lastname;;search options;;roleslist;;meta template;;line template)@
The arguments are as follows:
- entity: accepts "people", "company" or "all"
- firstname: an individual's first name or company name
- lastname: an individual's last name (will be ignored if entity is "company" or "all")
- search options: accepts "1", "2" or "3"
- 1-search current object only (people or company entity),
- 2-search people underneath (company entity only)
- 3-search current object and people underneath (company entity only)
- rolelist: applies if "search options" is set to 2 or 3. Should be in format of comma-delimited role ids or role names (but not ids mixed with names).
- meta template: Template of how "header" of results will be returned. Default template will be used if empty
- variables that can be used include:
- [[entity]] - search type
- [[name]] - name of search result
- [[recordcount]] - number of records returned by OFAC search
- [[now]] - Current date
- Example: "Search type : [[entity]] , Search for : [[name]], Records returned : [[recordcount]], Date :[[now]]"
- line template: Template of how "body" of results will be returned. Default template will be used if empty
- variables that can be used include:
- [[index]] - search type
- [[id]] - search type
- [[name]] - search type
- [[type]] - search type
- [[details]] - search type
- [[score]] - search type
- Example: <tr><td>[[index]]</td><td>[[id]]</td><td>[[name]]</td><td>[[type]]</td><td>[[details]]</td><td>[[score]]</td></tr>
Example: put this “@GovValidation(OFAC;;company;;@name@;;;;3;;Board of Advisors;;;;)@” on a company called “Sarah” web page view field results this
Returning information from the online U.S. Census database
@ssGet(FFD,FIPS;;@address@ @city@ @state@)@
@ssGet(FFD,Profile;;year;;Address or FIPS code;;level;;[[template]])@
(See Census Integration for detailed description of syntax.)
(See List of census templates for links to full list of values for [[template]])
Returning information from Janus
@ssGet(JANUS,modelname)@