{"id":224,"date":"2016-12-14T12:41:37","date_gmt":"2016-12-14T11:41:37","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/docs\/fields\/create-a-lookup-field\/"},"modified":"2016-12-17T17:25:45","modified_gmt":"2016-12-17T16:25:45","slug":"create-a-lookup-field","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/fields\/create-a-lookup-field\/","title":{"rendered":"Create Lookup Field"},"content":{"rendered":"<p>The lookup field allows you to establish relationship between different objects. For example,\u00a0the lookup between a child object Contact and a parent object Company.<\/p>\n<p>When creating a contact you have to fill in the company field. Instead of writing the company name you can create a lookup relationship between contact and company. So you have a field called &#8220;Company&#8221; in the Contact Object, which lets you choose the correct company.<\/p>\n<p>To create a Lookup field:<\/p>\n<p>Log in to Cirrus Shield with your administrator profile.Click on your name, then select Setup.Go to the Object\u00a0tab, and click on Details\u00a0Contact.Create a\u00a0New\u00a0field, select\u00a0Lookup Relationship.Enter the Label of the field : Company.Select an object from the\u00a0Related to\u00a0drop-down. In this case, the Company.Enter the\u00a0Relationship Name\u00a0(Ex: Lead)<\/p>\n<p style=\"padding-left: 30px;\">&#8211;\u00a0To set this field as &#8220;Required&#8221;, select the &#8220;Required&#8221; check box<\/p>\n<p style=\"padding-left: 30px;\">&#8211; If the record value is deleted, you can choose to &#8220;Clear the field value&#8221; : Therefore, when a parent entity is deleted in Cirrus Shield, its child entities are deleted as well.<\/p>\n<p style=\"padding-left: 30px;\">&#8211; But you may also choose that the lookup record cannot be deleted if it has children records related to it.<\/p>\n<h4><\/h4>\n<p> <a href=\"https:\/\/help.cirrus-shield.com\/docs\/admin-guide\/customization\/\" target=\"_self\" class=\"fw-btn fw-btn-1 fw-btn-green\"><br \/>\n Return to the Admin Guide<br \/>\n<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":213,"menu_order":4,"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-224","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/224","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=224"}],"version-history":[{"count":7,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/224\/revisions"}],"predecessor-version":[{"id":413,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/224\/revisions\/413"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/213"}],"next":[{"title":"Create Roll-up Summary Field","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/fields\/create-roll-up-summary-field\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1105"}],"prev":[{"title":"Add or Rename Picklist Values","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/fields\/addrename-pick-list-values\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/220"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}