RE: Can UserEvent scripts trigger against records created automatically?

I created a UserEvent script for the Deposit Application record type.

When I save a deposit application in the UI, my script fires. However when NetSuite generates a deposit application as a result of a customer deposit being applied to a customer refund, the script does not fire.

The script is released for ‘All Roles’ and no event type is specified.

Do UserEvent scripts not apply under these circumstances?

ricky Rookie Asked on November 5, 2019 in SuiteCloud.
Add Comment
1 Answers
Best answer

These are the context.userEventTypes available to script against:

 

  • APPROVE
  • CANCEL
  • CHANGEPASSWORD
  • COPY
  • CREATE
  • DELETE
  • DROPSHIP
  • EDIT
  • EDITFORECAST
  • EMAIL
  • MARKCOMPLETE
  • ORDERITEMS
  • PACK
  • PAYBILLS
  • PRINT
  • QUICKVIEW
  • REASSIGN
  • REJECT
  • SHIP
  • SPECIALORDER
  • TRANSFORM
  • VIEW
  • XEDIT

 

Unfortunately I don’t see anything that would line up with the scenario you have. As weird as it is, I’ve run into things like this before where I just can’t get a UE to fire on certain events.

 

Normally, I work around this by running a scheduled script looking for them being created instead and triggering that way. Not ideal, but not much else you can do I guess.

Beginner Answered on November 5, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.