This is probably a really simple javascript question, but I am apparently using the wrong terminology to find an answer on google. In JavaScript, I am building a URL that has a filter appended to it, based on the current record. When I run this in my test environment, everything is hunky-dory. When I run it in production, though, the string for the filter has its quotes escaped, and then the URL returns an error. Even when I debug with IE Dev Tools, and try to remove the escape slashes, they immediately reappear. I'm not a javascript guru... what do I need to do differently so that the string url I build does not have the escape slashes??
var filter = "$filter=lsuag_EmployeeId/Id eq guid'{" + thisId + "}'&$select=lsuag_activityemployeesId,lsuag_planitem,lsuag_hours_total";
"$filter=lsuag_EmployeeId/Id eq guid\"{9A4F1FF1-52DA-E011-AD2E-00155D171506}\"&$select=lsuag_activityemployeesId,lsuag_planitem,lsuag_hours_total"