Skip to main content

I'm not understanding the return values for Invocable Actions using Flow and been going crazy last 2 days.

The docs say we can use lists of any primitive data, except generic Object. So I'm returning a list of Dates. How can Flow store that? Even if I make a Collection variable, it does not appear on the Output tab. The only variables appearing are Sobject and regular variables but you can't store a list in a regular variable???

Am I missing something or is the answer that the only return values for this using a Flow is an Sobject OR a SINGLE value?? If single, then I'd need to call this within a loop..which is bad.

7 条评论
  1. 2015年2月15日 04:57

    It doesn't seem like this was intended. As a workaround, you can declare a string in your method and return the string entire string and parse through it to assign the values to an sObject; totally not desirable but it works. So you can take advantage of it if you really need to use some custom apex logic.

    But yes, collection and sObject collections should be an option in the outputs / inputs panes based on the release notes. Sometimes it's not looking for what's there, but is looking for what's not.

    P.S. I can't believe I missed this earlier! I just retrieved one object back when testing and didn't think anything of it! >< Good eye

    @Darrell DeVeaux.
0/9000