{"id":1149,"date":"2017-05-16T13:47:45","date_gmt":"2017-05-16T12:47:45","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/docs\/developper-guide\/data-manager\/data-types-supported-by-the-data-manager\/"},"modified":"2019-03-14T09:41:29","modified_gmt":"2019-03-14T08:41:29","slug":"data-types-supported-by-the-data-manager","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/data-manager\/data-types-supported-by-the-data-manager\/","title":{"rendered":"Data types and ID considerations"},"content":{"rendered":"<p>1. Boolean<br \/>\n-True values (case insensitive) = 1<br \/>\n&#8211; False values (case insensitive) = 0<br \/>\n 7. Currency<br \/>\n 2. Date Formats<br \/>\n&#8211; The format of Date is: YYYY-MM-DD<br \/>\n&#8211; The format of Date\/Time: YYYY-MM-DD HH:MM:SS+TZ<br \/>\n&#8211; Where TZ is the timezone. Example: 2017-01-15 10:00:00+01<br \/>\n 8. Text<br \/>\n 3. Email<br \/>\n 9. Text Area<br \/>\n 4. Lookup Relationship<br \/>\n 10. Text Area (Rich): Html<br \/>\n 5. Number :<br \/>\n&#8211; Format: nnnnnnnnnnnnnnnn.nn<br \/>\n 11. URL<br \/>\n 6. Percent :<br \/>\n&#8211; Format: nnn.nn <\/p>\n<h4 style=\"text-align: center;\">Lookup Relationship<\/h4>\n<p>When importing data using the Data Manager, you can fill the \u201cLookup Relationship\u201d field values, in the csv file that you want to upload into the Cirrus Shield instance, with the values of the \u201cExternal Id\u201d field of the parent object, instead of filling them with the \u201cCirrus Shield Id\u201d values.<\/p>\n<p>The \u201cExternal Id\u201d field is a field that is used as the unique record identifier from an external system when importing data into the Cirrus Shield instance.<\/p>\n<p>To define a field as an \u201cExternal Id\u201d field, you will need to check the \u201cExternal Id\u201d property found when creating\/updating a field in the Cirrus Shield platform.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/Datamanager-790x266.png\" alt=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/Datamanager-790x266.png\" width=\"790\" height=\"266\" \/><\/p>\n<p>In the current version of Cirrus Shield, only one \u201cExternal Id\u201d field can be defined by object.<\/p>\n<p>If an \u201cExternal Id\u201d field was defined on an object, the \u201cLookup Relationship\u201d fields to that object must be filled with the object \u201cExternal Id\u201d field values and not the \u201cCirrus Shield Id\u201d values.<\/p>\n<p>Example:<\/p>\n<p>Let\u2019s define on the \u201cUser\u201d Cirrus Shield standard object a custom field \u201cUser External Id\u201d of datatype \u201cText\u201d, and check the \u201cExternal Id\u201d property. Let\u2019s also create a custom object \u201cAccount\u201d.Then we will add 2 Cirrus Shield users having the following \u201cId\u201d (Cirrus Shield Id) and \u201cUser External Id\u201d fields values:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/DataManager2-754x101.png\" alt=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/DataManager2-754x101.png\" width=\"754\" height=\"101\" \/><\/p>\n<p>If we want to upload \u201cAccount\u201d records into the Cirrus Shield instance, we will need to fill the \u201cAccount\u201d \u201cLookup Relationship\u201d fields (to the \u201cUser\u201d object) by the \u201cUser External Id\u201d field values and not the \u201cId\u201d (Cirrus Shield Id) field values.<\/p>\n<p>The csv file containing the \u201cAccount\u201d records to upload will be as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/DataManager3-734x103.png\" alt=\"https:\/\/help.cirrus-shield.com\/wp-content\/uploads\/2017\/05\/DataManager3-734x103.png\" width=\"734\" height=\"103\" \/><\/p>\n<p>The \u201cAccount 1\u201d record will have as owner the user: \u201cNoemi Leroy\u201d and the \u201cAccount 2\u201d will have as owner the user: \u201cAlice Robert\u201d.<\/p>\n<p>Note that if we have typed for example \u201c123457\u201d instead of \u201c123456\u201d in the \u201cOwner Id\u201d column of the csv file, the record will not be inserted if no user has the \u201cUser External Id\u201d value \u201c123457\u201d.<\/p>\n<p><!-- 805d8b02b833c6b19a0729eb81b34316 --><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1144,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"doc_tag":[],"class_list":["post-1149","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1149","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=1149"}],"version-history":[{"count":13,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1149\/revisions"}],"predecessor-version":[{"id":1174,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1149\/revisions\/1174"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1144"}],"next":[{"title":"Customizing files to be adapted to your operations","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/data-manager\/customizing-files-to-be-adapted-to-your-operations\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1150"}],"prev":[{"title":"Running the Data Manager","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/data-manager\/running-the-data-manager\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1148"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}