When to use script actions vs async business rules

Suggy
Giga Sage

When to use script actions vs async business rules

1 ACCEPTED SOLUTION

Yes, you can do this also with async BR also.But, you can't make BR reusable.Instead, your script action which triggers on event creation can be called by any server script.

 

Regards,

Sachin

View solution in original post

6 REPLIES 6

Aoife
Tera Guru

I assume you mean UI Action, not sure what a script action is exactly.

However, a UI Action holds the user hostage until it completes.  An Async Business Rule releases the user and does it's work in the background whenever it gets a chance.

Aoife

Script actions should be used to handle requirements for async event based mechanism since script actions works only on event trigger and you don't want user to wait while your script is doing processing. You can use script actions in below examples

1) IF you have  integrations with third party apps, and you need to send large amount of data/records or attachments to these apps, it should not be done synchronously as it will affect US. In this use case, you can call an event from a business rule and trigger the required script in the script action.

 

 

Async business rule can be used to send notifications or call an external REST API.

 

 

Regards,

Sachin

@sachin.namjoshi 

"IF you have  integrations with third party apps, and you need to send large amount of data/records or attachments to these apps, it should not be done synchronously as it will affect US"

 

Above can be done using Async BR also right? 

Yes, you can do this also with async BR also.But, you can't make BR reusable.Instead, your script action which triggers on event creation can be called by any server script.

 

Regards,

Sachin