{"id":438,"date":"2019-10-17T17:07:13","date_gmt":"2019-10-17T17:07:13","guid":{"rendered":"http:\/\/morecpq.com\/?p=438"},"modified":"2019-10-21T13:02:15","modified_gmt":"2019-10-21T13:02:15","slug":"error-message-on-vf-page-insufficient_access_or_readonly-user-does-not-have-access-to-use-approval-assignment-email-template","status":"publish","type":"post","link":"https:\/\/morecpq.com\/index.php\/2019\/10\/17\/error-message-on-vf-page-insufficient_access_or_readonly-user-does-not-have-access-to-use-approval-assignment-email-template\/","title":{"rendered":"Error Message on VF Page &#8211; INSUFFICIENT_ACCESS_OR_READONLY: user does not have access to use approval assignment email template."},"content":{"rendered":"\n<p>You have an approval process that sends and email to an approver using a specific visual force email template.  You get an error that says: INSUFFICIENT_ACCESS_OR_READONLY: user does not have access to use approval assignment email template.  GAAAH!!!  What the heck??  You see that the template is in a folder that is set to read only for all users.  It\u2019s definitely not a permissions error.  Weird.  Here is what we found:<\/p>\n\n\n\n<p><strong>First<br><\/strong>On the specific email template we are using, here are the version settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"940\" height=\"195\" src=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image-1024x212.jpeg?resize=940%2C195\" alt=\"\" class=\"wp-image-440\" srcset=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.jpeg?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.jpeg?resize=300%2C62&amp;ssl=1 300w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.jpeg?resize=768%2C159&amp;ssl=1 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p>And here is the version of CPQ installed in the org.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"720\" height=\"54\" src=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.png?resize=720%2C54\" alt=\"\" class=\"wp-image-439\" srcset=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.png?w=720&amp;ssl=1 720w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2019\/10\/image.png?resize=300%2C23&amp;ssl=1 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p>Setting the visual force email template to the installed CPQ version resolves the issue, kinda.  <\/p>\n\n\n\n<p><strong>Second<br><\/strong>Any fields that are a part of a managed package, that are referenced in the email template, must be visible on the page layout for the user clicking submit for approval.<\/p>\n\n\n\n<p>This was a weird one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have an approval process that sends and email to an approver using a specific visual force email template. You get an error that says: INSUFFICIENT_ACCESS_OR_READONLY: user does not have access to use approval assignment email template. GAAAH!!! What the heck?? You see that the template is in a folder that is set to read &hellip;<br \/><a href=\"https:\/\/morecpq.com\/index.php\/2019\/10\/17\/error-message-on-vf-page-insufficient_access_or_readonly-user-does-not-have-access-to-use-approval-assignment-email-template\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Error Message on VF Page &#8211; INSUFFICIENT_ACCESS_OR_READONLY: user does not have access to use approval assignment email template.<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-438","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/comments?post=438"}],"version-history":[{"count":3,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/438\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/438\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/media?parent=438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/categories?post=438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/tags?post=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}