I posted this in the Community forum, and @Zach suggested I post it here too…
I’ve started work on a PowerShell module to utilise the Freshservice API to manage tickets. I intend to add more functionality when I can, but at the moment it will work with the APIs concerned with tickets, conversations, requesters, agents, groups, service catalog items, custom objects, locations and departments.
Hey Les. I am working on a Powershell Module for Freshservice as well but haven’t posted yet. We could probably combine forces to put together a well tested module. Here are the functions developed:
I concentraed on getting it working with tickets first, adding in requesters, agents, groups, service catalog items and custom objects - but I see you’ve also covered areas I haven’t got to yet!
If you look at mine on Github, I’ve broken down the various modules into their own nested modules:
FreshAPI.CustomObjects.psm1
FreshAPI.Departments.psm1
FreshAPI.Locations.psm1
FreshAPI.Requesters.psm1
FreshAPI.ServiceCatalog.psm1
FreshAPI.Tickets.psm1
These mainly follow Fresh’s API documentation, though the requesters module also includes agents, roles and groups, whilst tickets also includes conversations.
The FreshAPIv2.psm1 module contains functions that make the GET/POST/PUT/DELETE calls to the API, with some error handling (e.g. waiting before resubmitting a 429 request), along with some other supporting functions.
Take a look and let me know what your thoughts are.
I am really liking this Module. We use it to update User objects in Freshservice to match users to their location. When will you get a chance to add the Asset management. I could really use that feature to manage assets. looking forward to see more modules.
If I remember righthly, assets also involves products, and therefore vendors, and a few other bits. We’re you looking for software, contracts and purchase orders too?
I’m not sure when I can get them done, but intend to spend some time on it soon.
Still chipping away at my module and hope to have it ready for release shortly and will update this thread. With Workspaces coming out, there will be changes to the APIs as well, so waiting for the documentation to be updated.