<?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>Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/discussions/f/process/39172/datastype-subset-is-coming-as-object-object-instead-of-real-data-values-when-passed-in-process-model</link><description>Hi All, 
 I have a query rule as below and when passing to the process model, output is coming weird as Data: object,object. Please help!! 
 Expression rule output - 
 [startIndex=1, batchSize=1, sort=[field=updatedDateTime, ascending=false], totalCount</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148447?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 07:03:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71c339ae-4180-4cc3-9ddc-5a39465b04f0</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(

  /*You store the dataset in this variable*/
  local!query: a!queryEntity_22r2(
  entity: cons!ABC_ENTITY_USERS,
  query: a!query(
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 1,
      sort: a!sortInfo(field: &amp;quot;updatedDateTime&amp;quot;)
    ),
    selection: a!querySelection(
      columns: {
        a!queryColumn(field: &amp;quot;caseId&amp;quot;),
        a!queryColumn(field: &amp;quot;caseStatus&amp;quot;),
        a!queryColumn(field: &amp;quot;folderId&amp;quot;)
      }
    ),
    logicalExpression: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters: {
        a!queryFilter(
          field: &amp;quot;caseId&amp;quot;,
          operator: &amp;quot;=&amp;quot;,
          value: ri!clientCases.caseId,
          applyWhen: not(
            rule!APN_isBlank(ri!clientCases.caseId)
          )
        ),
        a!queryFilter(
          field: &amp;quot;caseStatus&amp;quot;,
          operator: &amp;quot;not in&amp;quot;,
          value: {&amp;quot;STARTED&amp;quot;},

        ),
        a!queryFilter(
          field: &amp;quot;docsSent&amp;quot;,
          operator: &amp;quot;is null&amp;quot;
        )
      }
    )
  )
),
/*Index the variable and store the result in a new variable or just return the dataset*/
/*local!dataset: index(local!query, &amp;quot;data&amp;quot;, null)*/
index(local!query, &amp;quot;data&amp;quot;, null)

)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148439?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 05:31:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f7b9026-b60b-467c-8dae-c6ac961103a1</guid><dc:creator>varung120549</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/manavik105"&gt;Dusty&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;You can simply index by storing the above query in a local variable or directly using &lt;a href="https://docs.appian.com/suite/help/25.2/fnc_array_index.html"&gt;index()&lt;/a&gt; function.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data:a!queryEntity_22r2(
  entity: cons!ABC_ENTITY_USERS,
  query: a!query(
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 1,
      sort: a!sortInfo(field: &amp;quot;updatedDateTime&amp;quot;)
    ),
    selection: a!querySelection(
      columns: {
        a!queryColumn(field: &amp;quot;caseId&amp;quot;),
        a!queryColumn(field: &amp;quot;caseStatus&amp;quot;),
        a!queryColumn(field: &amp;quot;folderId&amp;quot;)
      }
    ),
    logicalExpression: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters: {
        a!queryFilter(
          field: &amp;quot;caseId&amp;quot;,
          operator: &amp;quot;=&amp;quot;,
          value: ri!clientCases.caseId,
          applyWhen: not(
            rule!APN_isBlank(ri!clientCases.caseId)
          )
        ),
        a!queryFilter(
          field: &amp;quot;caseStatus&amp;quot;,
          operator: &amp;quot;not in&amp;quot;,
          value: {&amp;quot;STARTED&amp;quot;},

        ),
        a!queryFilter(
          field: &amp;quot;docsSent&amp;quot;,
          operator: &amp;quot;is null&amp;quot;
        )
      }
    )
  )
),
index(local!data,&amp;quot;data&amp;quot;,{})
)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148436?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 04:49:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8156d822-2bec-492e-8ad0-91a58afc92fc</guid><dc:creator>Dusty</dc:creator><description>&lt;p&gt;&lt;a href="/members/davidj137213"&gt;David Jimenez &lt;/a&gt;&amp;nbsp; when you say indexing the object, could you please show with an example what it means or how I can index in my query below:&lt;br /&gt;&lt;br /&gt;a!queryEntity_22r2(&lt;br /&gt; entity: cons!ABC_ENTITY_USERS,&lt;br /&gt; query: a!query(&lt;br /&gt; pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 1,&lt;br /&gt; sort: a!sortInfo(field: &amp;quot;updatedDateTime&amp;quot;)&lt;br /&gt; ),&lt;br /&gt; selection: a!querySelection(&lt;br /&gt; columns: {&lt;br /&gt; a!queryColumn(field: &amp;quot;caseId&amp;quot;),&lt;br /&gt;a!queryColumn(field: &amp;quot;caseStatus&amp;quot;),&lt;br /&gt;a!queryColumn(field: &amp;quot;folderId&amp;quot;)&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; logicalExpression: a!queryLogicalExpression(&lt;br /&gt; operator: &amp;quot;AND&amp;quot;,&lt;br /&gt; filters: {&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;caseId&amp;quot;,&lt;br /&gt; operator: &amp;quot;=&amp;quot;,&lt;br /&gt; value: ri!clientCases.caseId,&lt;br /&gt; applyWhen: not(&lt;br /&gt; rule!APN_isBlank(ri!clientCases.caseId)&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;caseStatus&amp;quot;,&lt;br /&gt; operator: &amp;quot;not in&amp;quot;,&lt;br /&gt; value: {&amp;quot;STARTED&amp;quot;},&lt;br /&gt; &lt;br /&gt; ),&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;docsSent&amp;quot;,&lt;br /&gt; operator: &amp;quot;is null&amp;quot;&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148435?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 21:21:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3731036b-7ec4-4c5e-85d5-abb5bb6c7039</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Not necessary, maybe is just the way that appian shows the information inside your process. That&amp;#39;s why I asked if you are able to access the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148434?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 20:27:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdc69156-4bfb-483a-9fd8-2bd648ae2480</guid><dc:creator>Dusty</dc:creator><description>&lt;p&gt;Thank you for the response &lt;a href="/members/davidj137213"&gt;David Jimenez &lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;yeah but I want to get the whole datasubset value and indexing would kill that right? For example, in my script task output I&amp;#39;m just calling rule!getuserdata(user: pv!userdetails) and saving this to a pv of type datasubset.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Datastype subset is coming as object,object instead of real data values when passed in process model</title><link>https://community.appian.com/thread/148433?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 20:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b9b00d4-33ed-4185-a521-0d5b19cd80fb</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Have you tried indexing the object to see if you can work with the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>