How can I send an email using a script in SCMA if ...
# suitecommerce
c
How can I send an email using a script in SCMA if I can't add this permission to the customer center role?
"error": "Permission Violation: You need the 'Vicarious emails' permission to access this page. Please contact your account administrator."
Current thinking: The SS2 script in SCMA can save data to a custom record, and a map-reduce script can send emails from those records. The extra complexity isn't welcome though.
c
extra complexity is a feature, not a bug
this is fine fire 1
c
I could also write a reslet that handles the email sending - maybe that's slightly less complex. Still a pain though.
c
The restlet has to run synchronous. Better to hand it off via
N/task
c
N/task won't handle more than one submission at a time without multiple deployments. It's pretty much 1:1 at runtime.
c
So create a ton of deployments.
c
The script will still have to run on a schedule to pick up anything that can't run with task
c
Running a cleanup schedule works too.
Look at a Celigo install, they have 99 deployments on their stuff.
c
hope they never have more than 99 users at once
that's what the schedule is for then I guess - pick up the left overs
👍🏻 1