<?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>Write to MDSE with conditions</title><link>https://community.appian.com/discussions/f/data/13849/write-to-mdse-with-conditions</link><description>Hi All, 
 I have a scenario where I need to write data to multiple tables under single entity. 
 So I thought of using wmdse 
 But there s no guarantee that Everytime the data will be there to write in all the mutilple tables which I am planning to write</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Write to MDSE with conditions</title><link>https://community.appian.com/thread/62902?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 03:39:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54c626c8-7e96-4fdc-b0b5-5fc7cde72d02</guid><dc:creator>ravalik</dc:creator><description>Hi harshav,&lt;br /&gt;
&lt;br /&gt;
please go through this link.It might be helpful.&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html#best-practices."&gt;docs.appian.com/.../Write_to_Multiple_Data_Store_Entities_Smart_Service.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write to MDSE with conditions</title><link>https://community.appian.com/thread/62900?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 03:03:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c19a007a-7c51-4f0f-a024-6f991576b098</guid><dc:creator>Hema</dc:creator><description>&lt;p&gt;Hi Harsha,&lt;br /&gt; &lt;br /&gt; As Alok mentioned, if the data attribute doesn&amp;#39;t have any value, that won&amp;#39;t be stored into DB.&lt;br /&gt; &lt;br /&gt; As a best practice, instead of directly calling the Write to Multiple Data Store Entity Smart Service node in the process model in which you want to update, create an utility process model (should contain Write to Multiple Data Store Entity with all the inputs given and outputs configured) and then configure that process model as a Sub Process. You can pass the required variables&amp;nbsp;as parameters. Also, you can get the necessary outputs.&lt;/p&gt;
&lt;p&gt;Hope this helps!!!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; Thanks,&lt;br /&gt; Hema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write to MDSE with conditions</title><link>https://community.appian.com/thread/62897?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 00:15:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6bac4d4-0abe-4d0b-a76b-b6387457926c</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi Harsha,&lt;/p&gt;
&lt;p&gt;As per my experience with Write to Multiple Data Store Entity, when the value of your data attribute is empty i.e. {} then appian do not store anything into DB. e.g:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!entityData(
    entity: cons!FIRST_DATA_STORE_ENTITY,
    data: {}
  ),
  a!entityData(
    entity: cons!SECOND_DATA_STORE_ENTITY,
    data: type!MY_CDT(
      id: 1,
      name: &amp;quot;test&amp;quot;
    )
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As shown in above code snippet, there will be a transaction to store the data into the entity mapped with SECOND_DATA_STORE_ENTITY constant, whereas another will be skipped as it&amp;#39;s data is empty. Hence you need to form the EntityData in&amp;nbsp;the similar way to be used in Write to Multiple Data Store Entity Smart Service.&lt;/p&gt;
&lt;p&gt;Also, it&amp;#39;s worth checking this&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html#run-time-behavior"&gt;link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope this will help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>