Run code only on app installation | Community
Skip to main content

Run code only on app installation

  • August 31, 2023
  • 1 reply
  • 0 views

Hello!

I am building a client-side support app with Zaf and React and I would like to run some code that creates a custom ticket field using the tickets API, when the app is being installed. Would that be possible?

And also, after creating it, I would need to store its ID somewhere in order to set and get its value with ZafClient (ticket.customField:custom_field_{ID}) when the app is being used by any user.

Thank you!

1 reply

  • Author
  • September 6, 2023

Thank you @ahmed11! This was what I needed.