DG Analytics - Last Assignee Automation

Create a new function

  1. Follow these steps to create a new function in Zoho.
    Function Name: DG Analytics
    Description: Update last assignee for DG Analytics

  2. Enter the argument mapping as below:

2018
  1. Click "edit" and copy paste the below JSON. Change the "action_id" to your DG flow ID.
inputs = Map();
inputs.put("Id",ticketId);
inputs.put("Email",Email);
inputs.put("TicketNumber",TicketNumber);
inputs.put("Channel",Channel);
inputs.put("Status",Status);
inputs.put("ModifiedBy",ModifiedBy);
headers = Map();
headers.put("Content-Type","application/json");
data_info = Map();
data_info.put("action_id","ENTER_YOUR_FLOW_ID_HERE");
data_info.put("inputs",inputs);
data_info.put("external_id",toString(TicketNumber));
response = invokeurl
[
	url :"https://flow-server.us.dgdeepai.com/execution"
	type :POST
	parameters:data_info.toText()
	headers:headers
	connection:"digitalgenius"
];
info response;

Create a new workflow rule

  1. Follow these steps to create a new workflow rule in Zoho.
    Rule name: Update DG Analytics.
    Description: Update last assignee for DG Analytics.
  2. Select the action to execute on: Field Update.
2076
  1. Add the criteria: status is CLOSED.
  2. Add the action: select the custom function you built in the previous section.
  3. Click save.
2102