Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

@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

vermaamit16
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

Thanks and Regards
Amit Verma