{"id":33827,"date":"2023-01-23T15:32:00","date_gmt":"2023-01-23T10:02:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=33827"},"modified":"2023-06-13T14:35:43","modified_gmt":"2023-06-13T09:05:43","slug":"relate-and-unrelate-functions-in-canvas-apps","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2023\/01\/relate-and-unrelate-functions-in-canvas-apps\/","title":{"rendered":"Relate and Unrelate functions in Canvas Apps"},"content":{"rendered":"<p><strong>Introduction:-<\/strong><\/p>\n<p>In this blog, we will learn how to use the relate() and unrelate() functions in the Canvas App.<br \/>\nHearing the word relate, you would have assumed that it was going to link to or relate to something. Bingo! With relate() function two records are linked with a one-to-many or many-to-many relationship in Microsoft Dataverse. Also, the unrelate() function acts the exact opposite by removing the link between two records, all in Microsoft Dataverse.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<p><strong>Relate():-<\/strong> Relate(<em>Table1RelatedTable<\/em>, <em>Table2Record<\/em>) \u2013<em>For a record of Table1, the table of Table2 records related through a one-to-many or many-to-many relationship.<\/em><\/p>\n<p><strong>Unrelate():-<\/strong> Unrelate(<em>Table1RelatedTable<\/em>, <em>Table2Record<\/em>)\u2013<em> For a record of Table1, the table of Table2 records is related through a one-to-many or many-to-many relationship.<\/em><\/p>\n<p>Let&#8217;s Understand things in detail. Suppose we have a table Teacher and Student where a teacher has a one-to-many relationship with the student table. That means one teacher can have multiple students.<\/p>\n<p><strong>Step 1:-<\/strong> Go to make.powerapps.com select the environment and go to solution and create a solution. Inside the Solution select New&gt; App &gt; Canvas App. Create a canvas app for a tablet with a blank screen.<\/p>\n<p><strong>Step 2:-<\/strong> In the Data pane, select Add data &gt; In the Data pane, select Add data &gt; select the required tables in our example it is teacher and student.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-33828\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/1canvas-App-1.jpeg\" alt=\"canvas App\" width=\"592\" height=\"505\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/1canvas-App-1.jpeg 592w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/1canvas-App-1-300x256.jpeg 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/p>\n<p><strong>Step 3:-<\/strong> Follow the <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-apps\/maker\/canvas-apps\/add-gallery\">link<\/a> to add a blank vertical Gallery control and name it <strong>\u201cTeacher_Gallery\u201d.<\/strong> On the Properties tab, set the <strong>\u201cTeacher_Gallery\u201d<\/strong> Items property to <strong>\u201cTeachers\u201d<\/strong> and its layout <strong>to \u201cImage, title, and subtitle\u201d<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35020\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/2Canvas-Apps.png\" alt=\"\" width=\"968\" height=\"355\" \/><\/p>\n<p>You can also add the <strong>\u201cTeachers\u201d<\/strong> label through the insert tab and name the element as <strong>\u201cHeader_Teacher<\/strong>\u201d.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35023\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App.png\" alt=\"Canvas App\" width=\"968\" height=\"830\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-300x257.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-768x659.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-660x566.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35024\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-1.png\" alt=\"Canvas App\" width=\"968\" height=\"238\" \/><\/p>\n<p>Give a proper name to the elements as shown in the below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35027\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-4.png\" alt=\"Canvas App\" width=\"968\" height=\"521\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-4.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-4-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-4-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-4-660x355.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p><strong>Step 4:-<\/strong>Here, let\u2019s add a second blank vertical Gallery control, and ensure that it&#8217;s named <strong>\u201cStudent_Gallery\u201d.<\/strong> On the Properties tab, set the <strong>\u201cStudent_Gallery\u201d<\/strong> layout to the title.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35028\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-5.png\" alt=\"Canvas App\" width=\"968\" height=\"278\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-5.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-5-300x86.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-5-768x221.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-5-660x190.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p>In the formula bar, set the Items property of <strong>\u201cStudent_Gallery\u201d<\/strong> to <strong>\u201cTeacher_Gallery.Selected.Students\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35029\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-6.png\" alt=\"Canvas App\" width=\"968\" height=\"429\" \/><\/p>\n<p>Add the label <strong>\u201cAssigned Students\u201d <\/strong>as we have done for the teacher label and name the element <strong>\u201cHeader_Assigned_Students\u201d<\/strong><strong>. <\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35032\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-9.png\" alt=\"Canvas App\" width=\"968\" height=\"394\" \/><\/p>\n<p><strong>Step 5:-<\/strong> Add a Combo box control in front of the student&#8217;s name in the <strong>\u201cStudent_Gallery\u201d<\/strong> and name it <strong>\u201cTeachers_List\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35035\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-12.png\" alt=\"Canvas App\" width=\"968\" height=\"660\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35037\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-14.png\" alt=\"Canvas App\" width=\"968\" height=\"521\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-14.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-14-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-14-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-14-660x355.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p>On the Properties tab set the <strong>\u201cTeachers_List\u201d<\/strong> Items property to Teachers and scroll down and turn off the \u201cAllow multiple selection\u201d.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35038\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-15.png\" alt=\"Canvas App\" width=\"968\" height=\"337\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35040\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-17.png\" alt=\"Canvas App\" width=\"968\" height=\"394\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-17.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-17-300x122.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-17-768x313.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-17-660x269.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p>In the formula bar, set the <strong>\u201cTeachers_List\u201d<\/strong> DefaultSelectedItems property to <strong>\u201cLookUp(Teachers,Teachers=ThisItem.Teacher.Teachers)\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35041\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-18.png\" alt=\"Canvas App\" width=\"968\" height=\"522\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-18.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-18-300x162.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-18-768x414.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-18-660x356.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p><strong>Step 6:-<\/strong> In the Student gallery, set the OnSelect formula for <strong>\u201cRelateUnRelate_Button\u201d<\/strong> to the below formula:<\/p>\n<p><strong>Formula:-<\/strong><\/p>\n<p>If( IsBlank(Teachers_List.Selected),<\/p>\n<p>Unrelate( Teacher_Gallery.Selected.Students, ThisItem ),<\/p>\n<p>Relate( Teachers_List.Selected.Students, ThisItem )<\/p>\n<p>);<\/p>\n<p>Refresh(Students)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35042\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-19.png\" alt=\"Canvas App\" width=\"968\" height=\"521\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-19.png 968w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-19-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-19-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-19-660x355.png 660w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/p>\n<p><strong>Step 7:-<\/strong>Insert new gallery named <strong>\u201cUnassignedStudent_Gallery\u201d.<\/strong> Add a label <strong>\u201cStudents Not Assigned\u201d <\/strong>and a name element as <strong>\u201cHeader_UnAssigned_Students\u201d<\/strong> as we did earlier for the two labels. In the formula bar set its Items property to formula <strong>\u201cFilter(Students, IsBlank(Teacher.Teacher))\u201c<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35043\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/3Canvas-App-20.png\" alt=\"Canvas App\" width=\"968\" height=\"518\" \/><\/p>\n<p><strong>Note:<\/strong> To display a student on the gallery make sure that you have at least one student who has not been assigned to any teacher.<\/p>\n<p>Add a Combo box again in <strong>\u201cUnassignedStudent_Gallery\u201d<\/strong> and name it <strong>\u201cTeachers_List_1\u201d.<\/strong> Disable multiple selections as done in <strong>Step 5.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35063\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image031.png\" alt=\"Canvas App\" width=\"982\" height=\"844\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image031.png 982w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image031-300x258.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image031-768x660.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image031-660x567.png 660w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35064\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image033.png\" alt=\"Canvas App\" width=\"1917\" height=\"779\" \/><\/p>\n<p>OnSelect of <strong>\u201cRelate_Button\u201d<\/strong> write formula <strong>\u201cRelate(Teachers_List_1.Selected.Students,ThisItem);<\/strong><\/p>\n<p><strong>Refresh(Students)\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35065\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image035.png\" alt=\"Canvas App\" width=\"1440\" height=\"772\" \/><\/p>\n<p>Now play the canvas app we made by clicking on the play button.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35066\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image037.png\" alt=\"Canvas App\" width=\"1248\" height=\"698\" \/><\/p>\n<p>As shown in the above images <strong>\u201c<\/strong><strong>Carol B. Melton<\/strong>\u201d has three students. Now we are changing <strong>\u201cJim J. Williams\u201d<\/strong> teacher from <strong>\u201c<\/strong><strong>Carol B. Melton\u201d<\/strong> to <strong>\u201c<\/strong><strong>David K. Lewis\u201d<\/strong> as shown below. Click on the button next to the dropdown to change the teacher:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35067\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039.png\" alt=\"Canvas App\" width=\"1577\" height=\"840\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039.png 1577w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039-300x160.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039-1024x545.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039-768x409.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039-1536x818.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image039-660x352.png 660w\" sizes=\"(max-width: 1577px) 100vw, 1577px\" \/><\/p>\n<p>As a result, we can see now there is no <strong>\u201cJim J. Williams\u201d<\/strong> in the <strong>\u201c<\/strong><strong>Carol B. Melton\u201d<\/strong> student list.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35068\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image041.png\" alt=\"Canvas App\" width=\"1564\" height=\"836\" \/><\/p>\n<p>He has now been assigned under<strong>\u201c<\/strong><strong>David K. Lewis\u201d<\/strong><strong>.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35069\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image043.png\" alt=\"Canvas App\" width=\"1563\" height=\"831\" \/><\/p>\n<p>Now if we select nothing for <strong>\u201cJim J. Williams\u201d<\/strong> and click on the button then the link between <strong>\u201cJim J. Williams\u201d<\/strong> and the assigned teacher is removed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35070\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045.png\" alt=\"Canvas App\" width=\"1565\" height=\"841\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045.png 1565w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045-1024x550.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045-1536x825.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image045-660x355.png 660w\" sizes=\"(max-width: 1565px) 100vw, 1565px\" \/><\/p>\n<p>He is added to the <strong>\u201cStudents Not Assigned\u201d<\/strong> list.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35071\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047.png\" alt=\"Canvas App\" width=\"1558\" height=\"835\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047.png 1558w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047-1024x549.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047-768x412.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047-1536x823.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image047-660x354.png 660w\" sizes=\"(max-width: 1558px) 100vw, 1558px\" \/><\/p>\n<p>If we again select the teacher for <strong>\u201cJim J. Williams\u201d.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35072\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049.png\" alt=\"Canvas App\" width=\"1556\" height=\"837\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049.png 1556w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049-1024x551.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049-1536x826.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image049-660x355.png 660w\" sizes=\"(max-width: 1556px) 100vw, 1556px\" \/><\/p>\n<p>And click on the button in front of the dropdown then <strong>\u201cJim J. Williams\u201d<\/strong> will get assigned to that teacher.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35073\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051.png\" alt=\"Canvas App\" width=\"1547\" height=\"841\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051.png 1547w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051-1024x557.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051-768x418.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051-1536x835.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/image051-660x359.png 660w\" sizes=\"(max-width: 1547px) 100vw, 1547px\" \/><\/p>\n<p><strong>Conclusion: &#8211;<\/strong> Thus, we learn how to use relate() and unrelate()e functions in Canvas App to associate or disassociate two records in Microsoft Dataverse.<\/p>\n<p><a href=\"https:\/\/inogic.com\/services\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-33839\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/Microsoft-Power-Platform-3.png\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/Microsoft-Power-Platform-3.png 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/Microsoft-Power-Platform-3-300x75.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/Microsoft-Power-Platform-3-768x192.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/01\/Microsoft-Power-Platform-3-660x165.png 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction:- In this blog, we will learn how to use the relate() and unrelate() functions in the Canvas App. Hearing the word relate, you would have assumed that it was going to link to or relate to something. Bingo! With relate() function two records are linked with a one-to-many or many-to-many relationship in Microsoft Dataverse.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2023\/01\/relate-and-unrelate-functions-in-canvas-apps\/\">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],"tags":[1867],"class_list":["post-33827","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","tag-canvas-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/33827","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=33827"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/33827\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=33827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=33827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=33827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}