Scheduler for SAS key expiry Email notification not working
I attempted to create a scheduled email notification for SAS key expiration by following the documentation available at the following link:
However, it didn’t work as expected.
During testing, we observed that no instance was created for the scheduler, even though the configuration settings appeared to be correct.
I’ve also attached code that I uploaded to tenant for scheduler. Please review them and let me know what changes, if any, are needed.
{
  "metaInfo": {
    "dataIndex": "scheduleObject",
    "collectionName": "scheduleObjects",
    "responseObjectName": "response"
  },
  "scheduleObjects": [
    {
      "id": "schedule-integration-key-alerts",
      "name": "schedule integration key alerts",
      "type": "scheduleobject",
      "data": {
        "attributes": {
          "scheduleType": {
            "values": [
              {
                "value": "fixedRate",
                "locale": "en-US",
                "source": "internal"
              }
            ]
          },
          "scheduleTaskName": {
            "values": [
              {
                "value": "schedule integration key alerts",
                "locale": "en-US",
                "source": "internal"
              }
            ]
          },
          "scheduleTaskUrl": {
            "values": [
              {
                "value": "http://rdp-rest:8085/gncds/api/proxyservice/call",                
                "locale": "en-US",
                "source": "internal"
              }
            ]
          }
        },
        "jsonData": {
          "scheduleTaskPayload": {
            "proxyObject": {
              "data": {
                "jsonData": {
                  "requestBody": {
                    "batchOptions": {
                      "poolId": "rsbatch"
                    },
                    "jobIdentifier": {
                      "appId": "schnotification",
                      "jobDefId": "schedulednotifications"
                    },
                    "jobInputPayload": {
                      "identifier": "keyExpiryScheduledNotification",
                      "taskType": "keyExpiryScheduledNotification",
                      "params": {
                        "query": {
                          "contexts": [
                            {
                              "app": "scheduledEmailNotification",
                              "component": "systemKeyManagement",
                              "subcomponent": "systemKeyManagement"
                            }
                          ],
                          "filters": {
                            "typesCriterion": [
                              "notificationConfig"
                            ],
                            "nonContextual": false
                          }
                        },
                        "fields": {
                          "attributes": [
                            "_ALL"
                          ]
                        },
                        "options": {
                          "maxRecords": 100,
                          "getnearestPath": "app>>component>>subcomponent",
                          "getnearestReturnAll": false
                        }
                      }
                    }
                  }
                }
              },
              "type": "batch-create-job"
            }
          },
          "scheduleConfiguration": {
            "authContext": {
              "x-rdp-userRoles": "admin",
              "x-rdp-clientId": "rdpclient",
              "x-rdp-userid": "system_user",
              "x-rdp-useremail": "system",
              "x-rdp-ownershipdata": "",
              "x-rdp-username": "system",
              "x-rdp-authtoken": "vA/BnGa6ue5oCdgxaogJRvxDy7dAudrs3qstHYJNBUE=",
              "x-rdp-tenantId": "gncds"
            },
            "intervalInMins": 2
          }
        }
      }
    }
  ]
}
                  
                    
                    0
                    
                  
                
                - 
                
Hi Mital
Firstly, you should replace the tenant name "gncds" with "{{TENANT}}".
How did you try to upload the configuration? When you tried to upload the configuration, you should have been given a taskid, what was the result of that task?
And when you say that no instance of the configuration was created, how did you check that? In the Scheduled Jobs menu?
1 
Please sign in to leave a comment.
Comments
1 comment