HTTP request post

I have a post request in postman that looks something like the below.

I’ve used the code snippet tool in postman and imported it to the HTTP activity but it doesn’t give me the parameters. i need “loanNote”: “Test” to be present as this is will differ per attempt.

I am able to post the below and get the desired results.

I’m using the HTTP Request activity to post but i’m not sure how to recreate this in the activity. do i need to use the parameter tabs and just add each or do i need to create this assign it to variable and add this to the body section of parameters?

{
“loan_note_request”: {
“isNeedsToBeActioned”: true,
“isVisibleToBroker”: true,
“loanNote”: “Test”
}
}

Contact Items Selected - 3
Contact Number Valid Note
HType 11272011121
Mobile: 11272011121
Email: test.trialbonsu@close.com

emailAddress = System.Text.RegularExpressions.Regex.Match(textStr, “[a-zA-Z0-9._%±]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}”).Value

Hi @duaine.b

You can write that in the body property under options.
If you are trying to pass in JSON format as mentioned above. Please store the text in a notepad file.
Use a Read Text File activity, store the data in a variable and then pass it to the Body Property.

This should work.
Thanks

@adiijaiin - thanks for the message this has resolved the issue

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.