Hi,
I have a workflow A which need to be triggered from another workflow B. I have used the “Execute workflow” node and in the options have used source as URL and I’ve given the URL of my workflow A. However, when I execute it I get the following error:
ERROR: 401 - {"code":401,"message":"Authorization is required!"}
Seeing this error, I had given the credentials, But I’m unsure of the format. Could you please help me with the format?
Hi @Meghna_jose, if the workflow you want to execute lives on the same instance as your “parent” workflow you can simpy use Database as the source (and 9 as your workflow ID):
Perhaps you can give this a go and let me know if you’re still having trouble afterwards?
Hi @MutedJam ,
Thanks for the response. I have tried this earlier and it works for me, but I want to use the URL instead. Is there any solution for the above error?
The URL option would expect the URL of a JSON definition of an n8n workflow. This can make sense if you store your workflows in a Git repository for example or as a gist. But keep in mind that executing code from remote locations can be a security risk if you don’t have full control over said location.