Link to home
Start Free TrialLog in
Avatar of mrslate1
mrslate1

asked on

I am having trouble with this JavaScript and anchor string.

I am looking to send an email alert using a SQL string which isn't recognizing the URL. Is there something wrong with this query?
<script>
var id = "{ SQL: select dbo.TTT_TST_GetMessageInstanceID({ wf.WorkflowInstanceId },{ {Attestation Mandate}.Query("AttestationForm")["AttestationOwnerId"] }) }"
var url = "http://webes0000.ms.ds.TST.com:8080/_layouts/runTime.aspx?messageInstanceId="+id;
document.getElementById("mylink").href = url;
</script>

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrslate1
mrslate1

ASKER

Thank you very much. The Quotes and encoding the id was the trick. Thank you..