{"id":945,"date":"2017-03-28T12:53:04","date_gmt":"2017-03-28T11:53:04","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/docs\/developper-guide\/javascript-library\/"},"modified":"2022-01-10T19:33:19","modified_gmt":"2022-01-10T18:33:19","slug":"javascript-library","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/","title":{"rendered":"JavaScript Library"},"content":{"rendered":"<section class=\"fw-main-row \">\n<div class=\"fw-container\">\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12\">\n<p style=\"text-align: left;\">Cirrus Shield JavaScript Library is a library written in JavaScript language. It can be used to <strong><span style=\"color: #009551;\">insert<\/span><\/strong>, <strong><span style=\"color: #009551;\">update<\/span><\/strong>, <strong><span style=\"color: #009551;\">upsert<\/span><\/strong>, and <strong><span style=\"color: #009551;\">delete<\/span> <\/strong>data from Cirrus Shield.<\/p>\n<p style=\"text-align: left;\">It can be used in custom buttons created in Cirrus Shield that execute JavaScript code or in any other applications using JavaScript to execute the functions.<\/p>\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12\">\n<p><strong>The Cirrus Shield JavaScript Library contains the following\u00a0functions<\/strong>:<\/p>\n<\/div>\n<\/div>\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12\">\u00a0<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12 fw-col-sm-6\">\n<p>1. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-token-id\/\">Get Token ID<\/a><br \/>2. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-time-zone\/\">Get Time Zone<\/a><br \/>3. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-record-id\/\">Get Record ID<\/a><br \/>4. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-logged-in-user-guide\/\">Get Logged In User Guide<\/a><br \/>5. <a href=\"\/?p=1550\">Get Owner<\/a><br \/>6. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-organization-info\/\">Get Organization Info<\/a><br \/>7.<a href=\"https:\/\/help.cirrus-shield.com\/?post_type=docs&amp;p=3528&amp;preview=true\"> Get Current User Info<\/a><br \/>8. <a href=\"https:\/\/help.cirrus-shield.com\/docs\/get-user-info\/\">Get User Info<\/a><br \/>9. <a href=\"https:\/\/help.cirrus-shield.com\/?post_type=docs&amp;p=3541&amp;preview=true\">Get User Info by Username<\/a><br \/>10. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-selected-record-guids\/\">Get Selected Record GUIDS<\/a><br \/>11. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-data-by-id\/\">Get Data By ID<\/a><br \/>12. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-data-by-column\/\">Get Data By Column<\/a><br \/>13. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/create-record\/\">Create Record<\/a><strong><br \/><\/strong>14. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/update-record\/\">Update Record<\/a><br \/>15. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/upsert-record\/\">Upsert Record<\/a><br \/>16. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/delete-record\/\">Delete Record<\/a><br \/>17. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-picklist-name\/\">Get Picklist Name<\/a><br \/>18. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-picklist-guid\/\">Get Picklist GUID<br \/><\/a>19. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/decoding-text\/\">Decoding text<\/a><br \/>20. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/send-email\/\">Send Email<\/a><br \/>21. <a href=\"\/?p=1628\">Create Mass Records<\/a><br \/>22. <a href=\"\/?p=1630\">Update Mass Records<\/a><br \/>23. <a href=\"\/?p=1631\">Upsert Mass Records<\/a><br \/>24. <a href=\"\/?p=1632\">Delete Mass Records<\/a><br \/>25. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/format-date\/\">Format Date<\/a><br \/>26. <a href=\"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/format-date-time\/\">Format Date Time<\/a><br \/>27. <a href=\"https:\/\/help.cirrus-shield.com\/?post_type=docs&amp;p=3544&amp;preview=true\">toCurrentUserTimezone<\/a><\/p>\n<\/div>\n<div class=\"fw-col-xs-12 fw-col-sm-6\">\u00a0<\/div>\n<\/div>\n<div class=\"fw-row\">\n<div class=\"fw-col-xs-12\">\n<p>To start using these functions, the link of the library must be inserted in the page as follow:<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<p><!-- acca7e0b08b23ac7cbcadc83bb866a7d --><\/p>\n\n\n<pre class=\"wp-block-code\"><code>\u00a0&lt;script\u00a0src=\" https:\/\/www.cirrus-shield.net\/Content\/CirrusShield\/CirrusShieldJS.js\">&lt;\/script><\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":943,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_tag":[],"class_list":["post-945","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=945"}],"version-history":[{"count":19,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/945\/revisions"}],"predecessor-version":[{"id":4377,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/945\/revisions\/4377"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/943"}],"next":[{"title":"Data Manager","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/data-manager\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1144"}],"prev":[{"title":"Rest API","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/rest-api\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/944"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=945"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}