Hi Guys, I have created a Client Script which is c...
# suitetalkapi
m
Hi Guys, I have created a Client Script which is creating an ItemReceipt on Bill Creation, now the problem is when someone creating a bill using WebServices, Webservices ignore the Client Script, Can we create some kind of triggers when Bill is creating we can add item receipt other then the workflow
b
@MUHAMMAD MUBUSHER ASLAM Client scripts don't get executed by Web Services, you could put your logic into a user event script. If you're creating an item receipt and don't need to update the bill, I'd do an afterSubmit user event
Even if you don't need to execute it via webservices, a user event script is probably the best way to do it. Client scripts are great if you need to provide information to the user as they work in the UI, but if you're creating records on save, that seems like it can be done on the server
m
Thanks Guys,@eblackey @creece @Sandii @bbahrman I have clear understanding now
👍 1