Skip to content

lekkimworld.com

Blog by Mikkel Flindt Heisterberg about everything and nothing – mostly appdev stuff…

About this Blog

This is the blog for Mikkel Flindt Heisterberg about everything and nothing. More detailed info about me, incl. bio, can be found on the about me page. Please also read the disclaimer.

All views and opinions on this blog are definitely my own and does not necessarily reflect those of my employer.

Recent Posts

  • Scratch org with Salesforce Event Monitoring
  • Scratch org with Salesforce Order Management
  • Salesforce Identity Video – Email Templates including translation
  • Salesforce Identity Video – MFA Enablement
  • Salesforce Identity Video – Internationalization (i18n) / Localization (l10n)

Recent Comments

Derek on Single Sign On to Salesforce w…
lekkim on Single Sign On to Salesforce w…
Derek on Single Sign On to Salesforce w…
lekkim on Single Sign On to Salesforce w…
lekkim on Single Sign On to Salesforce w…

Tags

  • apex
  • api
  • composite_application
  • connections
  • discovering_notes8
  • domino
  • eclipse
  • expeditor
  • firefox
  • heroku
  • ibm
  • ibm_connections
  • java
  • javascript
  • java_explained
  • lotus
  • lotusphere2007
  • lotusphere2008
  • lotusphere2009
  • lotusphere2010
  • lotusscript
  • lotus_connections
  • lsdoc
  • mywidgets
  • notes
  • notes8
  • notes85
  • notes851
  • notes852
  • oauth
  • ontime
  • osgi
  • plugin
  • podcast
  • salesforce
  • salesforcedx
  • sametime
  • sametime_75
  • sfdx
  • Show-n-tellThursday
  • sntt
  • swt
  • technote
  • traveler
  • twitnotes
  • twitter
  • was
  • websphere
  • xml
  • xpages

Follow me on Twitter

My Tweets

Tag: trigger

Run Apex trigger for Salesforce Platform Event as specified user

By default when you create an Apex trigger in Salesforce to trigger on a Platform Event it will run as the Automated Process system user. This can cause problems when you want to access data or use features that require a “real” user like Chatter. Starting with Spring 21 this has been made a lot better as you can specify the running user and maximum batch size among other things. It’s done through the PlatformEventSubscriberConfig metadata element (or through the Tooling API) and you can read more in the Spring 21 release notes.

The actual configuration is easy enough but I did find one caveat in that it didn’t take effect when deploying a PlatformEventSubscriberConfig record for an existing trigger i.e. a trigger already in the org. The metadata deployed just fine but it didn’t take effect. To fix it I had to delete the trigger from the org and the redeploy the trigger and the PlatformEventSubscriberConfig configuration at the same time.

YMMV.

Posted on October 28, 2021Tags apex, metadata, salesforce, triggerLeave a comment on Run Apex trigger for Salesforce Platform Event as specified user

Event-driven fine-grained auditing with Informix Dynamic Server

Via Google as a God-sent: Event-driven fine-grained auditing with Informix Dynamic Server

Posted on August 14, 2006Tags audit, informix, trigger
Blog at WordPress.com.
  • Follow Following
    • lekkimworld.com
    • Already have a WordPress.com account? Log in now.
    • lekkimworld.com
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar