Discussions

Ask a Question
Back to All

Add-on manifest that appears both 'online' and 'app'

Hi,

I'm working on creating a new add-on that appears in the job card on the online version and the app version of serviceM8. However, I'm having trouble the action to appear both on the online servicem8 AND the serviceM8. I can get it appear on one or the other by changing the action type in the manifest to 'online' or 'app' according to the documentation that you have.

Your documentation said that if I want to add multiple types I'd have to add another action. This hasn't work out for me since I don't think I have it right. How do I fix this?

Below is what I have.

"actions": [{
"name": "web app",
"type": "online",
"entity": "job",
"iconURL": "https://images.g2crowd.com/uploads/product/image/large_detail/large_detail_1db906bcf97a44c5901d2fea0428cf1f/callrail.png",
"event": "Hello_World_Event_webapp"
}],
"actions": [{
"name": "App",
"type": "app",
"entity": "job",
"iconURL": "https://images.g2crowd.com/uploads/product/image/large_detail/large_detail_1db906bcf97a44c5901d2fea0428cf1f/callrail.png",
"event": "Hello_World_Event_app"
}]