Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jsteenkamp
Contributor II
Contributor II

restapi: change variable value in app data load editor

We have automated all tasks in Powershell to onboard new customers like:

  • add value to custompropertydefinition
  • create tag
  • create streams
  • create user
  • link tags and customproperty values 
  • duplicate apps
  • create app reload task including schedule
  • publish app to stream
  • update virtualproxy

There is one step, that I can't find in the documentation (if it even exist/or is possible).

Before publishing the duplicated app, I need to modify one variable value in "main" in the data load editor. In the GUI this points to URI dataloadeditor/app/{id}. Can this step be automated as well in some way?

Any help is appreciated. Thanks in advance.

Labels (2)
1 Solution

Accepted Solutions
jsteenkamp
Contributor II
Contributor II
Author

I have managed to change this script variables using the Qlik Engine JSONAPI on port 4747.

  • send OpenDoc websocket request
  • get OpenDoc websocket response
  • send GetScript websocket request
  • get GetScript websocket response
  • convert the script from JSON
  • change your script
  • convert your script to JSON
  • send SetScript websocket request
  • get SetScript websocket response
  • optional: send DoReloadEx websocket request
  • optional: get DoReloadEx websocket response

View solution in original post

1 Reply
jsteenkamp
Contributor II
Contributor II
Author

I have managed to change this script variables using the Qlik Engine JSONAPI on port 4747.

  • send OpenDoc websocket request
  • get OpenDoc websocket response
  • send GetScript websocket request
  • get GetScript websocket response
  • convert the script from JSON
  • change your script
  • convert your script to JSON
  • send SetScript websocket request
  • get SetScript websocket response
  • optional: send DoReloadEx websocket request
  • optional: get DoReloadEx websocket response