<?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>How to inject Service to custom function</title><link>https://community.appian.com/discussions/f/plug-ins/34376/how-to-inject-service-to-custom-function</link><description>Hi , 
 As pe the Function Plug-ins - Appian 22.2 , We can inject the service ( ContentService ) as a argument to the custom functions. When I try to inject as below 
 
 
 public String dowork( @Parameter String para , ContentService cs ) { 
 } 
 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to inject Service to custom function</title><link>https://community.appian.com/thread/136153?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:29:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5ef6ab6-5326-47b1-803a-b433c304c828</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Try with the definition in this format.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;@Function&lt;br /&gt;public&amp;nbsp;String doWorkd(ContentService cs,&lt;br /&gt; @Parameter&amp;nbsp;String&amp;nbsp;parameter,&lt;br /&gt;) throws AppianException {&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inject Service to custom function</title><link>https://community.appian.com/thread/136145?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 22:53:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3adc224-c1e3-40d8-be62-1ec5679bc019</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Could you share your code please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>