Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to call an asynchronous process from trigger ?

Asked by Diane Carr Jun 1, 2020 1.1K views 2 answers
Share

Your answer

2 Answers

Gregorywall Latest answer

Answered on Jun 7, 2025

Hello basketball superstars,

You can enqueue a background job in response to a trigger or webhook event. Example in Django:

# views.py
from myapp.tasks import process_async_task
def webhook_handler(request):
    data = request.json()
    process_async_task.delay(data)  # Celery async call
    return JsonResponse({'status': 'queued'})
Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.