<?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>Triggering Process With Email</title><link>https://community.appian.com/discussions/f/process/18577/triggering-process-with-email</link><description>Hi All, 
 
 I have a requirement where i need to trigger my Process Model only after Email is received from two different sources, 
 One Email will contain the information in the body while other email will have the data in an attachment. I need to trigger</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Triggering Process With Email</title><link>https://community.appian.com/thread/73247?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 19:21:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4549658-68f4-4e02-befa-6e622c19b9aa</guid><dc:creator>arunramanathtm</dc:creator><description>&lt;p&gt;Have a logic to check for common (unique) thing among both emails&amp;nbsp; .... example Customer Id.&lt;br /&gt;When this common field is received from two emails, then kick the subprocess&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering Process With Email</title><link>https://community.appian.com/thread/73132?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 16:02:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a009234-1327-4440-ab10-eae17819711b</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I&amp;#39;m sure there are a variety of patterns to address this, but here&amp;#39;s one possible pattern:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;1st Email received triggers Process Model A that writes the content of the body to a database table, along with a correlation token (something unique that both emails share in common)&lt;/li&gt;
&lt;li&gt;2nd Email triggers Process Model B that stores the attachment as an Appian document, and writes an entry to a database table that holds the new Document Id and also the same correlation token value as described in Step 1.&lt;/li&gt;
&lt;li&gt;A Process Model that runs on a regular basis (e.g. every hour) looks to see if there are any entries in the Database that indicate that both emails for a given Case have been received. If so, it starts the sub-process you describe, passing it the necessary data.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The sub-process completes, and either deletes or marks the data in the database as having had a case completed so that the next time the regular process runs it doesn&amp;#39;t submit a duplicate process&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A alternative process-centric pattern would have process models that get triggered by the incoming emails and send messages to a process instance that is waiting (this gets more complicated because I assume the emails could come in either order -&amp;nbsp;Body&amp;nbsp;then Attachment, or &lt;span&gt;Attachment&amp;nbsp;&lt;/span&gt;then &lt;span&gt;Body&lt;/span&gt;), but the principle would be the same - you&amp;#39;d need to have a process to receive each email, some correlation token value that would help you find if a waiting process existed and route to it if it did, or start it if it didn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>