I have a scenario where I want to delete several different scheduled workflows, the IDs of which I have saved in different fields on a Company. Instead of creating a bunch of steps in to delete each one at a time, I’d like to use “Cancel a list of scheduled API workflows” and get them all in one.
I swear I used to be able to do this by doing something like First Item:converted to list plus item: Second Item plus item: Third item etc. to build a list from scratch when it’s not something I can get from a search or some similar option where the list is returned to me from Bubble.
Is there a way to do this, or has that feature gone away?
While you “should” be able to do this you may need to do it in steps: like, create a custom state (list type) and add the first item, and then append items using the :plus item:plus item operators in a single expression. I’m AFK, but there should be a way to do this.
Yes. You can use Keith’s plugin below which is very useful in general. Use “FLOW State List SSA” to create an empty list of texts and then in your “Cancel a list of scheduled API workflows” you could do “result of step 1’s list of texts (which will be empty to start) plus item: _____ plus item: _____ plus item: ______ etc”
I was trying to do this on the back end. I was doing more troubleshooting and noticed that I do have the “converted to list” option for other types of data, but when doing it for a text field on a Thing (the scheduled workflow IDs I mentioned above) I don’t get that option. Not sure what the logic is there or if there’s a way to bypass it.
Sounds like the plugin may do the trick though I’d rather not install a plugin for this instance. Would it work on the backend?
Well if there’s no :converted to list operator on strings you could do what I described.
OR, concatenate your strings using a delimiter like comma-space and then :split.
This is probably what Bubble expects you to do with strings. There’s a propensity with Bubble to NOT have duplicate ways of achieving the same effect, even when it would make sense syntactically.