Change Conversation as "Private" when the external user replies to the Request

Change Conversation as "Private" when the external user replies to the Request

Recently one of our customers had the requirement to change the conversation to "Private" when the external user replies to the request.
Customer's workflow:
The request is created by a user who is inside the application.
Now the admin is forwarding the request to the external user and when this external user replies to the request---> Conversations are marked as public since when the external user replies he will be created as a user inside the application and hence the conversations are shown in public as this is the behavior.

We can achieve the customer's requirement with the help of deluge script:
Steps:
1. Admin--->Custom Functions--->Global Function.
   Create a global custom function as mentioned in the below image.
Note: Update the URL and Technician Key.

2. Admin--->Custom Function--->Notification Custom Function
    Create a Notification Custom Function as mentioned in the below image:

3. Admin--->Custom Trigger--->Notification Custom Trigger
    Create a Notification Custom Trigger with no condition as mentioned in the below image:


Now when the external user replies to the request, it will be added as a conversation in the request and the conversation will be in private.

Note: When the external user replies to the request, the External user's mail address should be added in the To or in the CC field
For eg: if reqi@outlook.com is an external user and he replies to the request, the external user must add his mail address in To field along with the incoming mail address.

Attached the script.

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Restrict Ticket creation from external email sender- Unknown Users

                        To parse the email from external email address. Follow the below configuration. We have to enable this option to accept "unknown email" (not setup on the system), under Admin > Self-service Portal. Also, select the below option as per your ...
                      • Reply from portal doesn't reflect under conversation

                        Scenario:    Reply send form portal will not be added as a conversation under the request. However the reply will be sent from the application and user can receive the reply. Error trace from logs and Solution : [NotificationToDesc] Exception ...
                      • How a email appends as conversation to existing request

                        The application append an email to a conversation based on the below criteria 1. Delimiter  Based on delimiter configured under Admin >> Mail Server Settings >> Delimiter If the email subject contains a delimiter matching a request ID, then it ...
                      • How to connect to external postgres(external DB)

                        1. From the postgres installed path navigate to bin folder and open a command prompt 2. Execute the command --> pg_ctl -D "C:\Program Files\PostgreSQL\10\data" start (Postgres server gets started) 3. Connect to DB using the command-->psql -U postgres ...
                      • Query to show last conversation and last notification in a request ( MSSQL )

                        Tested in Build MSSQL (14306) Query SELECT wo.WORKORDERID "Request ID", aau.FIRST_NAME "Requester", wo.TITLE "Subject", ti.FIRST_NAME "Technician", longtodate(wo.CREATEDTIME) "Created Time", (select conversationdescription.description from ...