Hi,
According to this blog post[1], the nodejs 18 runtime should support the fetch API natively. However, in the custom action code editor, the fetch function is unavailable with an error: cannot find name “fetch”
I also found a community topic[2] which claims that native fetch is NOT available, and the node-fetch polyfill must be used instead.
Trying to zero in on the actual truth here. Thank you!
[1] Node 18 Now Available for Actions, Rules, and Hooks
[2] Custom Action: Cannot make an API call via fetch (using Node18)