Set a variable from raw text response

Thank you. I did manage to get it working late last night with pm.environment.set(“session-id”, responseBody);

Where I was going wrong was I had quotes around the value with everything I had tried before.