The attributes used - _quote_remote_approval_process_id_remoteSubmit String RemoteProcessId ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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"); } header = dict("string"); encodeCredential = encodebase64(username+":"+password); put(header, "Authorization", "Basic "+encodeCredential); put(header, "Content-Type", "application/json"); cancelBody = "{\"id\":\"cancel\"}"; url = reviseUrl+"/"+ _quote_remote_approval_process_id_remoteSubmit; response = urldata(url, "PUT", header, cancelBody); returnValue = get(response,"Message-Body"); if(get(response,"Status-Code") == string(200)) { return "-1"; } else { throwerror(get(response,"Message-Body")); return ""; }