• Mugdha Ralegaonkar
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
Hi

We have a noreply@something.com email address which is used as a sender email address in the code.
As the emails to this email address are not monitored/ received/sent, how to verigy this when added in a org wide email address list?
 
We have setup assignment rules and also setup default case owner from support settings. We are adding case comments through REST API call from external system and whenever case commet is added, it is resetting the case owner of the case by firing the assignment rules. If an agent has aready taken ownership of the case , when comment is added that ownership goes back to the queue as per the assignment rules and it is not helpful. I learnt that whenever API call takes place it fires assignment rules thats how salesofrce works. So, 1. first workaround we tried creating a checkbox, setting it to false by default and adding condition in the assignment rule saying run the rules only when checkbox is false. And we are sending the checkbox vale as true ONLY when comment is added from the API so that way assignment rules won't work. --> It did not work, although the value is coming as true, assignment rules still fires (As per sfdc standard behaviour) and it doesnt meet any of the rule criteria so it assigns default case owner defined in support settings.

second workaround we tried is uisng the trigger before inserting the case comment and setting the rule to false using below code. after activating the trigger, and testing the scenario.. the owner is still getting replaced when comment is added. Any suggestion would be of GREAT HELP!!

trigger test on CaseComment (before insert) {

List cc = new list();

for (CaseComment cd : Trigger.new) { Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule = false; cd.setoptions(dmo); cc.add(cd); }

insert cc; }

Thanks!!
We are trying to automate the testing in salesforce using selenium tool but it seem that it doesnt deal with the psuedo elements like dropdowns/picklists, so those has to be clicked manually.
Is there any workaround/solution for this problem?
Our team has tried  xpaths, css, id, etc to attempt to trick Selenium into selecting the pulldown,but no luck so far, even the selenium IDE add on fails.
Any inputs would be helpful.
Thanks!
 
Hi

We have a noreply@something.com email address which is used as a sender email address in the code.
As the emails to this email address are not monitored/ received/sent, how to verigy this when added in a org wide email address list?
 
We have setup assignment rules and also setup default case owner from support settings. We are adding case comments through REST API call from external system and whenever case commet is added, it is resetting the case owner of the case by firing the assignment rules. If an agent has aready taken ownership of the case , when comment is added that ownership goes back to the queue as per the assignment rules and it is not helpful. I learnt that whenever API call takes place it fires assignment rules thats how salesofrce works. So, 1. first workaround we tried creating a checkbox, setting it to false by default and adding condition in the assignment rule saying run the rules only when checkbox is false. And we are sending the checkbox vale as true ONLY when comment is added from the API so that way assignment rules won't work. --> It did not work, although the value is coming as true, assignment rules still fires (As per sfdc standard behaviour) and it doesnt meet any of the rule criteria so it assigns default case owner defined in support settings.

second workaround we tried is uisng the trigger before inserting the case comment and setting the rule to false using below code. after activating the trigger, and testing the scenario.. the owner is still getting replaced when comment is added. Any suggestion would be of GREAT HELP!!

trigger test on CaseComment (before insert) {

List cc = new list();

for (CaseComment cd : Trigger.new) { Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule = false; cd.setoptions(dmo); cc.add(cd); }

insert cc; }

Thanks!!
Hi,

I am new to apex and coding as well. I want to know how to create case record when user is done with the chat through live agent and clicks on end chat button.