<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: ivy.html.taskListRef() as SYSTEM user (URL to tasklist)</title><link>https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist</link><description>&lt;p&gt;I have a task running as SYSTEM user. This task should send a email a user containing a link to the ivy task list (of course the user must login when following the link ...).&lt;/p&gt;
&lt;p&gt;BUT any call to ivy.html.taskListRef() is throwing an error (script step or output tab).
If a call ivy.html.taskListRef() running as a valid/logged in user it works.&lt;/p&gt;
&lt;p&gt;But how can i receive the common URL as SYSTEM user ???&lt;/p&gt;
&lt;p&gt;Or are there any other ways to get a correct link/ref ??&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 16 Jul 2014 13:51:45 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist/860</link><description>&lt;p&gt;The problem is, that the system user not runs within an HttpRequest.
So this is from the user point of view a bug, but is not possible to fix that easily.
So here my workaround:&lt;/p&gt;
&lt;p&gt;Just create the link on your own, it has to be like this: &lt;code&gt;/ivy/wf/&amp;lt;ApplikationsName&amp;gt;/taskList&lt;/code&gt;&lt;br&gt;
Code to generate the link:&lt;br&gt;
&lt;code&gt;"/ivy/wf/" + ivy.request.getApplication().getName() + "/taskList"&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Wed, 16 Jul 2014 13:51:45 -0400</pubDate><guid>https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist/860</guid></item><item><title>Answer by Adrian Imfeld</title><link>https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist/852</link><description>&lt;p&gt;It is not possible to start a System Task as an ivy user.
System tasks will be processed automatically by the Server Engine. In case you set a delay, the server will wait with the start of the task till the duration ends. That means there will never be a concrete waiting system task.&lt;/p&gt;
&lt;p&gt;For further help, it would be necessary to know what error you receive.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Imfeld</dc:creator><pubDate>Tue, 15 Jul 2014 13:24:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/844/ivy-html-tasklistref-as-system-user-url-to-tasklist/852</guid></item></channel></rss>