hey all... I wrote a userevent script for vendor b...
# suitescript
p
hey all... I wrote a userevent script for vendor bill and in before submit of the record i am actually changing the subsidiary of the bill. The bill gets submitted successfully and in after submit when i try to load the record it throws an error saying the the record does not exist. I actually figured out that the bill had no entity in it. How could this be possible. Could it be a bug or is there a functionality where when subsidiary is changed in the script the entity also get removed. But if that is the case as a last step of before submit after changing the subsidiary i am logging the value of entity and it displays the value. I am not sure what would be the issue.