Hi all, My backend suitelet code triggers two time...
# suitescript
s
Hi all, My backend suitelet code triggers two times, I don't know why it triggers two times. Can anyone help me? Thanks in Advance.
b
what does the suitelet code look like
s
salesorderscript (4).js
b
Doesnt look like the suitelet does anything to call itself
What uses the suitelet?
s
I'm hitting the suitelet URL while passing some parameters.
b
How
My analysis is that the suitelet by itself cant trigger itself twice
n
Suitelet can trigger itself. It happens when there is select field on the Suitelet and we click the drop down. To show the drop down options, the Suitelet sends the request to itself. I have experienced this behavior.
b
the suitelet doesnt actually use serverWidget
n
I know, but to show the dropdown, it sends a request to itself. I am saying this from personal experience.
But anyway, I don't see any select field in the above suitelet code.
@sai can you explain what you are doing with the suitelet? hitting from where?
s
I've one custom object in that sales order information is there. i am appending that object to suitelet URL,using that object creating sales order. I'm hitting the suitelet URL manually from the deployment page.
b
that doesnt sound like something that would trigger your suitelet twice
the suspicion I had was that you had another script that was making a GET to the suitelet
which was being triggered by the creation of one of the records created in the suitelet