- Edited
How can i fill the variables in userdefined forms with api connection ?
How can i fill the variables in userdefined forms with api connection ?
Haven't played with the API yet, so my recommendation, unless someone else can assist here, is to look the docs provided by the devs:https://github.com/osTicket/osTicket-1.8/blob/develop/setup/doc/api.mdhttps://github.com/osTicket/osTicket-1.8/blob/develop/setup/doc/api/tickets.mdAdditionally take a look at this article from forum moderator ntozier on his webpage - a bit dated but should still be mostly valid:http://tmib.net/using-osticket-1812-api
We are still working with the API successfully buth we have problems to add data to custom fields in custom forms. In the integrated forms it works fine.
I insert data with database calls. Unless you need it to populate the editable form and not yet save to the DB.I have a script that runs every night and compares 45k users information in OST with the information in our HR database. Then I take the set of users where there is a difference and I rewrite the data into the OST database. User information in OST is stored in forms and we used custom forms to supplement the OST info to have all of the fields we need.