GetLayoutObjectAttribute does not reflect displayed data before refresh
Operating system version
Description of the issue
When a script sets variables that appear in a layout as merge variables, the GetLayoutObjectAttribute "content" result reflects the variables set by the script, even though the un-refreshed result on the layout does not match.
Steps to reproduce the problem
Place a merge variable on a layout, set a value to that variable, and refresh the layout without a script. Create a script that sets a different value to the variable, attempts to retrieve the displayed merge variable content with the GetLayoutObjectAttribute function *before* refreshing the layout, and show the result.
The result of the GetLayoutObjectAttribute function running in the script should reflect the contents of the object as they currently appear in the layout.
The result of the GetLayoutObjectAttribute function reflect what the displayed content would be after a refresh.
Exact text of any error message(s) that appear