PipedreamHQ / PipedreamHQ/pipedream

[FEATURE] I want to call an action from within another code step / action

Open
#85 3 comments 5 reactions 0 assignees View on GitHub
enhancement triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

Since actions are just functions that accept params and run saved JS code, I'd like the ability to call them within code steps. i.e. if I saved an action `printName`:

```javascript
async params => {
console.log(params.name)
}
```

I'd like to call that from another code step like so:

```javascript
const { printName } = require("@pipedream/actions")
if (name) {
printName(name)
}
```

(Ignore the proposed syntax, just a placeholder for functionality)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.