Anyone know why a userevent script against journal...
# suitescript
a
Anyone know why a userevent script against journal entries does not run when a journal entry is created from time entry?
a
If the JEs are created via a UserEvent script deployed to the Time Entry record then the UE Script deployed to the JE record would not be triggered because a UE would trigger another UE(this is by design).
☝️ 1
c
You can get around the UEs not calling other UEs w/ a workflow action script if it has to be done
a
The time entries JEs are being created using Post Time
so it is not a nested UE I don't think
e
Is the UE filtered in any way? Maybe on the Event Type or Execution Context or Audience, either in code or on the Deployment
a
There is a context filter for create and edit
in the code
a
While rare, there are a few native netsuite background processes that create underlaying records via UE because they do not trigger the UEs deployed on the underlaying records. This may be the case and you may need to open a case if everything else indicates the UE should be triggering.
e
It also seem like several aspects of Time Entry have been refactored internally recently, and that has caused a bunch of strange behavior when it comes to scripting around those records.
a
Okay thanks, I've submitted a ticket to support. Are there any recommended work arounds in the meantime I can try that you know of?
a
Convert your UE to MR or Scheduled Script that searches for recently created JE from a Time Entry with your desired criteria and updates the JE records with your desired logic/data etc…
a
Do you know why I can't get a value for the
timebillflag
field on Journal Entry? It's returning empty for me but in the Field Explorer I see a T/F value
but I also dont see the field in the schema browser