Discussions
Lambda/Serverless not supported for Menu Items in the App? (Docs says it should work)
It looks like Menu Items for Lambda events are not supported in the App? It works fine for the website version.
When adding the Manifest for an addon, the documentation (https://developer.servicem8.com/docs/manifest-reference#section-menuitems-event-mandatory-) says that a menuItems[event] is mandatory and to provide an event or actionURL. (What's an actionURL?)
But setting an event parameter causes an error in the manifest registration. When it's set to addon, it works fine. (As in available from the addon menu in the website version.)
Setting an actionURL seems to be accepted, though there's no documentation about what that is. (Based on a hint from the error message.)
For the menuItems array, having an item like this works fine:
{
"name":"Test",
"type":"addon",
"iconURL":"https://www.blah.com\/servicem8images\/icon.png",
"event" :"eventName"
}
But changing the type value to app fails.
{
"name":"Test",
"type":"app",
"iconURL":"https://www.blah.com\/servicem8images\/icon.png",
"event" :"eventName"
}
with the error "Invalid Addon Manifest. Cannot combine type 'app' with event field for menuItem"
This doesn't seem to match the documentation.
Any idea/suggestion on how we can use Lambda with app's more menu?
I've raised this as a ticket already, but haven't heard back.