cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Push notification when Orders have been unassigned from technician

aziz96
Explorer

Accepted Solutions (0)

Answers (1)

Answers (1)

Christoph_Kurtz
Explorer
0 Kudos

Hello @aziz96,

I have implemented a similar scenario: I send out an email in case a supporting technician is unassigned from an activity.

For this, I compared the supportingPersons from old with them of new and determined the delta with the help of a JavaScript function. The results in the delta will receive the information about the cancelled activity.

Another way could be to check the service assignment delete instead the activity update. The issue with this approach: it could be that information you need for sending the notification are already deleted before you can catch them.

Therefore, I prefer the first attempt.

Best regards,

Christoph