function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saharisahari 

Customer Portal and Emails

Hi

 

I have a requirement that, the customer portal users create tasks or send emails to the regular users.

But I believe that the portal users cannot create tasks. But I am not sure why the emails don't work.

Does anyone know a workaround for this?

 

Any help is greatly appreciated!

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
saharisahari

Got it solved. Thanks for all the help.

All Answers

paul-lmipaul-lmi

I think you can use system.runAs around your "elevated" code to get around that limitation.

saharisahari

Thank you for the immediate response. Could you please elaborate?

paul-lmipaul-lmi

Well, if the limitation you're hitting is a licensing one (ie, the license of the user executing the action doesn't all said action), system.runAs will allow you to run that piece of code as a different user, say, an automation user account with a full salesforce license, vs the regular sites license.

sfdev86sfdev86

But I think we can use system.runas only in test methods!!

saharisahari

Got it solved. Thanks for all the help.

This was selected as the best answer