Here's how you can break it down to figure out what’s happening and get back on track:
1. Double-Check the Trigger
Make sure the workflow is actually firing. It could be something as simple as the ticket subject not exactly matching. If you're using "Employee onboarding requests" as the subject, try making it more flexible by checking if the subject contains that phrase, rather than looking for an exact match. This should make sure it triggers whenever a relevant request comes in.
2. Check the Logs in Freshservice
Freshservice should be logging what's happening with your workflows. Head over to the automation logs in your settings, and see if it’s even attempting to run when you raise those test tickets. If there are no logs, it might mean the workflow isn’t triggering at all, which could point to an issue with how the conditions are set up.
3. Add Error Handling in Your PowerShell Script
To make sure you're catching any errors in your script, you can wrap it in a Try-Catch
block so it logs any issues directly. Even if nothing shows up in Freshservice, at least you’ll get some feedback from PowerShell. This might help you figure out why the file isn’t being created as expected.
Here’s a simple way to do that:
Copy code
Try { # Your script here } Catch { Write-Output "Error: $_" }
4. Test App Action Isn't Showing Anything?
If hitting the "Test App Action" doesn’t give you any feedback, that’s super frustrating! Try checking if the orchestration server is even receiving the command. There might be something going on with how it’s communicating with Freshservice—like a firewall, permissions issue, or network glitch. You could also add some extra logging or have the script generate a basic file (like a .txt
) just to see if the server is doing anything at all.
5. Try Simplifying the Workflow
You might want to strip down the workflow to its basics for testing. For instance, instead of running the full PowerShell script, start with something simple—like logging a message or creating a basic file. If that works, then you know the automation is triggering properly, and you can start adding back the more complex parts one by one.
6. Orchestration Server Health
Check if the orchestration server itself is healthy and running as expected. Since it went down once, it’s worth making sure it’s fully operational now. Sometimes even small hiccups with server permissions or connectivity can stop scripts from running.
7. Permissions on Both Ends
Make sure the account running your PowerShell script has permission to write files and do everything else it needs to do. Also, ensure the orchestration app in Freshservice has the correct permissions to interact with your PowerShell server.
8. Don’t Forget to Breathe!
Troubleshooting automation issues can be maddening, especially when you're not getting any clear errors to guide you. But try taking it step by step, focusing on one potential issue at a time. You’ll eventually find the missing piece.
If you're still stuck after trying these, it might be a good idea to reach out to Freshservice support. They can help dig deeper into the logs and provide more insight on what's going wrong.
Just adding to what Daniel already said, contact Freshservice Support. We had this issue as well and they resolved it together with our partner.
Ensure that your conditions for triggering the workflow (e.g., the subject containing "Employee onboarding requests") are being met. Test with exact phrases to rule out issues.
Run your PowerShell script directly on the orchestration server to confirm it works outside the automator context. Ensure it generates the .csv file as expected.