Custom node load options from json file

Hello,

I read in one of the topic that it is not possible to load dynamically options from an API. Howerver would it be possible to loads options from a local json file ?
My idea is to configure a workflow that is scheduled to extract the information from the api and and store the result in a json file. My custom nodes reads then this file and builds the options based on the content of the file.
Would that be possible ? Has anyone a code snippet for that ?

Thank you

Hi @babbel1005

This is possible.

We created a custom node some time ago that apply this solution.

Check uProc node as a reference. You will find two ts files: one per resources, another for operations.

Hope this helps.

1 Like

Thank you, works like a charm !

You are welcome!