{"id":37315,"date":"2024-02-08T16:15:24","date_gmt":"2024-02-08T10:45:24","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=37315"},"modified":"2024-02-08T16:15:24","modified_gmt":"2024-02-08T10:45:24","slug":"power-pages-how-to-track-changes-by-contact-portal-user-in-dataverse-auditing","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/02\/power-pages-how-to-track-changes-by-contact-portal-user-in-dataverse-auditing\/","title":{"rendered":"Power Pages: How to Track Changes by Contact (Portal User) in Dataverse Auditing"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Power Pages sites, connected to Dataverse, serve as a powerful tool for modern website development. Dataverse, acting as a versatile database, offers security features, analytics, and automation. However, Dataverse auditing, which logs changes to customer records, initially poses a challenge as it records actions under the application\/system user, rather than the actual contact (portal user) making the changes. The application user will be in the format <strong># Portals-&lt;&lt;site name&gt;&gt;<\/strong>. You can see in the screenshot below of Dataverse auditing for application user <strong># Portals-&lt;&lt;site name&gt;&gt;<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37322\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"1191\" height=\"559\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing.jpeg 1191w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing-300x141.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing-1024x481.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing-768x360.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/1Dataverse-Auditing-660x310.jpeg 660w\" sizes=\"(max-width: 1191px) 100vw, 1191px\" \/><\/p>\n<h3><strong>Challenges in Tracking Portal Users<\/strong><\/h3>\n<p>The default setup lacks information about the contact performing operations, leaving organizations in the dark about the user making changes to records in Power Pages sites. The solution lies in a straightforward configuration to associate the portal user using basic form metadata for portals.<\/p>\n<h3><strong>Configuration Steps<\/strong><\/h3>\n<p>Create Look-ups: Begin by creating look-ups for contacts on the tables being created or modified. If distinguishing between created by and modified by, separate lookups are needed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37321\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"1084\" height=\"260\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing.jpeg 1084w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing-300x72.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing-1024x246.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing-768x184.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/2Dataverse-Auditing-660x158.jpeg 660w\" sizes=\"(max-width: 1084px) 100vw, 1084px\" \/><\/p>\n<h3><strong>Configure Entity Form Metadata<\/strong><\/h3>\n<p>Follow these steps to configure basic form metadata for portals:<\/p>\n<ol>\n<li>Open the Portal Management app.<\/li>\n<li>Select the desired form from Entity Forms under the Content section.<\/li>\n<li>Navigate to Entity Form Metadata.<\/li>\n<li>Create new metadata.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37320\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"1439\" height=\"593\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing.jpeg 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing-300x124.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing-1024x422.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing-768x316.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/3Dataverse-Auditing-660x272.jpeg 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<h3><strong>Entity Form Configuration<\/strong><\/h3>\n<p>For an Entity Form configured for a table (e.g., Order), create new metadata of <strong>type attribute for the lookup attribute<\/strong>. Set the &#8220;Set Value On Save&#8221; to associate the current portal user as the contactId for the form attribute.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37319\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/4Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"991\" height=\"575\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/4Dataverse-Auditing.jpeg 991w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/4Dataverse-Auditing-300x174.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/4Dataverse-Auditing-768x446.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/4Dataverse-Auditing-660x383.jpeg 660w\" sizes=\"(max-width: 991px) 100vw, 991px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37318\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/5Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"773\" height=\"585\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/5Dataverse-Auditing.jpeg 773w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/5Dataverse-Auditing-300x227.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/5Dataverse-Auditing-768x581.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/5Dataverse-Auditing-660x499.jpeg 660w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/p>\n<p>We have completed the configuration. Now, if someone updates or submits the form on the portal, the value of the portal user\/contact will be audited in Dataverse auditing.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37317\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"1054\" height=\"482\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing.jpeg 1054w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing-300x137.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing-1024x468.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing-768x351.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/6Dataverse-Auditing-660x302.jpeg 660w\" sizes=\"(max-width: 1054px) 100vw, 1054px\" \/><\/p>\n<h3><strong>Additional Settings<\/strong><\/h3>\n<p>To log the created by contact value, ensure to associate the current portal user on the insert section of the Entity Form\u2019s additional settings tab.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37316\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/7Dataverse-Auditing.jpeg\" alt=\"Dataverse Auditing\" width=\"945\" height=\"493\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/7Dataverse-Auditing.jpeg 945w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/7Dataverse-Auditing-300x157.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/7Dataverse-Auditing-768x401.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/7Dataverse-Auditing-660x344.jpeg 660w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In the realm of Microsoft Power Pages and Dataverse, the ability to track changes by Contacts (Portal users) in the auditing process is crucial for comprehensive data management. This blog has provided a step-by-step guide to overcoming the limitations, offering advanced configurations for enhanced user-specific auditing. By implementing these measures, organizations can ensure a transparent digital experience, aligning with the evolving landscape of low-code application development and data governance.<\/p>\n<p>Additionally, for a deeper understanding of basic form metadata configuration, you can explore Microsoft&#8217;s documentation on <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-pages\/configure\/configure-basic-form-metadata\" target=\"_blank\" rel=\"noopener\">Configure basic-form-metadata<\/a>.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/user-adoption-monitor-in-dynamics-crm\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37325\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/User-Adoption-Monitor-1.png\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/User-Adoption-Monitor-1.png 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/User-Adoption-Monitor-1-300x75.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/User-Adoption-Monitor-1-768x192.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/02\/User-Adoption-Monitor-1-660x165.png 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Power Pages sites, connected to Dataverse, serve as a powerful tool for modern website development. Dataverse, acting as a versatile database, offers security features, analytics, and automation. However, Dataverse auditing, which logs changes to customer records, initially poses a challenge as it records actions under the application\/system user, rather than the actual contact (portal\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/02\/power-pages-how-to-track-changes-by-contact-portal-user-in-dataverse-auditing\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"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":[2763],"tags":[2743],"class_list":["post-37315","post","type-post","status-publish","format-standard","hentry","category-power-pages","tag-power-pages"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37315","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=37315"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37315\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=37315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=37315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=37315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}