Creating a flow via Java API

API : Post /api/v2/flows
Java SDK : postFlowsWithHttpInfo

When attempting to open the flow created using the code provided above in GC (Genesys Cloud), I am encountering the following error:

While you technically can use the flow APIs directly, you're going to have a really rough time of it because you're going to need to know how to create absolutely everything by hand. Just making a single post request isn't going to get you anywhere; there's much much more to it than that.

The recommended approach is to the use purecloud-flow-scripting-api-sdk-javascript SDK or Archy. If you must do this in Java, you can reverse engineer the JavaScript package; it's open source.

How to handle circular dependency flow creation via archy?

@suyambu by circular reference of a flow you mean Flow A references Flow B and Flow B references Flow A?
If so, the real only way to do this with Archy is to publish a basic version of Flow A and Flow B without any dependencies (essentially a flow like you would see by creating them in the UI). Then you would be able to reference each of these flows with each other and update the flows with the new YAML where you can use actions that reference the flows.

Thanks,
Jon

Thanks for the clarification.

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