Is there any way to use apex and triggers to work around the limitation that a community user cannot post to internal chatter groups ? I have code working such that an internal user can have his posts and comments cross-posted to a communities group. However, when i try to run the code for a communities user, the post to the internal group is blocked because of this error:
System.NoAccessException: Insufficient Privileges: You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: (System Code)
So basically, I need to find a way to get my trigger to run as though it were a user of the internal org ... are there any workarounds that might accomplish this? I considered making it a future method, but that just gets scheduled as the current user. My only other idea would be to create a scheduler that runs every minute or so and checks for updates and syncs them up .. but that would be icky.
답변 1개
This Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at https://developer.salesforce.com (https://developer.salesforce.com)where the forums and participants are geared toward programming troubleshooting and support.