Return Data From API when not using an API

I see this answer, but I don’t think it answers my question.

I am trying to reuse the same piece of dynamic text for multiple processes. So, I created a backend workflow:

When I call it, however, I’m getting some sort of ID and I don’t know how to get at teh text.

The state yields a number: 11860

How do I get at the text being generated by the backend workflow?

When you use schedule an api workflow, the result from the action is a schedule_id
This is why you’re getting the number

Anyways for your use-case, why not try to save the dynamic text in a group of type text or as a custom state?

Thank you. I think that’s what I’m trying to do.

Do you mean for the backend workflow? Am I able to save something to a state from the backend workflow? If so, how will I be able to resue the workflow for other pages, states…etc?

no need to backend workflow at all, you can just set create custom state same as the parameters you’ve already in the backend workflow and you pass the values to the custom state the same way you are passing it now to the backend workflow.

It’s the same process but you can just do it on the client side quickly with custom states or custom groups to hold the dynamic text