How to invoke REST API with JSON object as input and output

pavan937

New Member
Hi Team,
Want to invoke REST API with JSON object as input and output in the below format
Input:
{
"description":"Add entitlement for XXXX for the user XXX0009",
"firstname":"XXXX",
"lastname":"XXXX",
"email":"test123@gmail.com",
"username":"XXX0009"
}
output:
{
"uploadstatus": "S",
"description": "Add entitlement for XXXX for the user XXX0009"
}

How can I do in Blue Prism?
 

sivagelli

Well-Known Member
Reference: https://rpasuccess.com/blog/2019/1/1/how-to-call-a-rest-api-from-blue-prism

I am assuming you can solve your puzzle following link.

Using Put or Get or Post action from Webservices - Rest VBO, you can send the request to hit the endpoint url. The output is a Collection. Using 'Collection to Json' action from Utility - Json, you can convert the output to Json format.

If you look in to objects Put or Get or Post action from Webservices - Rest VBO, the output is converted from text to Collection. You can tweak the object to bypass the last logical stage before the End stage and get the response as output from the actions. This way you need not convert collection back to Json format.

Post back how it goes!
 
Top