ok. It might be good for me to get in and look at it with you and see what is happening.
I'll send you an email directly so we can work out when a good time will be.
So that the solution is a part of this tread
The cause of the variable not working for the user was due to the document being created to be based on Appointment data.
In order for the PWNextRecallAppt variable to work the document needs to be based on Patient Data.