JSON in HTTP job as parameters
search cancel

JSON in HTTP job as parameters

book

Article ID: 245597

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

One of our users is asking if it’s possible to pass the following JSON Payload in HTTP job as parameters?

{

    "customNPORTVaRStressServiceRequest": {

        "accountCodeSource": "VisionShortId",

        "reportingPeriod": "Weekly",

        "effectiveDate": null,

        "templateName": "SubAdv-JNL-Stress-Wky"

    },

    "secDeriveWklyVarBackServiceRequest": {

        "accountCodeSource": "VisionShortId",

        "reportingPeriod": "Weekly",

        "effectiveDate": null,

        "templateName": "SubAdv-JNL-VaR-Wky"

    },

    "templateName": "SubAdvised-JNL-xls-VaR-back-and-stress-wkly"

}

 

Environment

Release : 12.0

Component : Workload Automation System Agent

Resolution

Add the parameters to the JIL after adding the media_type attribute with the blob_input.

media_type: application/json

blob_input: <auto_blobt>{"customNPORTVaRStressServiceRequest": {

                    "accountCodeSource": "VisionShortId",

                    "reportingPeriod": "Weekly",

                    "effectiveDate": null,

                    "templateName": "SubAdv-JNL-Stress-Wky"

                },

                "secDeriveWklyVarBackServiceRequest": {

                    "accountCodeSource": "VisionShortId",

                    "reportingPeriod": "Weekly",

                    "effectiveDate": null,

                    "templateName": "SubAdv-JNL-VaR-Wky"

                },

                "templateName": "SubAdvised-JNL-xls-VaR-back-and-stress-wkly"}</auto_blobt>