
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Automation Not Applying Variable Bookmark For WriteBack Solution
Hi all,
I've been trying set up an automation to writeback some variables set by the end user to an external excel file in a sharepoint folder.
For that, I'm following the basic example from Michael Tarallo on the Qlik youtube channel (https://www.youtube.com/watch?v=hYER2nGKctM&ab_channel=Qlik) , which is based on another article (https://community.qlik.com/t5/Official-Support-Articles/How-to-build-a-write-back-solution-with-nati...) .
However, I'm having a problem when replicating the current state of variables to the Automation.
I tried replicating exatcly the same steps:
1. Setting the layout, creating the variables, update and reload buttons:
(layout - as you can see, the standard values for the variables are '-', since I'm using the fields as definition)
(Update button settings - Include Selections checked!)
2. Creating the automation using the 'Copy Input Block' blocks and adding the three Get Expression Value blocks.
To check whether it is getting the current variable value from the temporary bookmark, I also added an Output block:
(note that the app and bookmark IDs are the same from the used input block)
However, I'm not getting the expected result:
After setting different values to the variables with the Input visuals and clicking the Update button in the Analysis App, the output always gives me the default value of my variable.
(note that in the app front-end, the variables are updated)
It's as if my variables were not being updated (or bookmarked) to the current values when sent to the automation.
In this specific example, it's not generating any output, since my variables by definition are the fields, which gives me '-' as an output, as per my first step.
I also did another test, setting the definition of the variables as fixed strings. In this case, I always get the same strings as output.
Would anyone know if there's any step I'm missing? Or if there is any kind of limitation to a specific type of environnment?
PS: I found some other posts about selections issues for generating reports, but I coudn't find something specific for variables and writeback function so far.
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AfeefaTk ,
I can confirm that if the variable is defined as an expression (starting with the equal sign, like "=Comentarios") the automations ignores the user value.
If the variable is defined as a 'constant' (without the equal sign, as example using the string 'Default comment') then the user input is passed to the Automation.
The problem is, using a constant, the value does not change with user selection, so the variable input will always show 'Default value' (or whatever the user has input there) even if the selected record already has another comment (making it very easy to overwrite a record with the wrong value).
All in all, this behaviour seems to be different than what is shown in the video.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @danabb
I would suggest you follow a different approach mentioned below to get the user-inputted values passed over automation and also have the selected values auto-populated in the input box.
- Ensure Include selections are selected in the Execute automation action in the button.
- Clear the definitions from old variables.In the example app, the variables are vDealName and vPrediction.
- Create new variables with definitions.For eg vDealName2 and vPrediction2 with the definitions =DEALNAME and =PREDICTION.
- Set the input boxes to show new variables that is vDealName2 and vPrediction2
- In this example,add two set variable actions before executing the automation. The first one will set the variable vDealName to =vDealName2. The second one will set the variable vPrediction to =vPrediction2
- Click on the Copy input block from the Execute automation action in the button and paste this into the automation.
- Use the Get expression value blocks to get the vDealName and vPrediction variables in the automation. Use the formulas =vDealName and =vPrediction.
Please find the automation and app configured following the above steps for your reference.
Please let me know if that works.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @AfeefaTk
Thanks, using 2 set of variables works like a charm!
The only step I had to add was to add more "set variable actions" to make sure the new variables returned to the standard value (vDealName2 = DealName).
So for me it worked like this:
(step 6 added)
- Ensure Include selections are selected in the Execute automation action in the button.
- Clear the definitions from old variables.In the example app, the variables are vDealName and vPrediction.
- Create new variables with definitions.For eg vDealName2 and vPrediction2 with the definitions =DEALNAME and =PREDICTION.
- Set the input boxes to show new variables that is vDealName2 and vPrediction2
- In this example,add two set variable actions before executing the automation. The first one will set the variable vDealName to =vDealName2. The second one will set the variable vPrediction to =vPrediction2
- Add two set variable actions after executing the automation to set the new variables back to the standard values. The first one will set the variable vDealName2 to =DealName. The second one will set the variable vPrediction2 to =Prediction.
- Click on the Copy input block from the Execute automation action in the button and paste this into the automation.
- Use the Get expression value blocks to get the vPlatform and vName variables in the automation. Use the formulas =vDealName and =vPrediction.
Thank you very much. I will run some tests, but I think this will be sufficient.
However, would you know if more than one user can run this automation at the same time?
For example: I have a team of salesmen and they are using this tool to check and update information for their customers. They both are using the dashboard at the same time with different customers.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @marcusva
Yes, those who have access to the button can click on the button and run automation if it's set to run in triggered mode.
As mentioned in this article (check Limitations section) automation cannot have parallel runs. So if the button is clicked by different users at the same time, it won't get executed at the same time. The new runs will get queued and start running once the previous run is completed.
Hope this answers your question.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had the exact same issue. I suggest the demo material for this specific case (loading a value to an input box, then updating and writing back) for this functionality be removed/updated.
Creating a basic write back solution with Qlik Cloud - YouTube
Video ‒ Creating a basic write-back example with Qlik Cloud | Qlik Help
Thanks for the solution/work-around @AfeefaTk!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had the same issue and your solution helped me a lot. Thank you very much.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AfeefaTk also now (today) this is a very useful post for me. Thanks again for the clarifications here.
I wonder if the updated demo video ever took shape?
Also, what is confusing to me (though not blocking) is the following. I was able to create the automation and run it from the UI, which is the intended use of course. When I used the "Run" button from within the automation though, the automation runs for several minutes with no output.
As I wrote this is not blocking and I can run the automation from the UI side.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I started from the input from @AfeefaTk from 2023-06-06 and the addition from @marcusva. Thanks guys!
Issue: after I hit the "Update" button, my variables (vDealName, vDealName2, vPrediction, vPrediction2) "stick" to a single value even if I selected another record from the table. So the value of vDealName2 and vPrediction2 did not change with the selection, as I would want them to.
I solved this by adding a "Set Variable Value" action for vDealName and vPrediction. I set the variable values to Null. I removed the actions "vDealName2 to =DealName" and "vPrediction2 to =vPrediction".
It seems to work for me now!

- « Previous Replies
-
- 1
- 2
- Next Replies »