List Notifications v2

post

/jderest/v2/notification/discover

Request a list of available notifications.

Request

Supported Media Types
Header Parameters
Body ()
The request to notification discover service.
Root Schema : NotificationDiscoveryRequest
Type: object
The request to notification discover service.
Show Source
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • The name or omw object name of the notification if a single one is requested.
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • The AIS token, which is required if other authentication methods are not being used.
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request All

The following shows an example of a notification discover request that returns all the notifications available to the calling user. The token passed in this example was received from a separate token request. You can also use other supported authentication methods.


curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/notification/discover -d 

{   
    "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU="
}

        

Example Response

The following example shows the contents of the response body.

{"notifications": [
      {
      "name": "DemoNotification",
      "description": "DemoNotification",
      "productCode": "55",
      "omwObjectName": "NTF_1708250001TOOLS",
      "user": "DEMO",
      "oncePerSubscriber": false,
      "allowSubscriberOverrides": false,
      "inputs": [      {
         "name": "Input1",
         "type": "String",
         "required": false,
         "displayName": "Input1"
      }],
      "outputType": "string",
      "udoGroup": "Personal",
      "omwObjectOwner": "DEMO",
      "scheduleUDOName": "SCH_1708140001TOOLS"
   },
      {
      "name": "My Notification",
      "description": "Notify users of a watchlist value",
      "productCode": "04",
      "omwObjectName": "NTF_1708020004TOOLS",
      "user": "*PUBLIC",
      "oncePerSubscriber": true,
      "allowSubscriberOverrides": false,
      "inputs": [      {
         "name": "SearchType",
         "type": "String",
         "required": true,
         "defaultValue": "X",
         "displayName": "SearchType"
      }],
      "output": "Watchlist Output",
      "outputType": "wllevel",
      "udoGroup": "Shared",
      "omwObjectOwner": "*PUBLIC",
      "scheduleUDOName": "SCH_1708020004TOOLS"
   }
]}
        

Example Request Single

The following shows an example of a notification discover request that returns the requested notification (if available) to the calling user. The token passed in this example was received from a separate token request. You can also use other supported authentication methods.


curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/notification/discover -d 

{   
    "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU=",
    "notification":"OrdersAwaitingApproval"
}

        

Example Single Response

The following example shows the contents of the response body.

{
    "notifications": [
        {
            "omwObjectName": "NTF_2405150001JDE",
            "studioVersion": "9.2.9.0",
            "name": "OrdersAwaitingApproval",
            "version": "",
            "productCode": "55",
            "locale": "en",
            "updateTime": 1726854126194,
            "description": "OrdersAwaitingApproval",
            "user": "NICOLE",
            "oncePerSubscriber": false,
            "allowSubscriberOverrides": false,
            "orchestration": "OrdersAwaitingApproval",
            "orchUdoName": "ORC_2405150002JDE",
            "watchlistName": "",
            "watchlistUDOName": "",
            "rule": "IsGreaterZero",
            "ruleUdoName": "RUL_2308210002JDE",
            "messageSubject": "${Count} Orders awaiting your approval",
            "messageBody": "",
            "messageBodyAsRichText": "<p>Please see orders awaiting your approval....;",
            "msgAsRichText": true,
            "inputs": [],
            "orchInputs": [],
            "ruleInputs": [
                {
                    "input": "Count",
                    "output": "input",
                    "defaultValue": ""
                }
            ],
            "shortcut": {},
            "moreActions": {
                "shortcut": [
                    {
                        "application": "P43081",
                        "form_name": "W43081A",
                        "version": "ZJDE0001",
                        "formInterconnect": {
                            "data_structure_template": "W43081A",
                            "formInputs": [
                                {
                                    "id": "1",
                                    "value": "",
                                    "description": "Hold Code (HCOD)",
                                    "name": "HoldValue"
                                },
                                {
                                    "id": "2",
                                    "value": "",
                                    "description": "Order Type (DCTO)",
                                    "name": "OrderType"
                                },
                                {
                                    "id": "3",
                                    "value": "",
                                    "description": "Document (Order No, Invoice, etc.) (DOCO)",
                                    "name": "DocumentOrderInvoiceE"
                                },
                                {
                                    "id": "4",
                                    "value": "",
                                    "description": "Order Company (Order Number) (KCOO)",
                                    "name": "CompanyKeyOrderNo"
                                },
                                {
                                    "id": "5",
                                    "value": "",
                                    "description": "Line Number (LNID)",
                                    "name": "LineNumber"
                                },
                                {
                                    "id": "6",
                                    "value": "",
                                    "description": "Date - Released (Julian) (RDJ)",
                                    "name": "DateReleasedJulian"
                                },
                                {
                                    "id": "7",
                                    "value": "",
                                    "description": "Time - Released (RDT)",
                                    "name": "TimeReleased"
                                },
                                {
                                    "id": "8",
                                    "value": "",
                                    "description": "Status - Approval (ASTS)",
                                    "name": "StatusApproval"
                                },
                                {
                                    "id": "9",
                                    "value": "",
                                    "description": "Business Unit (MCU)",
                                    "name": "szCostCenter"
                                },
                                {
                                    "id": "10",
                                    "value": "",
                                    "description": "Days - Orders Older Than (DORE1)",
                                    "name": "mnOrdersOlderThan"
                                },
                                {
                                    "id": "11",
                                    "value": "",
                                    "description": "Days - Orders Waiting More Than (DWTE1)",
                                    "name": "mnOrdersWaitingMoreThan"
                                }
                            ]
                        },
                        "linkText": "Orders Awaiting",
                        "linkid": "P43081"
                    }
                ]
            },
            "ddTemplate": {
                "parameter": []
            },
            "services": {},
            "outputType": "String",
            "WATCHLIST_LEVEL": "wllevel",
            "udoGroup": "Personal",
            "omwObjectOwner": "NICOLE",
            "translations": [
                {}
            ],
            "monitoringLevel": [],
            "monitorOnStart": false,
            "monitorAllEnvironments": false,
            "monitorAllUsers": false,
            "monitorEnvironments": [],
            "monitorUsers": [],
            "attachments": {
                "includeBinaryInEmail": true
            },
            "enableReminder": true,
            "reminderRuleOption": "RULE",
            "reminderDateRule": "DAYS",
            "reminderRuleAmount": 1,
            "reminderTime": "T23:55:00",
            "reminderTimeZone": "America/Denver",
            "dateRuleLiteral": true,
            "dataTables": {
                "dataTableList": [
                    {
                        "placeholderName": "OrdersAwaitingApproval_1",
                        "tableTemplate": "figure..."
                    }
                ]
            }
        }
    ]
}
        
Back to Top