JSON file not returning all data in the request
We use many additional "resource fields" in the Service Requests and I need to access these fields in a script. I have created a custom trigger which launches a Python script that reads the JSON file generated.
Problem: I only see the additional data when the ticket is edited NOT when its created
These steps are a summary of the current process:
Service Request is created and the additional resource fields are populated.
The JSON file data dump shows all the additional "Resource fields" as being blank.
Edit the request, set the trigger value to false & save.
Edit the request, set the trigger value to TRUE & save.
The JSON data dump shows all the "Resource info" data properly populated.
I have tried to set the trigger to Create only, Edit only, Create and Edit with the same outcome, the additional resource data is only passed when the request is edited not created.
How do I get the system to pass all the data when the ticket is created?
The Custom Trigger is set as follows:
- I am using the "Custom Trigger" to run a Python script which runs when a Custom field is set.
- The trigger is set to run on Create and Edit
- The Script file to run is set to py get_ticket_data.py $COMPLETE_JSON_FILE"
New to ADSelfService Plus?