The attributes used - bs_id String bs_id +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ records = bmql("select username, password, reviseUrl, requestUrl from integration.remoteApproval"); username=""; password=""; reviseUrl=""; requestUrl=""; for record in records { reviseUrl=get(record, "reviseUrl"); requesturl=get(record, "requestUrl"); username = get(record, "username"); password = get(record, "password"); } json = "{\"processDefId\":\"default~CPQApprovalDemo!3.0~QuoteApprovalProcess\", \"serviceName\":\"QuoteApprovalProcess.service\",\"operation\":\"start\",\"payload\": \"Suyog" +bs_id + " 1256723 approve_pCSsubmit\",\"action\":\"Submit\"}"; header = dict("string"); put(header, "Accept", "application/json"); encodeCredential = encodebase64(username+":"+password); print(username); print(password); put(header, "Authorization", "Basic "+encodeCredential); put(header, "Content-Type", "application/json"); response = urldatabypost(requestUrl, json, "",header,true); //response = urlmultipartbypost(requestUrl,json,header); //processString= get(response,"Message-Body"); if(find(lower(response), "error")<0) { return jsonget(json(response),"processId","String"); } else { throwerror(response); return ""; }