Quantcast
Viewing all articles
Browse latest Browse all 12134

Re: Getting Error while Parameterizing the .json script

Hi,

 

Could you try with just Body as below instead of Bodyfilepath:

 

Action()
{

char *request_json_base;
char *request_json;

request_json_base=
"{"
    "\"method\": \"getCustomerAddress\","
    "\"format\": \"application/json\","
    "\"system\": \"amer\","
    "\"companyId\": \"1234\","
    "\"customerId\": \"{custid}\","
    "\"filter\": {"
    "\"addressCode\": \"{addrcode}\""
    "}"
"}";

request_json = lr_eval_string(request_json_base);
lr_save_string(request_json, "REQUEST_JSON_PARAM");
        
    lr_start_transaction("getcustomeraddress");
    web_custom_request("getCustomerAddress",
          "URL=https://pre-prod-skpservicesinternal.nus.ironmountain.com/rmservices/api/recordsMgmt/manageCustomers",
          "Method=POST",
          "Resource=0",
          "EncType=application/json",
          "Mode=HTTP",
          "Body={REQUEST_JSON_PARAM},
     LAST);
    lr_end_transaction("getcustomeraddress",LR_AUTO);
     
    return 0;
}

 

Thanks,

Surya


Viewing all articles
Browse latest Browse all 12134

Trending Articles