{"id":14415,"date":"2019-02-06T16:00:15","date_gmt":"2019-02-06T16:00:15","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=14415"},"modified":"2022-07-19T16:55:39","modified_gmt":"2022-07-19T11:25:39","slug":"creating-entity-fields-views-common-data-service-apps","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/02\/creating-entity-fields-views-common-data-service-apps\/","title":{"rendered":"Creating Entity, Fields and Views for Common Data Service for Apps"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>In our last two blogs we saw how to <a href=\"https:\/\/www.inogic.com\/blog\/2019\/01\/create-environment-common-data-service-cds\/\" target=\"_blank\" rel=\"noopener noreferrer\">create CDS environment<\/a> and steps for <a href=\"https:\/\/www.inogic.com\/blog\/2019\/02\/create-model-driven-app-cds-environment\/\" target=\"_blank\" rel=\"noopener noreferrer\">creating Model Driven App for CDS Environment<\/a>.<\/p>\n<p>In this blog we will see how to create entity, fields &amp; view for CDS App.<\/p>\n<p>After Creating CDS environment, open that environment in PowerApps as shown in below screen:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14416\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/1Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1413\" height=\"525\" \/><\/p>\n<p>Or, you can directly open it from <a href=\"https:\/\/web.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\"><strong><em>https:\/\/web.powerapps.com<\/em><\/strong><\/a><\/p>\n<p>After clicking on PowerApps, below screen will be displayed where you can select your created environment shown in top right corner.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14417\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/2Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1417\" height=\"617\" \/><\/p>\n<p>After selecting your environment, you can create new custom entity by clicking on <strong>\u201cEntities\u201d<\/strong> tab shown in left navigation bar under <strong>\u201cData\u201d<\/strong>.<\/p>\n<p>After clicking on Entities in above screen, you will be able to see all entities in this environment as shown in below screen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14418\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/3Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1423\" height=\"753\" \/><\/p>\n<p>From above screen, for creating new entity click on <strong>\u201cNew entity\u201d<\/strong>. This will show screen in right as in above image where you can enter details and click on <strong>\u201cNext\u201d <\/strong>button which will show below screen to add fields, views, forms, etc.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14419\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/4Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1439\" height=\"753\" \/><\/p>\n<p>Now, for adding fields for entity click on <strong>\u201cAdd field\u201d <\/strong>which will open a window from right side where you will enter details of the field and for selecting data type click on arrow in <strong>\u201cData type\u201d <\/strong>field which will open list of all data types available for field as shown above.<\/p>\n<p>After selecting data type you will get option to make field as required or not and other details as shown below.<\/p>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-14420\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/5Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"342\" height=\"697\" \/><\/p>\n<p>After clicking on <strong>\u201cDone\u201d <\/strong>button in above screen you will see your field in field section as shown below and then click on <strong>\u201cSave Entity\u201d <\/strong>button which will save your entity and fields.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14421\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/6Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1439\" height=\"763\" \/><\/p>\n<p>As you can see from screen all fields is shown in the fields section as I have created few more of them.<\/p>\n<blockquote><p><strong><em>NOTE: Make sure to click on \u201cSave Entity\u201d button which will save you entity else your fields and entity will not be saved.<\/em><\/strong><\/p><\/blockquote>\n<p>Now for creating views for entity click on <strong>\u201cViews\u201d <\/strong>tab and click on <strong>\u201cAdd view\u201d <\/strong>from ribbon button as shown in below screen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14422\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/7Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1435\" height=\"485\" \/><\/p>\n<p>This will open a screen where you need to add <strong>\u201cName\u201d <\/strong>of the view and <strong>\u201cDescription\u201d <\/strong>if required. And then click on <strong>\u201cCreate.\u201d<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14423\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/8Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1093\" height=\"630\" \/><\/p>\n<p>After clicking on <strong>\u201cCreate,\u201d<\/strong> you will get below screen where you can add fields for the view:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14424\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/9Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1433\" height=\"711\" \/><\/p>\n<p>In above screen you can add fields to view from <strong>\u201cFields\u201d<\/strong> section and another option is by clicking on that <strong>\u201c+\u201d <\/strong>sign in middle\u00a0 of screen. There is also a filter section where you can add filters to view. Below screen shows adding fields from \u201cfields\u201d and \u201c+\u201d button.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14425\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/10Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1433\" height=\"583\" \/><\/p>\n<p>This will add fields in views. For applying filters to this view you can click on <strong>\u201cEdit filters\u201d<\/strong> on right side of the page, which will allow you to add filters for the view as shown in below screen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14426\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/11Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1439\" height=\"753\" \/><\/p>\n<p>From above option you can add filters by clicking on <strong>\u201c+ Add\u201d<\/strong> button which will show option to create single field filter or grouping filters with <strong>\u201cAnd\u201d <\/strong>or <strong>\u201cOr\u201d <\/strong>option and Adding related entity.<\/p>\n<p>After that click on <strong>\u201cOk\u201d<\/strong> button and all details will be displayed as shown in below screen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-14427\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/02\/12Common-Data-Service-for-Apps.png\" alt=\"Common Data Service for Apps\" width=\"1437\" height=\"669\" \/><\/p>\n<p>In above screen all fields are added. Now click on <strong>\u201cSave\u201d <\/strong>button and then <strong>\u201cPublish\u201d<\/strong> button which is in top right corner. This view will now be available for your entity.<\/p>\n<p>You can add this entity in your app and use it.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Using CDS users can easily build apps in PowerApps. This blog gives steps to create entity, fields and views for Common Data Service for Apps.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">70% of global 2000 companies apply gamification to improve productivity and returns!<\/div><\/div><\/h2>\n<p><em><strong><a href=\"https:\/\/bit.ly\/3RD4lYW\" target=\"_blank\" rel=\"noopener noreferrer\">Gamifics365<\/a> <\/strong>\u2013 Spin the magic of games within Microsoft Dynamics 365 CRM to improve user adoption, enhance productivity, and achieve company goals!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In our last two blogs we saw how to create CDS environment and steps for creating Model Driven App for CDS Environment. In this blog we will see how to create entity, fields &amp; view for CDS App. After Creating CDS environment, open that environment in PowerApps as shown in below screen: Or, you\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/02\/creating-entity-fields-views-common-data-service-apps\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":14430,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9,16,19],"tags":[303,305],"class_list":["post-14415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-common-data-service","category-dynamics-365","category-dynamics-crm","tag-common-data-service-dynamics-365-crm","tag-common-data-service-for-apps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/14415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=14415"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/14415\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/14430"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=14415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=14415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=14415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}