• Marina Tros
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hi, 
I have a managed package with different triggers. 
Is there a way to get the calling source that invoked the trigeer action? for example if other package initiated the action - get its namespace,
also if it's from other context like an action from email etc...
I need to get as much information as possible regarding the action's source.

Thanks.


 
Hi, 
I have a managed package and I need the following basic functionallity to work:
Logging each exception in my Apex code to an external API. 
because it is a REST request - it should be done Asyncronyosly,
So my solution was creating a queueble that performs the callouts.

The problem is - soon enough I hit the Queueble limit of 2 because the job is enqueued from a trigger -  which is called from a future context I guess.

How can I call a queueable from different triggers without hitting this limit?

Or any other solution will be welcome. Can't figure out how to do it with all the execution governors and limits in Apex..