Note that there are some explanatory texts on larger screens.

plurals
  1. POurl blocked error in outlook in mail sent using sharepoint
    primarykey
    data
    text
    <p>I have an xml data that I am transforming using xsl stylesheet to form content of the mail body, and I use the SPUtility.SendEmail method to send the mail. I have two links, one to view an infopath form and another to approve/reject task form. The infopath form link works properly in my mail but not the other one. I get the "url is blocked for security" error in Outlook web client. </p> <pre><code>&lt;a title="Approve/Reject" style="color:#b94e0a;text-decoration:underline;"&gt; &lt;xsl:attribute name="href"&gt; &lt;xsl:text&gt;http:/stage/_layouts/WrkTaskIP.aspx?List=91be5c14%2D6eea%2D4223%2D802e%2D7fa28b5d14ba&amp;amp;ID=&lt;/xsl:text&gt; &lt;xsl:value-of select="substring-before(/SRWorkflowDetails/SRLevel[level=$level and contains(Approver,$Id)]/URL,';')" disable-output-escaping="yes"/&gt; &lt;xsl:text&gt;&amp;amp;Source=http://stage/_layouts/WrkStat.aspx?List=089f13be%2D3147%2D4818%2Da30e%2Da332cb63195d&amp;amp;WorkflowInstanceID=&lt;/xsl:text&gt; &lt;xsl:value-of select="substring-after(/SRWorkflowDetails/SRLevel[level=$level and contains(Approver,$Id)]/URL,';')" disable-output-escaping="yes"/&gt; &lt;/xsl:attribute&gt; Approve/Reject &lt;/a&gt; </code></pre> <p>The output formatted link is </p> <pre><code>&lt;a title="Approve/Reject" style="color:#b94e0a;text-decoration:underline;" href="http:/stage/_layouts/WrkTaskIP.aspx?List=91be5c14%2D6eea%2D4223%2D802e%2D7fa28b5d14ba&amp;amp;ID=35&amp;amp;Source=http://stage/_layouts/WrkStat.aspx?List=089f13be%2D3147%2D4818%2Da30e%2Da332cb63195d&amp;amp;WorkflowInstanceID=11e09c76-29ec-4c7f-ace3-ad7a8c9e7b44"&gt; Approve/Reject &lt;/a&gt; </code></pre> <p>When i copy and paste the url in browser i get a prompt saying "unexpected error has occurred", then i replace the <code>&amp;amp;</code> with &amp; in the browser, i get my form opened correctly.</p> <p>Is this any parsing issue with outlook, but the other link which has <code>&amp;amp;</code> is working for me??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload