<?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>Creating a pickerFieldCustom with a REST API result</title><link>https://community.appian.com/discussions/f/user-interface/11851/creating-a-pickerfieldcustom-with-a-rest-api-result</link><description>Hello World, 
 In the Appian interface I am working on, I need to create a user picker. I can&amp;#39;t use the default pickerFieldUsers component because the list of available users come from a REST API call. So, I am thinking to use a pickerFieldCustom component</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Creating a pickerFieldCustom with a REST API result</title><link>https://community.appian.com/thread/52520?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2018 16:35:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01a76936-71b8-4c90-9b21-deef6cebea68</guid><dc:creator>Sebastien Mayemba</dc:creator><description>Thanks Abhay!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating a pickerFieldCustom with a REST API result</title><link>https://community.appian.com/thread/52513?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2018 06:06:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b24cd13-37c5-44c6-b1c4-84edfd25fcd3</guid><dc:creator>Abhay Giri</dc:creator><description>Hi Sebastien,&lt;br /&gt;
&lt;br /&gt;
Apart from performance issue and all(totally agree with what Robert has suggested here), if you really want to implement with the help of REST API, so you need the array of data(data is here your users).&lt;br /&gt;
&lt;br /&gt;
1) first create Integration object and integrate your REST API here.&lt;br /&gt;
&lt;br /&gt;
2) now create a process model and use call integration smart service and store the body of the result in a process variable and  create a array with the help of result(i am assuming here REST API result will hold the users list). so now you have the required array.&lt;br /&gt;
&lt;br /&gt;
3) pass this to your interface as input parameter and you have the main thing which you want , now you can play as you want.&lt;br /&gt;
&lt;br /&gt;
i have not implemented this but what i see main problem is getting the users list from REST API and passing to your interface so you can pass this to your custom picker field .&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating a pickerFieldCustom with a REST API result</title><link>https://community.appian.com/thread/52477?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 16:18:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df42ac43-6536-491c-a380-5e82638ba268</guid><dc:creator>Sebastien Mayemba</dc:creator><description>Hi Robert,&lt;br /&gt;
&lt;br /&gt;
The alternative approach you are suggesting to me is basically my second plan. Before to try to implement it. I was just curious to know if someone already implemented that kind of component by calling directly the Rest API in the picker.&lt;br /&gt;
&lt;br /&gt;
The second plan could be mainly acceptable by my customer especially if we bring toward the performance perspective. The other considerations regarding the cadence of the update, etc. could be discuss later. &lt;br /&gt;
&lt;br /&gt;
I think that I am going to implement the alternative approach right now!&lt;br /&gt;
&lt;br /&gt;
Thank you Robert for your thoughts.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating a pickerFieldCustom with a REST API result</title><link>https://community.appian.com/thread/52474?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 15:54:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfeea228-46da-469d-a953-cf9d517b7274</guid><dc:creator>Robert Shankin</dc:creator><description>Hi Sebastien, &lt;br /&gt;
&lt;br /&gt;
This is not a direct answer to your question, but would you consider an alternative approach that involves calling the rest API in advance of loading the interface that contains the picker?  &lt;br /&gt;
&lt;br /&gt;
Provided that the user list isn&amp;#39;t rapidly changing every second, would it be acceptable to periodically retrieve the latest copy of the user list and either load it in a local variable or write it to a data store entity?  One you have the data in Appian, in a non-volatile state, configuration of your picker should be less of a challenge.&lt;br /&gt;
&lt;br /&gt;
Your use case and performance requirements could help you decide whether you will want to update this list every time the form is loaded, or on a regular cadence, independent of when the form is loaded.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>