Script contained in Script include is running in REST

krishnagopal_sn
Tera Contributor

Hello Team, If a script contained in Script include is running which is REST based and a transaction is in progress, and in the midst of it, I change the script, will it refer to the new script or the old one?

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

@krishnagopal_sn Once your REST message is triggered I guess it will take the old script during the transaction.

Please test it once just to be sure .

 

Also , i feel there wont be a scenario like this in real case .But if this is for your information and learning purpose please test it once during a transaction.

 

Hope this helps 

Mark the answer correct if this helps you 

Thanks 

Mohith Devatte

Amit Verma
Kilo Patron
Kilo Patron

Hi @krishnagopal_sn 

 

It will refer the Old one only as each and every update to a Script Include creates a newer version and when a Script Include is executing, it will always run the code which is available in the version picked up for execution.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.