<?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>Calling the appian function from MySQL</title><link>https://community.appian.com/discussions/f/integrations/10548/calling-the-appian-function-from-mysql</link><description>Hi All, 
 Is there a way to call the the appian functions/rules inside MYSQL query ? 
 For Ex: The value stored in DB is userid , would like to create a view which converts the userid to Display Name in Appian. 
 Is it possible? 
 Thanks 
 Rajesh</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/56078?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 08:52:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02439477-4fd6-4f36-99ca-185148356652</guid><dc:creator>Smruti Swain</dc:creator><description>Hi,&lt;br /&gt;
Calling Appian functions inside sql query is not possible, No. &lt;br /&gt;
Alternatively, if you want to create a database view with the Appian display name then, you need to fetch it in Appian first, convert it with the help of APN_displayUser() and store it back in DB. Then you could create your view with the displayname :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/56056?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 05:42:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d48a720f-51e3-4a60-af07-7e6e86a46c3c</guid><dc:creator>aratim</dc:creator><description>Hi Rajesh,&lt;br /&gt;
&lt;br /&gt;
Instead of using Appian function in MYSQL you can use rule!APN_displayUser() to get user fullname. There is no way to directly call Appian function from MySQL, however you can do so by writing java code which will call these queries.&lt;br /&gt;
Appian allows querying from DB using query rules or query entities.&lt;br /&gt;
Thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/56013?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 11:49:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a20a8dee-a36a-49b8-b0d8-0e50f6122d5d</guid><dc:creator>Shanmukha</dc:creator><description>Hi Rajesh,&lt;br /&gt;
&lt;br /&gt;
You can either follow any one of the approach, like get the username and call the Appian function to get name with in the appian. If you want to call it from the My SQL You must have to write Java code to web API where you can avail all the appian functions. &lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Raghav&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/56011?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 10:24:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:826415f6-1a96-4980-b2f6-ef54eef390cb</guid><dc:creator>rommels</dc:creator><description>Hi Rajesh,&lt;br /&gt;
&lt;br /&gt;
Instead of using Appian function in MYSQL you can use rule!APN_displayUser() to get user fullname.&lt;br /&gt;
1 Use query entity or query rule to get that column.&lt;br /&gt;
2 Use above mentioned rule to display user name&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/46111?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 20:38:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d8ae549-3167-487a-9f21-4f67679f8806</guid><dc:creator>ChristineLHutchison</dc:creator><description>There is an Appian API (&lt;a href="https://docs.appian.com/suite/help/17.2/api/)"&gt;docs.appian.com/.../)&lt;/a&gt; to get the display name. So, in theory, you could have MySQL call Java code that you write.&lt;br /&gt;
&lt;br /&gt;
However, in your use case, are you putting the data back into Appian to display - if so apply a function to get the name. If it needs to be available externally for reporting or other, consider having your identity system of record keeping track of names to userids in the DB.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling the appian function from MySQL</title><link>https://community.appian.com/thread/46109?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 20:33:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ebf57d4-2757-4a94-abc2-734124bf970e</guid><dc:creator>Jacob Grafenstein</dc:creator><description>Hi Rajesh,&lt;br /&gt;
When you try to access the the userid from the view, call rule!APN_displayUser() and this will display the full name of the user. There is no way to call appian functions inside a MYSQL query. You should be doing all of your querying using query rules or query entities.&lt;br /&gt;
Regards,&lt;br /&gt;
Jake&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>