Web Service connector - Stop a request from happening

Hello,
I was wondering if there is a way to stop a request from happening in a web service connector when the body is empty for example, using preferably the beforeoperationrule.

I have some scenario where the body might be empty for one of the calls (because it is not required for all users), and I would like to avoid the call to be made, and directly move on to the next call.
For now, my temporary solution is to accept 500 error on this call, which is not ideal and might make us miss other issues.

Thank you.

Hello,

What kind of request should be stopped? You should be able to loop through the requests and build custom JSON-bodies within a BeforeProvisioning WebService rule for each request. So if a request is equal to the one that should be stopped, simply do nothing. And return the rest to the endPoint.

It is adding an entitlement during creation (these ones are static and part of the provisioning policy). But in some scenarios there is no entitlement to add so the request is empty.
And also, we have entitlements of one type that can be requested in 1 api call, and some that cannot, so to avoid issues, we set addRemoveEntInSingleReq to false. Therefore, to optimize the number of calls to the API, we would like to do only 1 request for the entitlements that can be requested in 1 call (therefore cancelling the following ones), and multiple requests for the ones that can’t.

So there is no way to use a beforeoperation rule to do that, it has to be beforehand in the before provisioning rule?
Thank you

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