After changing the values ​​of variables in a Word document, in order for the changed data to be reflected in the text, it is necessary to update the fields in the text of the document.

Call:

word_request("update_all_docfields");