Using web.post on the notecard.
myreq = {‘req’:‘web.post’}
myreq[‘route’]=route_alias
myreq[‘body’]=message
What works:
- Defined a Notehub.io route as “Proxy for Web Device Web Request”, set the fields “Route Name” and “Route Alias” to “postfile”. Set the variable “route_alias” above to “postfile”. It all works and has worked for a long time.
What does not work:
- Define a route as an “Azure Function”. Set the “Route Name” to “postfileaz”. There is no “Route Alias” field. Set the same variable above to “postfileaz”. Error:
card.Transaction rsp {‘err’: “hub request error: notehub route with alias ‘postfileaz’ cannot be found”}
Sounds like I am missing something fundamental here!