Jump to content

customerId field on API Scheduler not giving the result of listing Customer on a Request


Recommended Posts

Morning,

We are starting to use the API Scheduler. It seems to work but the Request gets logged without a Customer, despite us using what we think is the correct customerId. We even match the case (have tried lower and CamelCase).

image.thumb.png.ae0b1ffe923e3c9919deee1da2079360.png

We use email address as the ID in all cases:

image.png.115b4a9076864665c7af96bef6b85a71.png

 

image.thumb.png.654eb8fa740eae11b5993994258672e8.png

 

Both the desired Customer (james) and the admin ID are Subscribers to the Service under which this is being created.

image.png.5aa02c8e985a48d64ece4cab8df70f60.png

Any help would be appreciated.

Link to comment
Share on other sites

{
  "APIKey": "key",
  "InstanceID": "instance",
  "Schedule": [{
    "Enabled": true,
    "CronSchedule": "0 2 10 10 * 0-6",
    "DayOfMonthANDDayOfWeek":false,
    "ScheduleFrom": "2023-02-09T00:00:00.000Z",
    "ScheduleTo": "2030-02-09T00:00:00.000Z",
    "Service": "apps/com.hornbill.servicemanager/ServiceRequests",
    "API": "logServiceRequest",
      "APIParams":{
        "0":
        {
          "Type":"Content",
          "Parameter":"summary",
          "Content":"ACTION TITLE"
        },
        "1":
        {
          "Type":"Content",
          "Parameter":"description",
          "Content":"ACTION THIS"
        },
        "2":
        {
          "Type":"Content",
          "Parameter":"RequestType",
          "Content":"Service Request"
        },
        "3":
        {
          "Type":"Content",
          "Parameter":"customerId",
          "Content":"email@address"
        },
        "4":
        {
          "Type":"Content",
          "Parameter":"teamId",
          "Content":"ICT_Infrastructure"
        },    
        "5":
        {
          "Type":"Content",
          "Parameter":"serviceId",
          "Content":"133"
        },
        "6":
        {
          "Type":"Content",
          "Parameter":"catalogId",
          "Content":"1089"
        },
        "7":
        {
          "Type":"Content",
          "Parameter":"catalogName",
          "Content":"API: Infrastructure Scheduled Requests"
        },
        "8":
        {
          "Type":"Content",
          "Parameter":"bpmName",
          "Content":"sbc-infrastructure-alert-emails"
        }    
      }
    },
{
    "Enabled": false,
    "CronSchedule": "0 2 10 10 * 0-6",
    "DayOfMonthANDDayOfWeek":false,
    "ScheduleFrom": "2023-02-09T00:00:00.000Z",
    "ScheduleTo": "2030-02-09T00:00:00.000Z",
    "Service": "apps/com.hornbill.servicemanager/ServiceRequests",
    "API": "logServiceRequest",
      "APIParams":{
        "0":
        {
          "Type":"Content",
          "Parameter":"summary",
          "Content":"ACTION"
        },
        "1":
        {
          "Type":"Content",
          "Parameter":"description",
          "Content":"ACTION"
        },
        "2":
        {
          "Type":"Content",
          "Parameter":"RequestType",
          "Content":"Service Request"
        },
        "3":
        {
          "Type":"Content",
          "Parameter":"customerId",
          "Content":"email@address"
        },
        "4":
        {
          "Type":"Content",
          "Parameter":"teamId",
          "Content":"ICT_Infrastructure"
        },    
        "5":
        {
          "Type":"Content",
          "Parameter":"serviceId",
          "Content":"133"
        },
        "6":
        {
          "Type":"Content",
          "Parameter":"catalogId",
          "Content":"1089"
        },
        "7":
        {
          "Type":"Content",
          "Parameter":"catalogName",
          "Content":"API: Infrastructure Scheduled Requests"
        },
        "8":
        {
          "Type":"Content",
          "Parameter":"bpmName",
          "Content":"sbc-infrastructure-alert-emails"
        }    
      }
    }
  ]
}

 

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...