POSTMAN- Generate Request body dynamically using Data Files to pass values for certain fields
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
How can I generate this payload automatically in postman. Please see the structure below.
I am only changing Account Number / Account Name in the payload. If I have add 200 accounts for a customer ID I would have to insert 200 separate structures in the array. Is there a better way to maintain and generate the payload on the fly as I know that only 2 fields are changing and I could pass these as variables.
I tried the Collection Runner but I am unable to send these as one request.
FYI - For another corporate it would be 100 or 50 or 500, I wish to use the same payload for any request.
FYI- need to pass all these accounts in one request is because any second request its treated as a modify by the server.
{
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload": [
{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},
{
"accountNumber": "123456",
"accountName": "abcde",
"accountAliasName": "",
"customerId": "150740001",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
}
]
Updated-
Pre-req:
payloadarr.push(
{
"accountNumber": Account_Number ,
"accountName": Account_Name,
...
"context": {
"eventID": "TEST_JSL_0120191",
"eventTime": "2018-01-02T00:00:00.000Z",
"action": "INITIATE"
},
"payload": [payloadarr]
Body:
{{AccountActivation_Payload}}
...
Request passed:
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]}
Expectation:
payload should have the appended values
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},]}
postman web-api-testing postman-pre-request-script
add a comment |
How can I generate this payload automatically in postman. Please see the structure below.
I am only changing Account Number / Account Name in the payload. If I have add 200 accounts for a customer ID I would have to insert 200 separate structures in the array. Is there a better way to maintain and generate the payload on the fly as I know that only 2 fields are changing and I could pass these as variables.
I tried the Collection Runner but I am unable to send these as one request.
FYI - For another corporate it would be 100 or 50 or 500, I wish to use the same payload for any request.
FYI- need to pass all these accounts in one request is because any second request its treated as a modify by the server.
{
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload": [
{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},
{
"accountNumber": "123456",
"accountName": "abcde",
"accountAliasName": "",
"customerId": "150740001",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
}
]
Updated-
Pre-req:
payloadarr.push(
{
"accountNumber": Account_Number ,
"accountName": Account_Name,
...
"context": {
"eventID": "TEST_JSL_0120191",
"eventTime": "2018-01-02T00:00:00.000Z",
"action": "INITIATE"
},
"payload": [payloadarr]
Body:
{{AccountActivation_Payload}}
...
Request passed:
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]}
Expectation:
payload should have the appended values
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},]}
postman web-api-testing postman-pre-request-script
in Pre-req write"payload": payloadarr
and in Body are you writingpayloadarr.push(...
?
– ewwink
Jan 4 at 11:16
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13
add a comment |
How can I generate this payload automatically in postman. Please see the structure below.
I am only changing Account Number / Account Name in the payload. If I have add 200 accounts for a customer ID I would have to insert 200 separate structures in the array. Is there a better way to maintain and generate the payload on the fly as I know that only 2 fields are changing and I could pass these as variables.
I tried the Collection Runner but I am unable to send these as one request.
FYI - For another corporate it would be 100 or 50 or 500, I wish to use the same payload for any request.
FYI- need to pass all these accounts in one request is because any second request its treated as a modify by the server.
{
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload": [
{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},
{
"accountNumber": "123456",
"accountName": "abcde",
"accountAliasName": "",
"customerId": "150740001",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
}
]
Updated-
Pre-req:
payloadarr.push(
{
"accountNumber": Account_Number ,
"accountName": Account_Name,
...
"context": {
"eventID": "TEST_JSL_0120191",
"eventTime": "2018-01-02T00:00:00.000Z",
"action": "INITIATE"
},
"payload": [payloadarr]
Body:
{{AccountActivation_Payload}}
...
Request passed:
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]}
Expectation:
payload should have the appended values
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},]}
postman web-api-testing postman-pre-request-script
How can I generate this payload automatically in postman. Please see the structure below.
I am only changing Account Number / Account Name in the payload. If I have add 200 accounts for a customer ID I would have to insert 200 separate structures in the array. Is there a better way to maintain and generate the payload on the fly as I know that only 2 fields are changing and I could pass these as variables.
I tried the Collection Runner but I am unable to send these as one request.
FYI - For another corporate it would be 100 or 50 or 500, I wish to use the same payload for any request.
FYI- need to pass all these accounts in one request is because any second request its treated as a modify by the server.
{
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload": [
{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},
{
"accountNumber": "123456",
"accountName": "abcde",
"accountAliasName": "",
"customerId": "150740001",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
}
]
Updated-
Pre-req:
payloadarr.push(
{
"accountNumber": Account_Number ,
"accountName": Account_Name,
...
"context": {
"eventID": "TEST_JSL_0120191",
"eventTime": "2018-01-02T00:00:00.000Z",
"action": "INITIATE"
},
"payload": [payloadarr]
Body:
{{AccountActivation_Payload}}
...
Request passed:
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]}
Expectation:
payload should have the appended values
{"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[{
"accountNumber": "12345",
"accountName": "abcd",
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode":"0001"
},]}
postman web-api-testing postman-pre-request-script
postman web-api-testing postman-pre-request-script
edited Jan 4 at 18:14
JACOB SAMUEL
asked Jan 3 at 12:08
JACOB SAMUELJACOB SAMUEL
11
11
in Pre-req write"payload": payloadarr
and in Body are you writingpayloadarr.push(...
?
– ewwink
Jan 4 at 11:16
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13
add a comment |
in Pre-req write"payload": payloadarr
and in Body are you writingpayloadarr.push(...
?
– ewwink
Jan 4 at 11:16
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13
in Pre-req write
"payload": payloadarr
and in Body are you writing payloadarr.push(...
?– ewwink
Jan 4 at 11:16
in Pre-req write
"payload": payloadarr
and in Body are you writing payloadarr.push(...
?– ewwink
Jan 4 at 11:16
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13
add a comment |
1 Answer
1
active
oldest
votes
you can create the following Pre-request Script
var requestBody = {
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload":
};
for (var i = 0; i < 200; i++) {
requestBody.payload.push({
"accountNumber": 12345 + i,
"accountName": "abcd" + i,
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode": "0001"
});
}
postman.setEnvironmentVariable('requestBody', JSON.stringify(requestBody));
and it set Environment Variable requestBody
then you can call it in the request body using {{requestBody}}
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define theBody
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
|
show 2 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54022014%2fpostman-generate-request-body-dynamically-using-data-files-to-pass-values-for-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
you can create the following Pre-request Script
var requestBody = {
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload":
};
for (var i = 0; i < 200; i++) {
requestBody.payload.push({
"accountNumber": 12345 + i,
"accountName": "abcd" + i,
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode": "0001"
});
}
postman.setEnvironmentVariable('requestBody', JSON.stringify(requestBody));
and it set Environment Variable requestBody
then you can call it in the request body using {{requestBody}}
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define theBody
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
|
show 2 more comments
you can create the following Pre-request Script
var requestBody = {
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload":
};
for (var i = 0; i < 200; i++) {
requestBody.payload.push({
"accountNumber": 12345 + i,
"accountName": "abcd" + i,
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode": "0001"
});
}
postman.setEnvironmentVariable('requestBody', JSON.stringify(requestBody));
and it set Environment Variable requestBody
then you can call it in the request body using {{requestBody}}
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define theBody
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
|
show 2 more comments
you can create the following Pre-request Script
var requestBody = {
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload":
};
for (var i = 0; i < 200; i++) {
requestBody.payload.push({
"accountNumber": 12345 + i,
"accountName": "abcd" + i,
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode": "0001"
});
}
postman.setEnvironmentVariable('requestBody', JSON.stringify(requestBody));
and it set Environment Variable requestBody
then you can call it in the request body using {{requestBody}}
you can create the following Pre-request Script
var requestBody = {
"context": {
"EID": "ACC_123",
"eventTime": "2018-01-02T00:00:00.000Z",
"Eaction": "INIT"
},
"payload":
};
for (var i = 0; i < 200; i++) {
requestBody.payload.push({
"accountNumber": 12345 + i,
"accountName": "abcd" + i,
"accountAliasName": "",
"customerId": "150740000",
"ccy": "THB",
"accountStatus": "A",
"branch": "001",
"bankCode": "0001"
});
}
postman.setEnvironmentVariable('requestBody', JSON.stringify(requestBody));
and it set Environment Variable requestBody
then you can call it in the request body using {{requestBody}}
answered Jan 3 at 13:47
ewwinkewwink
12.3k22441
12.3k22441
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define theBody
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
|
show 2 more comments
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define theBody
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
The payload is going empty {"context":{"eventID":"TEST_JSL_0120191","eventTime":"2018-01-02T00:00:00.000Z","action":"INITIATE"},"payload":[]} .
– JACOB SAMUEL
Jan 4 at 6:25
please add screenshot how you define the
Body
– ewwink
Jan 4 at 6:27
please add screenshot how you define the
Body
– ewwink
Jan 4 at 6:27
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
I have actually replaced the loop variable with datafield variables --------------------------- var Account_Number = pm.iterationData.get("Account_Number") "accountNumber": Account_Number , "accountName": Account_Name, "accountAliasName": "ABC", "customerId": Customer_ID, "bankEntityId":"THAILAND", postman.setEnvironmentVariable('AccountActivation_Payload', JSON.stringify(Tmprequest)); BODY: {{AccountActivation_Payload}}
– JACOB SAMUEL
Jan 4 at 6:28
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
This is also part of Pre-request script for (var i=0;i>=3;i++) { var Account_Number = pm.iterationData.get("Account_Number"); var Account_Name = pm.iterationData.get("Account_Name");
– JACOB SAMUEL
Jan 4 at 6:35
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
please post the code in your question, it less readable in comment
– ewwink
Jan 4 at 6:37
|
show 2 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54022014%2fpostman-generate-request-body-dynamically-using-data-files-to-pass-values-for-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
in Pre-req write
"payload": payloadarr
and in Body are you writingpayloadarr.push(...
?– ewwink
Jan 4 at 11:16
No, it was a copy paste issue.Updated it I realize my code is failing because I am using data variables in pre-request screen.
– JACOB SAMUEL
Jan 4 at 18:13