This message was deleted.
# suitescript
s
This message was deleted.
a
@battk any idea about this sir ?
b
I wouldnt use an external suitelet for this
Its much safer to use the code from the suitelet as a custom module in your user event
a
yeh sir , but actually i need to use a suitelet that is created by a third party ,,thats why callingit in my script through https .get
b
Is it from a bundle?
a
yes sir it is from bundle
b
Sounds terrible, I wouldnt trust a bundle that exposes public endpoints like that
I would be surprised if it passed bfn certification
a
actually i myself checked "available without login" checkbox in the deployment so that i can call suitelet script to use its functionality in my userevent script
problem is that https.get function is being called multuiple times in afterSubmit of userevent script, its strange as i haven't used any loop
r
As I don't know exactly the functionality of your userevent script or if it's related to a workflow My suggestion, IF only the suitelet is getting called 10 times, I would use either a flag (wrap your http get into a boolean conditional, and after calling the http get, just change the value of the conditional to TRUE) or use a loop of length = 1, to execute it just once.
b
Im passing on this, does not sound safe
a
ok .. i will try to find some other solution for this problem .. calling https.get afterSubmit might not work