Create Alerts using ION API

VinayakShetty
VinayakShetty Member, Infor Partner Posts: 21

Hello Team,

I’m attempting to trigger an alert using the ION API. However, when I send a request through Postman, I receive the following error:

Could you suggest how I can debug this further to identify the root cause? Any guidance or recommendations would be greatly appreciated.

Thank you

Vinayak

Best Answer

  • Danil Klemeshov
    Danil Klemeshov Member, Staff Posts: 16
    Answer ✓

    "SubLevel" should not be null. They are used to define a Structures mapping.

    This should work:

    {
    "message": "TESTING Alert Through Postman",
    "alertDateTime": "2024-12-15T12:03:19Z",
    "dueDate": "2024-12-22T12:03:19Z",
    "details": {
    "name": "VSTEST",
    "properties": [
    {
    "name": "email",
    "value": "vshetty@xappsdev.com",
    "dataType": "STRING"
    },
    {
    "name": "user",
    "value": "Vinayak Shetty",
    "dataType": "STRING"
    }
    ]
    },
    "distribution": [
    {
    "identifier": "vshetty@xappsdev.com",
    "type": "USER",
    "sendMail": true
    }
    ]
    }

Answers

  • Danil Klemeshov
    Danil Klemeshov Member, Staff Posts: 16

    Hi,

    Can you attach/paste the whole body request you are sending?

  • VinayakShetty
    VinayakShetty Member, Infor Partner Posts: 21

    Hello Daniel,

    Please find the request payload below

    {  "message": "TESTING Alert Through Postman",  "alertDateTime": "2024-12-15T12:03:19Z",  "dueDate": "2024-12-22T12:03:19Z",  "details": {    "name": "VSTEST",    "properties": [      {        "name": "email",        "value": "vshetty@xappsdev.com",        "dataType": "STRING"      },      {        "name": "user",        "value": "Vinayak Shetty",        "dataType": "STRING"      }    ],    "subLevels": [      null    ]  },  "distribution": [    {      "identifier": "vshetty@xappsdev.com",      "type": "USER",      "sendMail": true    }    ]}

  • VinayakShetty
    VinayakShetty Member, Infor Partner Posts: 21

    Thank you, Daniel. It worked