can we hit multiple endpoints for single request which is based on category and subcategroy?

AkashD462166574
Tera Contributor

Hello Everyone,

I need to integrate the sc_task table. We have a catalog item with various categories and subcategories. For example, when a user selects the category "Mobile Services" and the subcategory "New Connection SIM," after filling other details and submit a request and task will generate after approving ritm . as soon as task is create in  tool the payload should sent to customer on their provided endpoint. When a task is created, the payload should be sent to this endpoint.(customer provided one sheet with request and response body). I have completed this requirement.

However, now they want to hit multiple endpoints for the same category and subcategory. For example, when the category is "Mobile Services" and the subcategory is "New Connection SIM," they provide three endpoints. Can we hit all of them when task is created  in our tool? Is there any way to achieve this scenario?

 

Any ideas are welcomed.

 

Thanks in advanced ! 

 

2 REPLIES 2

Vishal Jaswal
Giga Sage

Hello @AkashD462166574 

"When a task is created, the payload should be sent to this endpoint.(customer provided one sheet with request and response body). I have completed this requirement.

If you have already accomplished the same and want to re-do the same for another two endpoints then you can re-use the same logic for other two.


Hope that helps!

Hello Vishal,

Previously, the requirement was different. For one request, we would hit only one endpoint and send the payload accordingly. Now, they want to hit multiple endpoints, and the request body and endpoints are different. I am stuck on how to hit 2-3 endpoints for a specific category and subcategory and how to send the payload.

If you look at the attachment, the category is "Mobile Services," the subcategory is "New Connection," and the smartphone and SIM are "Vodafone." Previously, I had to hit one endpoint, so I wrote one method and passed the parameters: request body, REST message, and method, and it worked fine. But now, the requirement is to hit another 2 endpoints for the same condition, and the payload is different for each.