Reopening case automatically when a new e-mail is received

Good afternoon,

We would like to reintegrate the reopening of cases when an answer is written to a closed case and set it back to the administrator mode and change the status to "new".

I have found the following thread where I also replied to: 

 How to reopen a case automatically when a new email is received(using Process Definitions)? 

But the zipfile is currently not working anymore for our sugar instance 13.0 and I would like to reïntegrate this module package into our instance again. I have replied to this case but as the dates back to more than 2 years ago and there has not been a reply I just started a new thread. (I apologize if this is a bit overdone, but we would like to fix this as soon as possible in our instance)

I have discussed the pros and cons as mentioned in this chat with our team for not using logic hooks, but we want to communicate across our company when an e-mail is received on a closed case, the case re-opens automatically and is set back to new and to administrator. Therefore we could use SugarBPM I think. 


We are currently on Sugar cloud so we cannot use logic hooks ourselves to design this, but before we contact our SugarCRM partner I would like to see if it is possible to user SugarBPM for this. 

If possible, is there someone already using SugarBPM to create this?

Thank you in advance for your answer and of course help!

Best regards,

Maike Mak 

Parents
  • Hi  ,

    with the "Pending Processing" field at the case level, you should be abble to set your BPM and reopen the case if this one is closed.

    You can take a look a this BPM : https://support.sugarcrm.com/knowledge_base/sugarbpm/process_definition_setup_case_follow-up_date_management/#Customer_Notification_of_Case_Status_Change that is embedded within your sugar instance and look at "Inboud Email Received While Pending Input".

    You will see that this case field is a good trigger for your case.

    Fred

  • Goodmorning Fred,


    Thank you very much for your reply and assistance!

    I am still quite new to SugarBPM and I am planning on following the SugarBPM course from admin fundamentals next month. However I still have some difficulty grasping how to create the BPM process.

    I created the workflow as follows:

    I created the starting module as cases. Criteria: Case status is equal to closed as I only want closed cases to be reopened again. I chose updated records only because the case is already there, but only needs to be updated. 

    Secondly I created the incoming e-mail event to be any message that is equal to incoming: 

    then as follows, I want the action to be the following: the status of the case is changed to new and the assigned to will be the administrator:

    After this I thought the process will end because the process has been executed and reopning and reassigning the case back to administrator is what I want it to do.

    Sorry for the many questions and to bother! , but I am trying to understand if my BPM process is making some sense. I also checked the SugarBPM stock template but I didn't find the customer notificaton of status change BPM process in our instance. 

    Thank you so much again in advance for your help and answer!

    Best regards,

    Maike Mak 
     

  • Hi  ,

    at first, you are not bothering anybody. This is a community and I am please to help as I am glad to guys here to help me when I am stuck.

    According to my opinion, I will merge your 2 first steps, to avoid having a huge number of process running for ALL your cases when most of them won't get another feedback.

    So my initial condition will be more something like ( I decide to use ALL UPDATES because no records will be created CLOSED with a PENDING PROCESSING value BUT I want it to be re-triggered maybe more then once for a record that can be OPEN - CLOSE - REOPEN - CLOSE - REOPEN etc.)

    Then, you are right with the CHANGE FIELDS box, where you shoud

    • set the status to NEW (or maybe another custom status to highlight the re-open cases)
    • reset the Pending Processing field (so uncheck the box)
    • if you want you can also re-assign the case here OR you can have another workflow that will do it with advanced rules (for instance round-robin or according to some of the case fields)

    Finally, the end.

    I hope it helps. If you need me to share a sample BPM file that you can import, direct message me.

    Fred

  • Good afternoon Fred, I would like to come back to this topic as we are now facing the following in Sugar: we have to double close a case before it is actually closed. I think this might have something to do with the bpm process that I uploaded. Before this issue did not occur. I already did a repair and rebuiltd of the system and asked everyone to delete their cookies. Unfortunately that did not provide us luck. It is only the first time that it happens after a case is closed that it reopens again. The second time they press the close button, the case closes and does not reopen. 

    Thank you again in advance for your answer!

    Best regards,

    Maike Mak 

  • Hi Maike,

    can you check the AUDIT LOG for your case to understand what happened to this case status and why you have to close it twice (to see if the BPM we designed together is the one that re-open the case after the first close ; if so, we will see how exclude that scenario).

    Fred

  • Hi Frédéric,


    Thank you for your reply and my sincere apologies for my belated reply.

    I checked the audit log and that one is as follows: 

    (I blurred the e-mailaddresses of my coworkers and their names): 

    I  do see the case reopen again after it has been closed (under the status bar)

    Is there a way to change this in the BPM workflow? 

    Thank you in advance again for your answer.

    Best regards,

    Maike Mak 

  • Hi  ,

    I can see that the BPM was doing the right change at 11:34 (from closed to new).

    I don't understand who changed the status from new to closed at 11:38. Nothing is displayed on the "FROM" column ; is it because you hide it or is it empty ?

    Is there a hook or something else that was developped in your instance ?

    Fred

  • Hi Fred,

    I wiped out some of the texts under "bron"because it contained information about our clients. In the screenrecording below I created a test case to show what happens to the case.


    We do have two other BPM processes running on cases but I am not sure if they could cause this problem: 

    1 is made to assign the incoming cases to Administrator so my coworkers can see if a new case comes in. Secondly we use this one in a report so we can see the new cases that have not been assigned to one of my coworkers yet. 

    One other BPM process we have running and that is when a reply comes on a case, the assigned employee receives an email that the client has replied on a currently existing case. 

  • Hi Maike,

    we experimented sometimes issues with several BPM running concurrently.

    Can you try to had a ONE MINUTE WAIT event after the INCOMING EVENT, before the UPDATE CASE boxes, to see if a delayed action can avoid this issue ?

    Another idea would be to turn off the other BPM related to cases, to see if the issue still happening with only the reopen case BPM ?

    Fred

  • Hi Fred,

    Thank you for your response, I created a 1 minute wait event after the incoming event and before the update case, but it seems to only make the reopening of the cases longer. For example, now we have to wait for 5 minutes before it reopens.

    As a trial I stopped the reopening case workflow. When this workflow is inactive, the cases do close with only one click, so it seems to come from the reopening cases workflow.

    Thank you again in advance for your answer!


    Best regards,

    Maike 

  • My bad!

    I forgot to refresh metadata to v13 before clicking "generate" in Logic Builder

    here is the zip, I tested it installation on 13.3, should work for you

    pls feel free to use

    8080.z20240329_flowchart_lb6606d3904e3114_10412513.zip

    Best Regards,
    Dmytro Chupylka

    integroscrm.com
    We make work in Sugar CRM system faster, more convenient and efficient

  • Hi Maike,

    can you export your BPM and put it there, so I can take a look ? Or at least send it to me using direct message ?

    Fred

  • Hi Fred,


    Sorry, I was out of office last week and didn't read your message until now. I just exported the BPM and added it in the attachment. 

    Thank you again for looking into it and your answers!

    Best regards,

    Maike Reopen_case_automatically_after_closing (1).bpm

  • Hi Dmytro,


    Thank you again for the update! and sorry for my belated reply due to my out of office. I will look into both options with BPM and the Logic hook! 


    Best regards,

    Maike 

Reply Children