Linked Questions
10 questions linked to/from Dynamically Determine Calling Context?
3
votes
1answer
252 views
prevent trigger fire from a future method [duplicate]
I would like know if there is any global variable i can use to prevent trigger fire from a future method.
Like I can use
System.isBatch()
to prevent trigger fire from batch classes
1
vote
2answers
234 views
How to get the Connected App used from an Apex trigger [duplicate]
I have an Apex Job that is being triggered from an 'afterInsert' trigger, but I don't want that Job to be executed if the insert is being performed by a specific external application.
I just need to ...
0
votes
0answers
36 views
Determine the calling context in a trigger [duplicate]
In Apex that is running in the context of an external API call (in my case, via the REST API - but same would apply for SOAP), is it possible to determine the 'client' value supplied in the Sforce-...
0
votes
0answers
21 views
How do I stop a trigger from firing if the update is from a call to the REST API [duplicate]
I have an application that is updating Salesforce by calling the REST API, and each time it updates the trigger on the object is fired. I dont want to trigger to run on updates from the API, only ...
0
votes
3answers
277 views
Trigger for avoid insertion from data loader? [closed]
i have scenario like write a trigger avoid insertion of records from data loader,only manual insertion trigger will fire?on any object
while Entering records from data loader trigger should not ...
2
votes
3answers
1k views
What more can we do with annotations in Apex?
Apex gives us many useful annotations (e.g. @AuraEnabled, @Future, @IsTest, @TestVisible, etc.)
Can we detect whether/how a class has been annotated?
Is it possible for us to create our annotations?...
-1
votes
1answer
239 views
How can I determine the calling source of a trigger?
I have a managed package with different triggers.
Is there a way to get the calling source that invoked the trigger action? For example: if other package initiated the action, get its namespace,
and ...
0
votes
1answer
189 views
How to get the default lead source dynamically? [closed]
Currently, I'm just using this line: opp.LeadSource = 'Web'; as a static value to set the opp.LeadSource picklist on my vf page. Is there any way to do it dynamically? Instead of using static, I hope ...
0
votes
1answer
30 views
Possibility to define conditions to run or pass trigger logic in different scenarios
We have difference scenarios to reach account trigger, such as:
Users create or update new records
External systems upsert via Bulk or SOPA/REST
insert or update from another trigger context (such as ...
0
votes
1answer
33 views
Verify input origin of a sObject field
I have a field that is filled by file import, so I need to check if this field was fill by hand or imported.
Is there any way to implement a validation rule with a condition that verifies whether or ...