Questions tagged [executioncontext]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
93 views

System.Quiddity Enum sync vs async

With the new Winter '21 release, salesforce makes it much easier to detect what is a current running context by means of Request.getCurrent().getQuiddity() method. This is great, thank you, ...
5
votes
0answers
441 views

Can we detect context inside a Lightning Component which has implemented 'force:lightningQuickAction' interface?

While working on a Lightning Component that can be invoked inside a Lightning Record Home Page as well as Quick Actions. But I need to present different User interface in both context of the component....
3
votes
1answer
35 views

Which user applies to the execution context when executing messaging.sendEmail?

I have a field that is used in an email template for which no FLS is granted in any profiles. The Apex code that sends the email using messaging.sendEmail() is invoked from a trigger so I assume it ...
2
votes
0answers
770 views

Workflow needs to run as specific user or profile for field update to work

I have create a form on a Customer Community where users submit records and in turn a time-based workflow is created to change the value of a field on that new record at a certain time. In turn, a ...
1
vote
1answer
15 views

Is there a way to know if a setup object has been updated in the current transaction?

We have a custom error logging framework built that currently inserts records to a custom Error Log object. We also have a lot of (chained) Queueables in use because have to update some setup objects -...
1
vote
0answers
165 views

Past due Time-based workflow with criteria set from other workflows

I have a very unique condition happening during a time based workflow that is causing some unexpected behavior. I am curious to know if anyone has had a similar experience and if I am correct in ...
0
votes
1answer
82 views

Automation Studio SSJS execution context

I have a Script task in Automation Studio that sends a small JSON payload to a rest api. The payload consists of the business unit, the Automation job name, a status and timestamp. My account has ...
0
votes
2answers
35 views

Winter 15 - Validation Rule

I have the following validation rule for a Custom Object: AND(ISPICKVAL( transp__SFT_Trip__r.transp__SFT_Status__c, "Encerrada") , $Profile.Name != "Administrador do sistema") It only let the admin ...