ServiceNowDevProgram / 911-Dispatcher-Workspace

https://github.com/ServiceNowDevProgram/Hacktoberfest
4 stars 42 forks source link

On create/update of emergency case assignment, send email notification #13

Closed sychi77 closed 11 months ago

sychi77 commented 11 months ago

Flow created to Trigger on Emergency Created or Updated where (Assignment group is not empty ; Assigned to is not empty ) Send Email either to Assigned to person (if provided in Emergency record) or Assignment Group (if Assigned to is not provided)

niamccash commented 11 months ago

I'm approving this. The flow works - an email is triggered/sent when the 'Assigned to' field is filled in.

But since it's set to only run once, it only notifies the first 'Assigned to' person but doesn't notify anyone else assigned to the ticket if the ticket is reassigned.

Also, there seems to be an issue the data pills in the email notification generated: image

@sychi77 perhaps you can consider updating the Flow in a follow-up PR.

hentonjd commented 11 months ago

@sychi77 and @niamccash; Just pulled the latest copy of this repo and it appears that the Flow is missing from the package. Can you check and see if it's been overwritten by a more recent merge? I'm new to this. Thanks

niamccash commented 11 months ago

@hentonjd I see it in your repo at https://github.com/hentonjd/911-Dispatcher-Workspace/blob/main/72c87f9547a9b510dca24587746d431d/update/sys_hub_flow_189ad4ef0725311019e8f7108c1ed082.xml

Don't forget to update your instance with the code in the repo via "Apply Remote Changes" image

hentonjd commented 11 months ago

@niamccash ; Thanks for pointing that out Mia. I ended up having to delete the application from my PDI, and re-import it and that resolved the issue. Great learning experience! TY