Skip to main content
Solved

Business event trigger on stocks

  • January 17, 2022
  • 2 replies
  • 158 views

Hi,

 

I need to synchronize the product stocks with our website through API and I would like to trigger the application on product stock change so I have 3 questions:

  1. Is it possible to add a business event trigger on product stock change?
  2. If point nr 1 is possible can a business event trigger start an application from ‘Run application’?
  3. If point nr. 2 is possible, can we send arguments(parameter) based on event? I would need to send the inventoryID as the parameter in this case.

     

Best answer by jamesh

Hi @dit01

  1. Business events can mimic any manual process/event that could be done through an import scenario and be assigned a trigger by any trackable change.  My favorite way to set up a trigger is through an inquiry, linked to a business event, then have the import scenario run that set of data associated with it.  I think this scenario is fairly standard for most users.
  2. Would the application reside on the Acumatica Server?  If not, then no.  Acumatica is built on ASP, and as such, it doesn’t allow remote code execution for an application on a distant network.  Even if it did, it would be a huge security risk.  
  3. N/A

I hope this helps.  

View original
Did this topic help you find an answer to your question?

2 replies

jamesh
Semi-Pro I
Forum|alt.badge.img+7
  • Semi-Pro I
  • 177 replies
  • Answer
  • January 21, 2022

Hi @dit01

  1. Business events can mimic any manual process/event that could be done through an import scenario and be assigned a trigger by any trackable change.  My favorite way to set up a trigger is through an inquiry, linked to a business event, then have the import scenario run that set of data associated with it.  I think this scenario is fairly standard for most users.
  2. Would the application reside on the Acumatica Server?  If not, then no.  Acumatica is built on ASP, and as such, it doesn’t allow remote code execution for an application on a distant network.  Even if it did, it would be a huge security risk.  
  3. N/A

I hope this helps.  


Forum|alt.badge.img+5
  • Semi-Pro III
  • 294 replies
  • February 10, 2022

If you run it on prem, you could do this with a SQL trigger as well. This would involve custom database programming and custom code logic.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings