Anyone know if it's possible to retrieve the XML o...
# suitescript
e
Anyone know if it's possible to retrieve the XML of a Workflow? I know you can Import the Object into an IDE (VSCode / Webstorm) but I'm looking to retrieve it with some client side code (adding &xml=T to the end of the URL does not work 😞 )
e
Try
<https://ACCOUNTID.app.netsuite.com/app/suiteapp/devframework/xml/xmlexport.nl?&recordtype=workflow&id=WFID>
e
YES
Exactly what I needed! I was even able to use fetch with that URL and then response.text() to get the string of the XML THANK YOU @ehcanadian!
👍 1
@ehcanadian Is there any documentation surrounding this? Or maybe the question would be- how did you determine that URL? (I'm thinking this may benefit me in other ways, outside of workflows, in the future)
e
I looked at the network tab in my browser when clicking on Download XML in the WF.
I remember having to do something like this before but for reports
e
You have a "Download XML" button on workflows?
image.png
Oh I found it...
image.png
It's on the Edit screen
e
Aye
e
Thanks again for the help!
e
You're welcome!
🙌 1