<?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>columns combine</title><link>https://community.appian.com/discussions/f/new-to-appian/27086/columns-combine</link><description>Hii All, 
 I am working on Audit log using CDT comparsion plugin and tha data comes in grid like that: 
 
 Now I want to combine fieldname column and previous value column like that: 
 Province : NL 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: columns combine</title><link>https://community.appian.com/thread/106360?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 14:48:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b6b0de0-e4c8-485f-9717-4251c414c0f8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This really hinges on the output of &amp;quot;cdtComparison()&amp;quot; which is from a plug-in i&amp;#39;m not familiar with.&amp;nbsp; What data structure results from running that rule for the two given CDTs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: columns combine</title><link>https://community.appian.com/thread/106359?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 14:17:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:911dcc74-9ac6-4304-bb31-b121106841c1</guid><dc:creator>jojog0003</dc:creator><description>&lt;p&gt;Hii peter,&lt;/p&gt;
&lt;p&gt;I am using one expression rule and interface.&lt;/p&gt;
&lt;p&gt;The code for expression rule given below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: cdtcomparison(ri!oldCDT, ri!newCDT),
  local!newCopaCaseData: a!forEach(
    items: local!data,
    expression: if(fv!item.isDifferent = true, fv!item, {})
  ),
  local!newdata: remove(
    local!newCopaCaseData,
    wherecontains(
      { &amp;quot;id&amp;quot;,
        &amp;quot;createdOn&amp;quot;,
        &amp;quot;updatedOn&amp;quot;,
        &amp;quot;createdBy&amp;quot;,
        &amp;quot;updatedBy&amp;quot;,
        &amp;quot;isDeleted&amp;quot;,
        &amp;quot;userGroup&amp;quot;,
        &amp;quot;challenged&amp;quot;
      },
      property(local!newCopaCaseData,&amp;quot;attributeName&amp;quot;,null())
    )
  ),
  local!commentsData: cdtcomparison(ri!oldCommentCDT, ri!newCommentCDT),
  local!newCommentsData: a!forEach(
    items: local!commentsData,
    expression: if(fv!item.isDifferent = true, fv!item, {})
  ),
  local!comment: remove(
    local!newCommentsData,
    wherecontains(
      { &amp;quot;id&amp;quot;, &amp;quot;caseId&amp;quot;, &amp;quot;commentBy&amp;quot;, &amp;quot;commentOn&amp;quot; },
      property(local!newCommentsData,&amp;quot;attributeName&amp;quot;,null())
    )
  ),
  local!commentSpace:if(length(a!flatten(local!comment))&amp;gt;0,char(10),&amp;quot;&amp;quot;),
  local!TimeEntryData: cdtcomparison(ri!oldTimeEntryCDT, ri!newTimeEntryCDT),
  local!newTimeEntryData: a!forEach(
    items: local!TimeEntryData,
    expression: if(fv!item.isDifferent = true, fv!item, {})
  ),
  local!TimeEntry: remove(
    local!newTimeEntryData,
    wherecontains(
      {
        &amp;quot;id&amp;quot;,
        &amp;quot;caseId&amp;quot;,
        &amp;quot;agent&amp;quot;,
        &amp;quot;activityDate&amp;quot;,
        &amp;quot;activityType&amp;quot;
      },
      property(local!newTimeEntryData,&amp;quot;attributeName&amp;quot;,null())
    )
  ),
  local!attributeName: joinarray(local!newdata.attributeName, char(10)),
  local!previousValue: joinarray(local!newdata.previousValue, char(10)),
  local!currentValue: joinarray(local!newdata.currentValue, char(10)),
  &amp;#39;type!{urn:com:appian:types:CDM2}CDM2_ActivityLog_CopaCase&amp;#39;(
    caseid: ri!recordId,
    actionby: ri!who,
    action: ri!action,
    attributeName:append(
      local!attributeName &amp;amp;  local!commentSpace &amp;amp; property(local!comment,&amp;quot;attributeName&amp;quot;,null())&amp;amp;  char(10) &amp;amp;property(local!TimeEntry,&amp;quot;attributeName&amp;quot;,null())),
      
    
    PreviousValue:append(
      local!previousValue &amp;amp; local!commentSpace &amp;amp; property(local!comment,&amp;quot;previousValue&amp;quot;,null()) &amp;amp;  char(10) &amp;amp; property(local!TimeEntry,&amp;quot;previousValue&amp;quot;,null()))
    ,
    currentValue:append(
      local!currentValue &amp;amp; local!commentSpace &amp;amp; property(local!comment,&amp;quot;currentValue&amp;quot;,null()) &amp;amp; char(10)&amp;amp; property(local!TimeEntry,&amp;quot;currentValue&amp;quot;,null())
    ),
    actionedOn: now(),
    
  ),
  
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: columns combine</title><link>https://community.appian.com/thread/106357?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 13:55:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e34cace-b631-4118-a78e-8c93ec6414cc</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think you&amp;#39;ll need to post some of your code so we can see what you&amp;#39;re doing here and provide suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: columns combine</title><link>https://community.appian.com/thread/106344?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 11:57:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e64c2935-b263-481f-93f9-041b67c2868a</guid><dc:creator>jojog0003</dc:creator><description>&lt;p&gt;Hii Harshit,&lt;/p&gt;
&lt;p&gt;The above&lt;strong&gt; concat function&lt;/strong&gt; is not working fine.Its gives the output like:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1673006220565v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;but I want like that:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;status: In progess&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;date_completed:2023-01-03&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;comments:xyz&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: columns combine</title><link>https://community.appian.com/thread/106312?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 18:17:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e299ada0-d1b4-47f0-94fd-f47f28e82f25</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;concat(fv!row.fieldName,&amp;quot; : &amp;quot;,fv!row.previousValue)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>