Please enable JavaScript.
Coggle requires JavaScript to display documents.
SBX_autoCaseClosureBatch, Process Starts - Coggle Diagram
SBX_autoCaseClosureBatch
Select all
CUSTOMER CASES
that are not 'Nouveau'|'Clôturé'|'Reopened
Add to the list
setWithCaseIds
Get orders related to
cases in
setWithCaseIds
and add them to the list
setWithOrderIds
Collect logs from orders in
setWithOrderIds
that have
Data_Flow__c = 'Order Flow'
Log status
Success
setWithSuccessCaseIdsToProcess
Close order related cases
update records
2 more items...
Failed
setWithFailedCaseIdsToProcess
Add to Email body
Send Auto Case Closure batch process report
to
*Si-Salesforce@smartbox.com
*
If
Alteryx enabled
Automation_c = Customer Response Needed
status = AwaitingCustomerInfo
Add to the list
setWithCustomerResponseNeededCases
Select last 10 recent Tasks from cases in
setWithCustomerResponseNeededCases
Is Task modified date
longer than 4 days ago?
Close Task related cases
update records
Failed
Add record to
lstWithFailedCasesMessage
1 more item...
If
case status = AwaitingCustomerInfo
case lastmodifieddate of the case > 4 days
Add to the list
setWithAwaitingCustomerInfoCases
Select the latest 1 Email Message
related to cases
setWithAwaitingCustomerInfoCases
If
Incoming == false
status == 2 || status == 3
Close EmailMessage
related case
Send email to client
update records
Failed
1 more item...
Select the oldest 20 Email Message
related to cases
setWithAwaitingCustomerInfoCases
Select all
CUSTOMER CASES
that are not 'Nouveau'|'Clôturé'|'Reopened
processOrderRelatedCases list
Find
Orders
related
to cases on the list
Find successful
logs
related to found orders
Data_Flow__c = 'Order Flow'
Add the successful logs only
related cases to
cases to close list
If
status =
Waiting for Customer Info
If
lastmodifieddate of the
case
>= 4 days
Yes
processEmailRelatedCases list
Find
Email messages
related
to Cases on the list
If Email message
Incoming == false AND
(status == 2 OR status == 3)
Add the related cases
to the cases to close list
Close cases
1 more item...
Send email
to customer
Process
Starts