<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Assign a user to a task in a process dynamically</title><link>https://community.appian.com/discussions/f/process/23309/assign-a-user-to-a-task-in-a-process-dynamically</link><description>Given a string containing a username (this can change easily to user first + last name), 
 I would like to assign a task. 
 I am using the following expression to get the user 
 =touser(&amp;quot;Yoel.Feuermann-yoel.feuermann@zencargo.com&amp;quot;, &amp;quot;-&amp;quot;)[1]) 
 if I try</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89486?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 20:02:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46ffbb75-57f1-441f-8b40-55b83ee40e0c</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="83153" url="~/discussions/f/process/23309/assign-a-user-to-a-task-in-a-process-dynamically/89485#89485"]It&amp;#39;s assigned, but with no owner:[/quote]
&lt;p&gt;You would need to click on the task instance, then click &amp;quot;View Node Details&amp;quot;, then view the &amp;quot;Assignment&amp;quot; tab to show the unaccepted assignee.&amp;nbsp; This is standard behavior.&amp;nbsp; The &amp;quot;Owner&amp;quot; column won&amp;#39;t populate until a user has opened/accepted the task, even if the assignment is to a single user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89485?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 19:49:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25625229-a56b-4a1f-a95a-4ec3e044b2e0</guid><dc:creator>Yoel F</dc:creator><description>&lt;p&gt;Thanks, but still not working. Getting the following:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1641325742624v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s assigned, but with no owner:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1641325844758v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and if I check the process details for running tasks, i get none:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1641325878513v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89483?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 18:57:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:220abe06-8abc-4a50-93ad-0e4a90f6cc15</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Gotcha - though as a word of advice / caution, if there&amp;#39;s any chance you can still change the way your data is structured, I&amp;#39;d strongly suggest you put those data points (username, email, etc) in a per-user CDT rather than stuffing everything into a flat text value.&amp;nbsp; I would expect doing it your current way might pretty quickly become unmanageable.&lt;/p&gt;
&lt;p&gt;BTW, were you able to verify whether the &amp;quot;assignment box&amp;quot; issue I described above is happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89482?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 18:54:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee1ad64d-b8b7-4a82-be17-07064bcac9f3</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Good question - my thinking is that it was originally designed to function primarily as a &amp;quot;person / group picker&amp;quot; and that the addition of expressionable behavior was secondary, and I have to think the behavior I named above is a bug rather than intentional (but who knows).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89481?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 18:53:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4af6a70-d74c-49e0-818e-1cdc1a9ec1d9</guid><dc:creator>Yoel F</dc:creator><description>&lt;p&gt;Yes, it is for internal reason,&amp;nbsp;usually user has a username that is not the email, and we need the email part to send emails to their address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89479?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 18:44:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8598011-e8f4-494e-92a0-891f216c8cc8</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;this edit the assignment box behaior is a complete pain in the ass and I face this every now and then.Is there any chance that appian will gonna change/fix this one day?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89476?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 18:06:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7b51549-180e-4f32-ba4c-8f631dbed990</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m unclear why you are using a dash-separated string instead of an array, but I assume you have your reasons.&amp;nbsp; I&amp;#39;m unclear what exactly isn&amp;#39;t working for you; one pitfall I&amp;#39;d like to note, in case you&amp;#39;ve missed it, is that any time you edit the &amp;quot;assignment&amp;quot; box via the &amp;quot;Edit Expression&amp;quot; button, the edited expression is &lt;em&gt;&lt;strong&gt;appended&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; to previous entries in that box for some reason, instead of replacing the previous expression.&amp;nbsp; I often recommend completely clearing out the assignment picker box then pasting in an expression fresh, though you can also click into the box and use the Left / Right arrow-keys to navigate around and ensure there&amp;#39;s only one expression entry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89475?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 17:41:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd92ccaa-b53a-48fa-aa6c-2339aa3cb6fa</guid><dc:creator>Yoel F</dc:creator><description>&lt;p&gt;sure&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1641318032048v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I know it&amp;#39;s a bit small. it says:&amp;nbsp;&lt;span&gt;yoel.feuermann@zencargo.com-yoel.feuermann@zencargo.com&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;since the email is my username&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign a user to a task in a process dynamically</title><link>https://community.appian.com/thread/89468?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 16:50:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c24ba562-81f9-48d8-9c78-75c798b1012b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you post a screenshot of what the current value of &lt;strong&gt;&lt;em&gt;pv!selected_agent&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt; is in your process instance where you tried this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>