Difference between revisions of "SsGet"
Line 1: | Line 1: | ||
− | |||
− | |||
__NOTOC__ | __NOTOC__ | ||
The ''ssGet'' variable is used to extract information from databases, including the [[OFAC, IRS, CRA Checks|OFAC (Office of Foreign Assets Control) database]], U.S. [[Census Integration|census data]] and [[:Category:Janus|Janus]], SmartSimple’s Machine Learning tool. | The ''ssGet'' variable is used to extract information from databases, including the [[OFAC, IRS, CRA Checks|OFAC (Office of Foreign Assets Control) database]], U.S. [[Census Integration|census data]] and [[:Category:Janus|Janus]], SmartSimple’s Machine Learning tool. | ||
Line 7: | Line 5: | ||
==Returning information from the Office of Foreign Assets Control (OFAC)== | ==Returning information from the Office of Foreign Assets Control (OFAC)== | ||
+ | {{Billable}} | ||
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: <br /> | 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: <br /> | ||
− | [[Image:RunOFACCheck2.png | + | [[Image:RunOFACCheck2.png|link=|600px]]<br /> |
In the above illustration, the OFAC check has returned one 100% match result on the company name, and no results on the attached contacts. | In the above illustration, the OFAC check 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: | The syntax for configuring the OFAC check is as follows: | ||
− | :<font size | + | : <span style="font-size: medium;">'''@ssGet(OFAC,''entity'';;''firstname'';;''lastname'';;''search options'';;''roleslist'';;''meta template'';;''line template'')@'''</span> |
+ | The arguments are as follows: | ||
− | |||
* ''entity'': accepts "people", "company" or "all" | * ''entity'': accepts "people", "company" or "all" | ||
* ''firstname'': an individual's first name or company name | * ''firstname'': an individual's first name or company name | ||
* ''lastname'': an individual's last name (will be ignored if entity is "company" or "all") | * ''lastname'': an individual's last name (will be ignored if entity is "company" or "all") | ||
* ''search options'': accepts "1", "2" or "3" | * ''search options'': accepts "1", "2" or "3" | ||
− | + | ** 1 - search current object only (when "entity" is set to "people" or "company") | |
− | + | ** 2 - search people underneath (when "entity" is set to "company" only) | |
− | + | ** 3 - search current object and people underneath (when "entity" is set to "company" only) | |
* ''roleslist'': 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). | * ''roleslist'': 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'': Template of how "header" of results will be returned. Default template will be used if empty | + | * ''meta template'': Template of how "header" of results will be returned. Default template will be used if empty |
− | :variables that can be used include: | + | |
− | :*''<nowiki>[[entity]]</nowiki>'' - search type | + | : variables that can be used include: |
− | :*''<nowiki>[[name]]</nowiki>'' - name of search result | + | :* ''<nowiki>[[entity]]</nowiki>'' - search type |
− | :*''<nowiki>[[recordcount]]</nowiki>'' - number of records returned by OFAC search | + | :* ''<nowiki>[[name]]</nowiki>'' - name of search result |
− | :*''<nowiki>[[now]]</nowiki>'' - Current date | + | :* ''<nowiki>[[recordcount]]</nowiki>'' - number of records returned by OFAC search |
− | + | :* ''<nowiki>[[now]]</nowiki>'' - Current date | |
− | *''line template'': Template of how "body" of results will be returned. Default template will be used if empty | + | ''<nowiki>Example: "Search type : [[entity]] , Search for : [[name]], Records returned : [[recordcount]], Date :[[now]]"</nowiki>'' |
− | :variables that can be used include: | + | :* ''line template'': Template of how "body" of results will be returned. Default template will be used if empty |
− | :*''<nowiki>[[index]]</nowiki>'' - index number | + | :: variables that can be used include: |
− | :*''<nowiki>[[id]]</nowiki>'' - OFAC ID for result | + | ::* ''<nowiki>[[index]]</nowiki>'' - index number |
− | :*''<nowiki>[[name]]</nowiki>'' - OFAC name for result | + | ::* ''<nowiki>[[id]]</nowiki>'' - OFAC ID for result |
− | :*''<nowiki>[[type]]</nowiki>'' - OFAC type for result | + | ::* ''<nowiki>[[name]]</nowiki>'' - OFAC name for result |
− | :*''<nowiki>[[alias]]</nowiki>'' - other aliases used | + | ::* ''<nowiki>[[type]]</nowiki>'' - OFAC type for result |
− | :*''<nowiki>[[details]]</nowiki>'' - returns OFAC designation for entity returned, including date updated in OFAC database | + | ::* ''<nowiki>[[alias]]</nowiki>'' - other aliases used |
− | :*''<nowiki>[[score]]</nowiki>'' - percentage score of result match (for example, in the above example, the "company name" ''Boko Haram'' returned a 100% match. An organization with the name ''Bozo Haram'' will return an 88.9% match with ''Boko Haram''. | + | ::* ''<nowiki>[[details]]</nowiki>'' - returns OFAC designation for entity returned, including date updated in OFAC database |
− | + | ::* ''<nowiki>[[score]]</nowiki>'' - percentage score of result match (for example, in the above example, the "company name" ''Boko Haram'' returned a 100% match. An organization with the name ''Bozo Haram'' will return an 88.9% match with ''Boko Haram''. | |
+ | ''<nowiki>Example:[[index]][[id]][[name]][[type]][[details]][[score]]</nowiki>'' | ||
− | + | : | |
The following is an example of the configuration of the above display: | The following is an example of the configuration of the above display: | ||
− | :[[Image:OFACCheckWPVConfig.png | + | :: [[Image:OFACCheckWPVConfig.png|link=|600px]] |
− | + | :: '''''Text version here:''''' | |
− | :'''''Text version here:''''' | + | : |
− | <pre style=" | + | <pre style="white-space: -o-pre-wrap; word-wrap: break-word;"><!--filename="OFAC Check Results @name@ @date(currentdate)@"--> |
− | < | + | <span style="text-decoration: underline;">OFACS CHECK RESULTS</span></pre><div style="pd4ml-display: none; border: 2px #009900 solid; background-color: #ffff66; padding: 10px; font-family: arial;">Save these results by clicking the "Save to Server as PDF" button above"</div> |
− | + | <pre style="white-space: -o-pre-wrap; word-wrap: break-word;"><br /> | |
− | <div style="pd4ml-display:none;border:2px #009900 solid;background-color:# | + | @ssGet(OFAC,company;;@name@;;;;3;;Top 5 Staff,Board Officer;;<strong>[[entity]] Search:</strong> [[name]]<br /><strong>Matches Found:</strong> [[recordcount]]<br />;;Result #[[index]]</pre> |
− | Save these results by clicking the "Save to Server as PDF" button above" | + | :* ID: [[id]] |
− | </div> | + | :* Name: [[name]] |
− | + | :* Type: [[type]] | |
− | <br /> | + | :* Details: [[details]] |
− | @ssGet(OFAC,company;;@name@;;;;3;;Top 5 Staff,Board Officer;;<strong>[[entity]] Search:</strong> [[name]]<br /><strong>Matches Found:</strong> [[recordcount]]<br>;;Result #[[index]]< | + | :* Score: [[score]] |
+ | <pre style="white-space: -o-pre-wrap; word-wrap: break-word;">)@ | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
Line 67: | Line 68: | ||
==Returning information from Watchlist== | ==Returning information from Watchlist== | ||
+ | {{Billable}} | ||
+ | |||
The syntax for configuring the Watch list check is as follows: | The syntax for configuring the Watch list check is as follows: | ||
− | :<font size | + | :: <span style="font-size: medium;">'''@ssGet(WatchList,entity;;firstname;;lastname;;search options;;roleslist;;meta template;;line template)@'''</span> |
+ | : | ||
+ | SmartSimple, in partnership with our Watch List provider (CSI Web) can provide access to a more 3rd party services lists than simply the OFAC list, although the client must pay for the service. The list of supported 3rd party services includes . . . | ||
− | + | :* U.S. Bureau Of Industry and Security | |
− | *U.S. Bureau Of Industry and Security | + | :* Department of State - Bureau of International Security & *Nonproliferation list |
− | *Department of State - Bureau of International Security & *Nonproliferation list | + | :* Department of State - Defense Trade Controls Debarred Parties list |
− | *Department of State - Defense Trade Controls Debarred Parties list | + | :* International Criminal Police Organization (INTERPOL) |
− | *International Criminal Police Organization (INTERPOL) | + | :* Politically Exposed Persons, CIA Foreign Officials |
− | *Politically Exposed Persons, CIA Foreign Officials | + | :* Office of Inspector General |
− | *Office of Inspector General | + | :* Excluded Parties List System provided by the General Services Administration (GSA) |
− | *Excluded Parties List System provided by the General Services Administration (GSA) | + | :* Financial Crimes Enforcement Network |
− | *Financial Crimes Enforcement Network | + | :* FinCEN Money Services Business |
− | *FinCEN Money Services Business | + | :* World Bank Ineligible Firms |
− | *World Bank Ineligible Firms | + | :* Terrorist Exclusion List |
− | *Terrorist Exclusion List | + | :* FBI Most Wanted Fugitives |
− | *FBI Most Wanted Fugitives | + | To check values stored as text, rather than actual Organization or Contact records then use $$ssGet(...)$$ instead of @ssGet(...)@. The following syntax example includes a list of Board Directors stored as XML data in a field named '''Board of Directors''': |
− | + | <pre>@parent.client.xml.Board of Directors XML.boardDirectors.boardDirectorsAdd[#$ssGet(WatchList,company;;owner;;;;3;;Grant Seeker,Executive Director,Board Member;; | |
− | <pre> | + | <strong>Board Member Search:</strong> ~Name.nodevalue~<br />Matches Found: [[recordcount]];;</pre> |
− | @parent.client.xml.Board of Directors XML.boardDirectors.boardDirectorsAdd[# | + | {| class="xmlSectionTable" |
− | <strong>Board Member Search:</strong> ~Name.nodevalue~<br />Matches Found: [[recordcount]];; | + | |- |
− | + | ! class="xmlHead"|Result | |
− | + | ! class="xmlHead"|ID | |
− | + | ! class="xmlHead"|Name | |
− | + | ! class="xmlHead"|Type | |
− | ;;unparsedname=~Name.nodevalue~) | + | ! class="xmlHead"|Alias |
+ | ! class="xmlHead"|Details | ||
+ | ! class="xmlHead"|Score | ||
+ | |- id="matchfound" | ||
+ | | class="xmlCell"|[[index]] | ||
+ | | class="xmlCell"|[[id]] | ||
+ | | class="xmlCell"|[[name]] | ||
+ | | class="xmlCell"|[[type]] | ||
+ | ||[[alias]] | ||
+ | ||[[details]] | ||
+ | | class="xmlCell"|[[score]] | ||
+ | |} | ||
+ | <pre>;;unparsedname=~Name.nodevalue~)$#]@ | ||
</pre> | </pre> | ||
Line 105: | Line 122: | ||
==See Also== | ==See Also== | ||
− | * [[Census Integration]] | + | :* [[Census Integration]] |
− | * [[OFAC, IRS, CRA Checks|OFAC, IRS and CRA Checks]] | + | :* [[OFAC, IRS, CRA Checks|OFAC, IRS and CRA Checks]] |
− | * [[:Category:Janus|Janus, SmartSimple’s Machine Learning tool]] | + | :* [[:Category:Janus|Janus, SmartSimple’s Machine Learning tool]] |
− | |||
[[Category:Integration]][[Category:External Data Source]][[Category:Variables]] | [[Category:Integration]][[Category:External Data Source]][[Category:Variables]] | ||
<!-- OFAC OFACS ofac ofacs OFACs --> | <!-- OFAC OFACS ofac ofacs OFACs --> |
Revision as of 10:23, 20 October 2017
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 check 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 (when "entity" is set to "people" or "company")
- 2 - search people underneath (when "entity" is set to "company" only)
- 3 - search current object and people underneath (when "entity" is set to "company" only)
- roleslist: 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]] - index number
- [[id]] - OFAC ID for result
- [[name]] - OFAC name for result
- [[type]] - OFAC type for result
- [[alias]] - other aliases used
- [[details]] - returns OFAC designation for entity returned, including date updated in OFAC database
- [[score]] - percentage score of result match (for example, in the above example, the "company name" Boko Haram returned a 100% match. An organization with the name Bozo Haram will return an 88.9% match with Boko Haram.
Example:[[index]][[id]][[name]][[type]][[details]][[score]]
The following is an example of the configuration of the above display:
<!--filename="OFAC Check Results @name@ @date(currentdate)@"--> <span style="text-decoration: underline;">OFACS CHECK RESULTS</span>
<br /> @ssGet(OFAC,company;;@name@;;;;3;;Top 5 Staff,Board Officer;;<strong>[[entity]] Search:</strong> [[name]]<br /><strong>Matches Found:</strong> [[recordcount]]<br />;;Result #[[index]]
)@ <br /> <br /> <br /> Date/time check performed: <!--@sscalculation(DATE_FORMAT("@datetime(currentdate)@","%m/%d/%Y % %h:%i%p"))--> E.S.T.<br /> Performed by: @me.fullname@<br /> <br />
Returning information from Watchlist
The syntax for configuring the Watch list check is as follows:
- @ssGet(WatchList,entity;;firstname;;lastname;;search options;;roleslist;;meta template;;line template)@
SmartSimple, in partnership with our Watch List provider (CSI Web) can provide access to a more 3rd party services lists than simply the OFAC list, although the client must pay for the service. The list of supported 3rd party services includes . . .
- U.S. Bureau Of Industry and Security
- Department of State - Bureau of International Security & *Nonproliferation list
- Department of State - Defense Trade Controls Debarred Parties list
- International Criminal Police Organization (INTERPOL)
- Politically Exposed Persons, CIA Foreign Officials
- Office of Inspector General
- Excluded Parties List System provided by the General Services Administration (GSA)
- Financial Crimes Enforcement Network
- FinCEN Money Services Business
- World Bank Ineligible Firms
- Terrorist Exclusion List
- FBI Most Wanted Fugitives
To check values stored as text, rather than actual Organization or Contact records then use $$ssGet(...)$$ instead of @ssGet(...)@. The following syntax example includes a list of Board Directors stored as XML data in a field named Board of Directors:
@parent.client.xml.Board of Directors XML.boardDirectors.boardDirectorsAdd[#$ssGet(WatchList,company;;owner;;;;3;;Grant Seeker,Executive Director,Board Member;; <strong>Board Member Search:</strong> ~Name.nodevalue~<br />Matches Found: [[recordcount]];;
Result | ID | Name | Type | Alias | Details | Score |
---|---|---|---|---|---|---|
index | id | name | type | alias | details | score |
;;unparsedname=~Name.nodevalue~)$#]@
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)@