<@U4K837YF6> My guess is that you are trying to sa...
# suitescript
e
@georgwalther My guess is that you are trying to save your custom record from a User Event script. If so, User Event scripts will not trigger other User Events. If you do need them to chain, you'll need to use a Suitelet as a middle-man. Your initial script will send a request to the Suitelet, which will perform the save, and that save will then trigger the
afterSubmit
on your custom record. Alternatively, if you don't like the Suitelet route, you could extract the logic out of the Custom Record's User Event and into a custom module, then leverage that module in both User Events.
i
The second option is better. The first option is risky, calling Suitelet from server side scripts can result in a lot headache in case you are using IP filtering on your account.
g
thanks all these are good inspirations 🙂
e
@igorp Interesting; I wouldn't think requests to internal URLs would be affected by IP filtering