• shabd yadav
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi There!
I have a flow that is launched from a Case, does some tings, posts a comment to that case, and moves on.

If i put a case comment as normal (from the case) it sends the case owner an email notification of the comment.
But, when i have a flow create a new Case Comment, the case owner doesn't get the notification. The comment posts as expected, but no email is triggered.

And since this email is a system default...i can't have a flow action do it. 
Any suggesteions are greatly appreciated!

Thanks in advance. 

This is my Create Record Element 
createRecordCaseComment
Visualforce page:
<apex:column > <apex:commandLink action="{!deleteItem}" reRender="frmList"  oncomplete="updateCarts();"> Remove</apex:commandLink></apex:column>
JAVASCRIPT:
<script>      
         function updateCarts(){  
            var listId = "{!ids}";
             alert(listId);
            
        } 
        </script>

Controller
public string ids { get; set;}
public CartsController()
  { 
   ids= 'ABCDEF';   
  }
  public void deleteItem()
  {
    ids='123456';
  }

Result : updateCarts had call before action and show alert : 'ABCDEF';

How can javascript after action complete?