<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WM REST API jobSearch returns &amp;quot;currentStep&amp;quot; as an array but claims a string type in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/wm-rest-api-jobsearch-returns-quot-currentstep/m-p/1241702#M1765</link>
    <description>&lt;P&gt;Post a job search request and specify to return "currentStep" in fields&lt;/P&gt;&lt;LI-CODE lang="c"&gt;https://{{env.hostname}}/workflowmanager/workflow/{{env.workflowitemid}}/jobs/search?token={{env.token}}

{
    "num": 10,
    "start": 0,
    "q": "1=1",
    "fields": ["JobId", "JobName", "priority", "dueDate", "currentStep"]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response specifies that "currentStep" is a string but its value is actually an array.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
    "q": "1=1",
    "fields": [
        {
            "name": "JobId",
            "fieldType": "String"
        },
        {
            "name": "JobName",
            "fieldType": "String"
        },
        {
            "name": "priority",
            "fieldType": "String"
        },
        {
            "name": "dueDate",
            "fieldType": "DateTime"
        },
        {
            "name": "currentStep",
            "fieldType": "String"
        }
    ],
    "results": [
        [
            "gM5_BuxmS6yKneDz4hNGew",
            "JOB_1",
            "Low",
            "2022-12-23T10:30:57Z",
            [
                "tempName"
            ]
        ],
        [
            "avDKQmdgSGSlxC79hZju_A",
            "JOB_2",
            "Low",
            "2022-12-23T10:31:01Z",
            [
                "tempName"
            ]
        ]
    ],
    "start": 0,
    "nextStart": -1,
    "num": 2
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to modify the request to include "currentSteps" (plural) which is an actual property of a `job` but the API errored with "field does not exist".&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 19:56:45 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2022-12-15T19:56:45Z</dc:date>
    <item>
      <title>WM REST API jobSearch returns "currentStep" as an array but claims a string type</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/wm-rest-api-jobsearch-returns-quot-currentstep/m-p/1241702#M1765</link>
      <description>&lt;P&gt;Post a job search request and specify to return "currentStep" in fields&lt;/P&gt;&lt;LI-CODE lang="c"&gt;https://{{env.hostname}}/workflowmanager/workflow/{{env.workflowitemid}}/jobs/search?token={{env.token}}

{
    "num": 10,
    "start": 0,
    "q": "1=1",
    "fields": ["JobId", "JobName", "priority", "dueDate", "currentStep"]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response specifies that "currentStep" is a string but its value is actually an array.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
    "q": "1=1",
    "fields": [
        {
            "name": "JobId",
            "fieldType": "String"
        },
        {
            "name": "JobName",
            "fieldType": "String"
        },
        {
            "name": "priority",
            "fieldType": "String"
        },
        {
            "name": "dueDate",
            "fieldType": "DateTime"
        },
        {
            "name": "currentStep",
            "fieldType": "String"
        }
    ],
    "results": [
        [
            "gM5_BuxmS6yKneDz4hNGew",
            "JOB_1",
            "Low",
            "2022-12-23T10:30:57Z",
            [
                "tempName"
            ]
        ],
        [
            "avDKQmdgSGSlxC79hZju_A",
            "JOB_2",
            "Low",
            "2022-12-23T10:31:01Z",
            [
                "tempName"
            ]
        ]
    ],
    "start": 0,
    "nextStart": -1,
    "num": 2
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to modify the request to include "currentSteps" (plural) which is an actual property of a `job` but the API errored with "field does not exist".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/wm-rest-api-jobsearch-returns-quot-currentstep/m-p/1241702#M1765</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2022-12-15T19:56:45Z</dc:date>
    </item>
  </channel>
</rss>

