On app install create custom object definition and relationship(s)
I am building a side bar app which collects some data and stores it in a custom object that is associated with a ticket number. I was wondering if there is a way to create the object definition and relationship(s) on app install or do I have to create them manually before I install the app?
You can do this my putting a requirements.json file in the route of your project.
Check out https://developer.zendesk.com/documentation/apps/app-developer-guide/apps_requirements/ to full details on what the file should contain.
One gotcha is if the requirements can’t be satisfied the app while installing via ZCLI, it will be disabled with no warnings. When you try to enable it will provide feedback.
I was able to create the custom object I need through the requirement.json file. I even went expanded on this to add fields that the app will be using. I noticed that forms arent mentioned as an item we could specify in the requirement.json file. Is there a way to specify a form as well? If not then thats fine. Creating a form is a lot easier than creating all the fields time and again.
Thanks for you help sir!
Please sign in to leave a comment.