To equate the value of the mapping variable to the workflow variable is to be done in the "Pre-session variable assignment", and then in the next session property use "Post-session on success variable assignment" to equate the value back from the workflow variable value to the mapping variable. And this way, you pass-on the value of the mapping variable from one session to another, as per your requirement.
1.Have both the sessions in the same Workflow.
2. Assign the value you got from the mapping variable to the Workflow variable in Post session command task.
3. Assign the value from workflow variable back to mapping variable in mapping2/session2 in pre session command task.
This query returns the most recent run completion times,for workflows, along with folder name, and connection object names.
modify, or uncomment and modify or comment out the filter conditions to get the desired result.