{"id":131,"date":"2010-07-26T16:00:00","date_gmt":"2010-07-26T10:30:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=131"},"modified":"2021-08-25T11:07:12","modified_gmt":"2021-08-25T11:07:12","slug":"pre-image-post-image-explained","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2010\/07\/pre-image-post-image-explained\/","title":{"rendered":"Pre-Image &#038; Post Image Explained !"},"content":{"rendered":"<p>Plugins in Dynamics CRM, allow you to register images against the steps of a plugin assembly. Images are a way to pass the image of the record that is currently being worked upon prior or after the action has been performed. In general it could be said, it is the image of the record as is available in the SQL backend.<br \/>\nTwo types of Images are supported, Pre-Image and Post Image.<br \/>\nIn case of Pre-image, you get the image of the record as is stored in the SQL database before the CRM Platform action has been performed.<br \/>\nPost Image, returns the image of the record after the CRM Platform action has been performed.<br \/>\nAs developers, you may have at times, received the following error when trying to implement a plugin.<br \/>\n<a href=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TEp8mxKTppI\/AAAAAAAAAfM\/bVxoaxFCoF0\/s1600\/12.jpg\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TEp8mxKTppI\/AAAAAAAAAfM\/bVxoaxFCoF0\/s400\/12.jpg\" alt=\"\" border=\"0\" \/><\/a><br \/>\nIt is there important to understand when the images would be available and what state of the record would be returned in these images.<br \/>\nSay you were to register a \u201cPre-Image\u201d for a plugin registered in Pre-Create Stage. We just mentioned above, that the image is a copy of the record as is stored in the SQL backend. Since this is the create stage and the record has not even been created as yet, there is no record in the SQL backend that can be returned in the Pre-Image and hence any call for the image would fail with the above error message.<br \/>\nThe following table explains the <strong>Pre-Image<\/strong> Availability<br \/>\n<a href=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TEqC816T7SI\/AAAAAAAAAfk\/cycwxM9k8jM\/s1600\/13.jpg\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TEqC816T7SI\/AAAAAAAAAfk\/cycwxM9k8jM\/s400\/13.jpg\" alt=\"\" border=\"0\" \/><\/a> The following table explains the <strong>Post-Image<\/strong> Availability<br \/>\n<a href=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/TEqBJupeW-I\/AAAAAAAAAfc\/lDTRiyrULGw\/s1600\/14.jpg\"><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/TEqBJupeW-I\/AAAAAAAAAfc\/lDTRiyrULGw\/s400\/14.jpg\" alt=\"\" border=\"0\" \/><\/a><br \/>\nHope this help demystify the Images..<\/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\">Free 70% of storage space in CRM with Attachment Management Apps!<\/div><\/div><\/h2>\n<p><em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/attach-2-dynamics-365-crm-upload-multiple-files-sharepoint-cloud-storage\" target=\"_blank\" rel=\"noopener noreferrer\">Attach2Dynamics<\/a> &#8211; Store and manage documents\/attachments in cloud storage of your choice &#8211; SharePoint, Dropbox or Azure Blob Storage from within Dynamics 365 CRM.<\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\" target=\"_blank\" rel=\"noopener noreferrer\">SharePoint Security Sync<\/a><\/strong> \u2013 Robust and secure solution to integrate Dynamics 365 CRM and SharePoint Security Sync thereby ensuring secure access to confidential documents stored in SharePoint.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plugins in Dynamics CRM, allow you to register images against the steps of a plugin assembly. Images are a way to pass the image of the record that is currently being worked upon prior or after the action has been performed. In general it could be said, it is the image of the record as\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2010\/07\/pre-image-post-image-explained\/\">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":[19],"tags":[1336,1355,1358],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","tag-post-image","tag-pre-image","tag-preimage-and-post-image"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/131","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=131"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}