cancel
Showing results for 
Search instead for 
Did you mean: 
1WSCGomez
Moderator
Moderator

Check whether my entity got published or not.

The following details can be extracted:

  1. Task id 
  2. File name
  3. Number of entities exported.
  4. Export time
  5. User details

Use the following query to get external events:

Payload:

{

    "params": {

        "query": {

            "filters": {

                "typesCriterion": [

                    "externalevent"

                ],

                "attributesCriterion": [

                    {

                        "exportEntityList": {

                            "contains": "ersZFa7roX2YMFx*"

                        }

                    },

                    {

                        "eventSubType": {

                            "exact": "REPORTING"

                        }

                    }

                ]

            }

        },

        "fields": {

            "attributes": [

                "taskId",

                "parentTaskId"

            ]

        }

    }

}

 

URL: /api/eventservice/get

By adding properties criterion with date, the above query can be restricted for a specific date as the following sample query:

Payload:

{

  "params": {

    "query": {

      "filters": {

        "typesCriterion": [

          "externalevent"

        ],

        "attributesCriterion": [

          {

            "exportEntityList": {

              "contains": "ersZFa7roX2YMFx*"

            }

          },

          {

            "eventSubType": {

              "exact": "REPORTING"

            }

          }

        ],

        "propertiesCriterion": [

          {

            "modifiedDate": {

              "gte": "2023-11-14T04:01:11.248-0600",

              "type": "_DATETIME"

            }

          }

        ]

      }

    },

    "fields": {

      "attributes": [

        "taskId",

        "parentTaskId"

      ]

    }

  }

}

Please note that we have used entity id under exportEntityList which has included wildcard character “*” . 

Below is the sample response:

1WSCGomez_2-1796389996252.png

 Once you have the task ID you can use this ID and search on UI or perform the below API to get the actual task by matching the profile name as you may find multiple task IDs. 

With Below API you can get a summary of the task object including profile and file name.

Payload:

{

  "params": {

    "query": {

      "id": "5ad50ec8-97ec-4685-8051-a4f41d33fc79",

      "filters": {

        "typesCriterion": [

          "tasksummaryobject"

        ]

      }

    },

    "fields": {

      "attributes": [

        "_ALL"

      ],

      "relationships": [

        "_ALL"

      ]

    },

    "options": {

      "maxRecords": 1

    }

  }

}

URL: api/requesttrackingservice/get

Sample response:

1WSCGomez_3-1796390003761.pngPlease post your questions in the comments section.

 

Version history
Revision #:
1 of 1
Last update:
13 hours ago
Updated by:
 
Contributors