Discussions
Emulator only works once
about 7 years ago by Rick Glunt
I developed some code that is accepting WebHook notifications and I want to ensure I am processing the JSON correctly. So I
- Go into the emulator on the CorrigoPro Desktop site (https://am-desktop.corrigopro.com/Direct/Emulator).
- Select ‘Work order received’ from the dropdown for ‘Choose Event Type’
- Click the send button
- My code recognized a webhook notification for ‘Work order received’.
- Click the send button again to submit another wekbhook notification to my server. My server does not get another request.
- Refresh the emulator page (https://am-desktop.corrigopro.com/Direct/Emulator). And repeat steps 2 & 3. Still my server receives no new notification.
- Select ‘Work order accepted’ from the dropdown for ‘Choose Event Type’
- Click the send button
- My code recognized a webhook notification for ‘Work order accepted’.
- Click the send button again to submit another wekbhook notification to my server. My server does not get another request.
- At this point I cannot use the ‘Work order received’ or the ‘Work order accepted’ options from the dropdown because they no longer generate a new webhook notification to my server. I can only use the event types in the dropdown once.