Does anyone have an example of a workflow action s...
# suitescript
r
Does anyone have an example of a workflow action script that opens up a custom URL?
b
your only choice is redirect.redirect
if you wanted something that opens a new window, you probably want an actual script that can use Window.open
r
Hey @battk thank you! Do you know if window.open can be used in a workflow action script?
b
no
primarily because workflow action scripts run on the server
r
Ok
Do you know the best way to add a button to a record that opens a url? I was trying to use a workflow to add a button but sounds like that isn’t best. I’m okay with scripts if it isn’t too complicated.
b
too task focused
start at adding a button to a form
r
user event script before record load to add the button?
When it’s clicked, open the url?
r
Thank you!
Hey @battk I went through those steps, the button is on the sales order but doesn’t open the url link. Wondering if you have any ideas why? debug isn’t stating anything either
b
share the code
r
Might have it. Ill let you know.
Hey @battk can I send over some code with a question?
b
sure