Not a Problem

executeEntityQuery output differs in values returned for the same process entity

Hi,

I would be interested if anyone can explain following behavior when using "executeEntityQuery "

I pass the following JSON:

  1. { "queryParameter":

    {"entity": "mPyExternalProcesses",

    "processId": "2350d732-a4b6-4b62-9ff6-a6495a2d42dc",

    "xpaths":[

    {"xpath": "@CaseNumber"},

    {"xpath": "@CreationDate"},

    {"xpath": "@Closed"},

    {"xpath": "@EstimatedSolutionDate"}

    ]

    }

    }

and the result is the following:

  1. {

    "@odata.context": "https://s01/Processes/odata/query/$metadata#entityInstance";,

    "@odata.totalCount": 25,

    "value": [

    {

    "@odata.id": "https://s01/Processes/odata/query/entityInstance(f7ded255-dffb-4937-aa6b-0010cdabcdb4)";,

    "id": "f7ded255-dffb-4937-aa6b-0010cdabcdb4",

    "@CaseNumber": "MMP202204081",

    "@CreationDate": "2022-04-08T18:04:16+02:00",

    "@Closed": true,

    "@EstimatedSolutionDate": null,

    "BizagiId": "2"

    },

The second process uses the same entity only the process ID is different:

passing following JSON:

  1. { "queryParameter":

    {"entity": "mPyExternalProcesses",

    "processId": "9a5012c3-541c-4e46-9324-c88b008785d3",

    "xpaths":[

    {"xpath": "@CaseNumber"},

    {"xpath": "@CreationDate"},

    {"xpath": "@Closed"},

    {"xpath": "@EstimatedSolutionDate"}

    ]

    }

    }

and result:

  1. {

    "@odata.context": "https://s01/Processes/odata/query/$metadata#entityInstance";,

    "@odata.totalCount": 11,

    "value": [

    {

    "@CaseNumber": "EODKF202204081",

    "@CreationDate": "2022-04-08T18:32:19+02:00",

    "@Closed": true,

    "@EstimatedSolutionDate": null

    },

Why the second query does not contain:

- @odata.id,

- id,

- BizagiId

Many thanks in advance.

Dusan

Comments (1)

photo
1

Dear Dusan,

Thank you for letting us know about this issue. This might be an error caused in the metadata of your project, so we will need to create a support ticket for this. Please, share with us the BD and the complete JSON objects, so that our team may look into it.

Thank you for you time and your patience.

Best regards,

Laura G