Hello, I would like to wrap a button driven Suite...
# suitescript
s
Hello, I would like to wrap a button driven SuiteFlow workflow around the Sales Order records (6,000ish records) that will update a couple of fields, add fees, and then generate invoices. would a Workflow Action Script be acceptable, considering it will work nicely with SuiteFlow buttons, or should I use a Map/Reduce with a custom button?
l
Hi. I would go for a Map/reduce script called with a button.
s
Possible to call that custom button/script from within SuiteFlow?
l
Yes you could. But you would have to create a Workflow Action script that calls the Map/Reduce script
s
Exactly what i was looking for. Thank you.
b
i dont think workflow action script was ever an option
buttons are for the client, N/task is server
you can make a button trigger a map/reduce by triggering a suitelet or restlet to do the actual tasking
s
I would need that button to be available at the proper state in the workflow. Would using the SuiteFlow button to call a workflow action script, which in turn calls the Map/Reduce be a better option?
b
i dont use workflow action scripts enough to give you a better answer
but i dont think you can make a button that trigger a workflow action script
l
Yes you can. State 1 : add button Transition in state 1 : on button click > go to state 2 State 2 : execute workflow action script (on entry)
We did it for one of our customer, it works perfectly.
s
I suppose I was confused as to whether the Action Script type could efficiently run a mass update to the tune of 6,000 records, so I could avoid the need to use it for the sole purpose of calling a Map/Reduce to do the heavy lifting.