Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Best practice when working pre-flow,post-flow,conditional flow

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!!

0 2 355
2 REPLIES 2