I am developing logic app in azure portal with azure function app.Logic app gives randomly code query parameter invalid error for function . When ever error occurred i have
Goto yourfunction->manage->functionkey->default -click on the copy link under actions
Just appending code
https://{functionappName}.azurewebsites.net/api/{functionName}?code={defaultfunctionkey}