CLI-Based Flow Execution #2824
Replies: 5 comments 3 replies
-
Can anything be done in Flows that can't be done in Apex? "Good developers don't let other developers write Flows", I always say. |
Beta Was this translation helpful? Give feedback.
-
I don't have a specific, concrete use case for us (as an ISV/OEM), but I can see how this could enable collaboration between admins and DevOps for customer/subscriber orgs.
Perhaps also worth thinking about how output variables might be able to supplied back to the CLI after its executed. Maybe only really possible if run synchronously. |
Beta Was this translation helpful? Give feedback.
-
Anonymous Apex is Apex run from the CLI, but it is not anonymous. It runs with user permissions. Would this flow run as system or as user? |
Beta Was this translation helpful? Give feedback.
-
This is a novel idea; here are some of my thoughts: PersonasWhen I consider someone in an administrator role, I don't foresee that they would be writing the flows for org AND invoking them from the CLI. This seems like two separate personas:
Both of these seem like rather niche use cases - so I am not sure this directly solves a current pain point with the CLI. This might be a "We can make it happen, so let's try to do it and see what the community does with it" kind of feature which is fine - perhaps we just acknowledge that. Interface** Small soap box moment here public interface CommandLineExecutableFlow {
public void execute();
} Having a way to programmatically guarantee that a flow satisfies an "interface" would offer tremendous value in this situation and could solve many other problems for autolaunched flows across the entire platform. This however goes well beyond the scope of the CLI and would require strong buy in from @alexed1 and the Flow team. Relative ValueFor what it's worth, I think the value proposition for this idea is substantially less than #2492. Running tests from the CLI solves many more problems for customers right now than running autolaunched flows from the CLI. |
Beta Was this translation helpful? Give feedback.
-
There are two areas where this would be useful:
|
Beta Was this translation helpful? Give feedback.
-
I'm Vivek M. Chawla, the new Product Manager for the Salesforce CLI.
I'd like your feedback on a feature we're considering: Execute an autolaunched flow from the CLI.
What's the idea?
--wait
) and asynchronous execution from the CLIWhy build this?
cURL
ornode-fetch
.Who might use this?
Proposed Syntax
What do you think?
Specifically, I'd like to know...
Please share your thoughts by commenting on this thread. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions