{"id":27374,"date":"2021-03-16T12:39:38","date_gmt":"2021-03-16T12:39:38","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=27374"},"modified":"2021-09-03T04:20:23","modified_gmt":"2021-09-03T04:20:23","slug":"using-enhanced-delegation-for-cds-in-canvas-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/using-enhanced-delegation-for-cds-in-canvas-app\/","title":{"rendered":"Using Enhanced Delegation for CDS in Canvas App"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p style=\"text-align: justify;\">Canvas App is used to perform all kinds of functionalities on the mobile app. In some apps we need to perform various operations. For example, we can search a particular word using a specific letter and finding the count of records as a result. To achieve this, we use functions in the Canvas App.<\/p>\n<p style=\"text-align: justify;\">What if there are high numbers of records? Suppose 25000 and we need to find contacts that match some specific letters like \u2018Ta\u2019. Previously, we couldn\u2019t do it since searching would be restricted to 500 records (or the number provided in settings) but now, using Delegation, we can search in all the existing records. Let\u2019s see how this can be done.<\/p>\n<p>First, enable Delegation. Please follow the below steps for this:<br \/>\n\u2022 First click on <strong>File<\/strong> in Canvas App.<br \/>\n\u2022 Go to <strong>Settings &gt; Advanced Settings<\/strong>.<br \/>\n\u2022 Click Enhanced delegation for <strong>Common Data Service<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27376 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink.jpeg\" alt=\"\" width=\"968\" height=\"487\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink.jpeg 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink-300x151.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink-768x386.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-ink-660x332.jpeg 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/a><\/p>\n<p>Once you have enabled Delegation you will be able to use the function and perform operations on all the records.<\/p>\n<p>Below functions are used in the delegation.<\/p>\n<p>1. In<br \/>\n2. CountRows<br \/>\n3. First<br \/>\n4. CountIf<\/p>\n<p style=\"text-align: justify;\">Suppose if we want to count number of contacts that has a rating greater than 3 and display that count in the label field, we can achieve this by writing the below code of Text property on the label.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Using-Enhanced-Delegation-for-CDS-in-Canvas-App.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27378 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Using-Enhanced-Delegation-for-CDS-in-Canvas-App.jpeg\" alt=\"Using Enhanced Delegation for CDS in Canvas App\" width=\"735\" height=\"193\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Using-Enhanced-Delegation-for-CDS-in-Canvas-App.jpeg 735w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-300x79.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-Using-Enhanced-Delegation-for-CDS-in-Canvas-App-660x173.jpeg 660w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>With the help of Enhanced Delegation we can use functions that perform operation on entire records.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\"><img decoding=\"async\" class=\"aligncenter wp-image-27379 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/sharepoint-security-sync-2.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/sharepoint-security-sync-2.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/sharepoint-security-sync-2-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/sharepoint-security-sync-2-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/sharepoint-security-sync-2-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Canvas App is used to perform all kinds of functionalities on the mobile app. In some apps we need to perform various operations. For example, we can search a particular word using a specific letter and finding the count of records as a result. To achieve this, we use functions in the Canvas App.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/using-enhanced-delegation-for-cds-in-canvas-app\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[1954,9,19],"tags":[1867,301],"class_list":["post-27374","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","category-common-data-service","category-dynamics-crm","tag-canvas-app","tag-common-data-service"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27374","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=27374"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27374\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=27374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=27374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=27374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}