<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged public-link</title>
<link>https://overflow.efficy.io/?qa=tag/public-link</link>
<description>Powered by Question2Answer</description>
<item>
<title>What are the configurations for public link share</title>
<link>https://overflow.efficy.io/?qa=5992/what-are-the-configurations-for-public-link-share</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;My customer is on Efficy 2021.&lt;br&gt;
I have done the configuration for the public link share in document in my SYS_SETTINGS :&lt;/p&gt;

&lt;p&gt;&quot;servicy&quot;: {&lt;br&gt;
    &quot;adminMail&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;createLogFile&quot;: 2, &lt;br&gt;
    &quot;sameServerAsEfficy&quot;: 0, &lt;br&gt;
    &quot;fileMaxSize&quot;: 4294967295, &lt;br&gt;
    &quot;fileMinSize&quot;: 33554432, &lt;br&gt;
    &quot;fileUrl&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;fileRepository&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;fileTempUpload&quot;: &quot;~&quot;, &lt;br&gt;
    &quot;url&quot;: &quot;&lt;a rel=&quot;nofollow&quot; href=&quot;https:\/\/my.domain.com\/servicy.dll&quot;&gt;https:\/\/my.domain.com\/servicy.dll&lt;/a&gt;&quot;, &lt;br&gt;
    &quot;userPasswordUrl&quot;: &quot;&lt;a rel=&quot;nofollow&quot; href=&quot;https:\/\/my.domaind.com\/pwd&quot;&gt;https:\/\/my.domaind.com\/pwd&lt;/a&gt;&quot;, &lt;br&gt;
    &quot;customerForExtranet&quot;: &quot;~&quot;&lt;br&gt;
  },&lt;/p&gt;

&lt;p&gt;I can generate public link in interface and use it to access to the download page but when I click on the document (pdf or docx) I get an error 404.&lt;/p&gt;

&lt;p&gt;I guess I forgot something or did I configurate it wrong ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Nico&lt;/p&gt;
</description>
<category>Efficy Designer (Conficy)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5992/what-are-the-configurations-for-public-link-share</guid>
<pubDate>Tue, 23 Mar 2021 07:18:50 +0000</pubDate>
</item>
<item>
<title>Creating Public Share Link for document</title>
<link>https://overflow.efficy.io/?qa=5124/creating-public-share-link-for-document</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I have managed to create a public shared link for a document (cf function bellow), but when I click on the link I get the following error message :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9903466780946753228&quot; alt=&quot;Error downloading the public files&quot;&gt;&lt;/p&gt;

&lt;p&gt;My link seems ok, after I added in SYS_SETTINGS.Common.servicy.url, the URL for downloading the files : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;url&quot;: &quot;https:\/\/[**MY_EFFICY_URL_FOR_MY_CUSTOMER**]\/file&quot;,
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Result URL:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;https://[**MY_EFFICY_URL_FOR_MY_CUSTOMER**]/file/list?p=zX2t6lwuB8BIizheNv
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Does anyone knows what I am missing ?&lt;/p&gt;

&lt;p&gt;here is the function I used to generate the Public Shared URL: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function getSharingDocURL(kDocu) {
var sqlToken ='select &amp;lt;#top count=&quot;1&quot;&amp;gt; TVALUE \
from &amp;lt;#table name=&quot;SYS_TOKENS&quot;&amp;gt; \
where k_table = 31000 and k_1 = :param1 \
order by d_create desc';
var dsToken = Efficy.sqlQueryDataset(sqlToken, kDocu, 100);
var tokenUrl = '';
var sharingToken = '';
if (dsToken.recordCount &amp;gt; 0) {
sharingToken = dsToken.FieldByName('TVALUE').AsString;
if (sharingToken != '') {
tokenUrl = encodeURI(Efficy.CreateTokenURL(ntDocu, sharingToken));
}
} else {
var contextHandle = Efficy.openConsultContext(ntDocu);
try {
var dsDocu = Efficy.consult(contextHandle, kDocu, true), sharingToken;
if (dsDocu &amp;amp;&amp;amp; dsDocu.recordCount &amp;gt; 0 &amp;amp;&amp;amp; dsDocu.fieldByName('PREVENTSHARING').asString !== '1')
tokenUrl = encodeURI(Efficy.createSharingToken(ntDocu, kDocu, 0, 90)); //Keep the link 90 days opened
}
finally {
Efficy.closeContext(contextHandle);
}
}
return tokenUrl;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5124/creating-public-share-link-for-document</guid>
<pubDate>Mon, 09 Dec 2019 12:59:19 +0000</pubDate>
</item>
</channel>
</rss>