<?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 remove one particular document from pv variable after the data loaded to pv</title><link>https://community.appian.com/discussions/f/process/34680/how-to-remove-one-particular-document-from-pv-variable-after-the-data-loaded-to-pv</link><description>Hi, 
 I have a scenario for the closed requests when i am reopening whatever the documents that i have attached in old closed case after reopening new case for correction all the old case documents needs to displayed under new case other attachments tab</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to remove one particular document from pv variable after the data loaded to pv</title><link>https://community.appian.com/thread/133481?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 18:15:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3ce5293-3b9c-4f5f-8a55-dfb77fbf0ef5</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;You can try below piece of code on your pv!attachment&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt; remove(
    pv!attachments,
    wherecontains(
      &amp;quot;MMRF&amp;quot;,
      touniformstring(
        index(pv!attachments, &amp;quot;documentType&amp;quot;, {})
      )
    )
  )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove one particular document from pv variable after the data loaded to pv</title><link>https://community.appian.com/thread/133479?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 18:07:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:faba8d4b-4313-4b5a-a8af-45e718c0cdda</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello&amp;nbsp;&lt;a href="/members/dharanik2600"&gt;dharanik2600&lt;/a&gt;&amp;nbsp;&lt;br /&gt;To r&lt;/span&gt;&lt;span&gt;emove the MMRF type document from the pv! variable you can follow below steps:-&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Iterate through the pv!checkRequest_cdt.attachments list using a for loop.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Inside the loop, for each attachment, check if the documentType equals &amp;quot;MMRF&amp;quot;.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;If the document type is &amp;quot;MMRF&amp;quot;, create a new temporary list (filteredAttachments). Add all attachments except the MMRF one to this list.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;After the loop finishes, assign the filteredAttachments list back to the pv!checkRequest_cdt.attachments.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also you try using filter function&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/24.1/fnc_looping_filter.html"&gt;https://docs.appian.com/suite/help/24.1/fnc_looping_filter.html&lt;br /&gt;&lt;/a&gt;Let me know if that works for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>