Hi All,
I have a scenario, where I am exposing an Open API with say one resource (that creates one conditional flow). Once received request, the flow/proxy has to:
- Get Salesforce token.
- Create a job in SF - have to use above token as part of the request.
- Retrieve results from SF - have to use above token as part of the request.
All these have 3 different HTTP backend end-points. What I need here is, best practice to structure the proxy (reverse proxy), my understanding is below:
- Get Salesforce token in pre-flow (of proxy end-point) and store it in a cache.
- The conditional flow that would be created as part of OpenAPI : Can we handle the remaining logic here (like above create a job, and retrieve). I know whatever case, finally HTTP target end-point will be invoked.
How to avoid this, or is there any specific way to handle this?
Many thanks!!