tag:blogger.com,1999:blog-6140199022860280334.post3455084361667748681..comments2024-03-18T05:04:29.659+00:00Comments on Bob Buzzard Blog: Custom Transaction Security Policies in Spring 16Bob Buzzardhttp://www.blogger.com/profile/07815472992351343395noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6140199022860280334.post-28495149281872732612018-05-18T19:02:51.400+01:002018-05-18T19:02:51.400+01:00How do write a test class for this?
How do write a test class for this? <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-70615169446877902442018-03-14T15:07:28.526+00:002018-03-14T15:07:28.526+00:00Hi, I think you have already figured it out, but m...Hi, I think you have already figured it out, but maybe for others to know: "Don’t include Data Manipulation Language (DML) statements in your custom policies. DML operations are rolled back after a transaction security policy is evaluated, regardless if the policy evaluates to true or false."<br /><br />https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/security_transactions_apex_policies.htm<br />Marek Smerakhttps://trailhead.salesforce.com/me/mareknoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-72658332296115558792016-07-13T08:02:55.117+01:002016-07-13T08:02:55.117+01:00Hi Bob: I am trying to send email to user's (w...Hi Bob: I am trying to send email to user's (who initiated the transaction) Manager using Messaging.SingleEmailMessage but it is not sent if condition is met in Execute method.<br /><br />I have also tried to create Custom object record. In the debug logs I am able to see the id of the record in execute method but when I try to locate that record I am not able to find it in system.<br /><br />Any Idea?Anonymoushttps://www.blogger.com/profile/12939082983473079866noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-23486066653243557362016-02-15T18:18:26.525+00:002016-02-15T18:18:26.525+00:00Thanks for sharing Bob. This is really a very usef...Thanks for sharing Bob. This is really a very useful feature.Anshul Vermahttps://www.blogger.com/profile/08108189820154378688noreply@blogger.com