• \dev\null
  • NEWBIE
  • 15 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 7
    Replies
Created a controller extension for the standard case controler. we set the OwnerId using custom save logic, but it doesn't seem to matter what i do, Queue Notifications are never sent out to members.
 
//A place to store all our custom case logic that should be executed before
    //a save into the DB
    @TestVisible private void saveLogic(){
        Database.DMLOptions dlo = new Database.DMLOptions();        
		dlo.assignmentRuleHeader.useDefaultRule= true; 
		dlo.EmailHeader.triggerAutoResponseEmail = true; 
		dlo.EmailHeader.triggerOtherEmail = true; 
		dlo.EmailHeader.triggerUserEmail = true; 
        Case c = (Case)caseController.getRecord();
        //set the case owner to whatver the assignee is set to
        c.OwnerId = this.AssigneeId;
        c.setOptions(dlo);
        caseController.save();
    }
I am aware of the odd Queue settings in regard to the "Send email to members" checkbox and the four states it can represent with the Queue Email text field. I'm just not sure what it is exactly that i'm missing here in regards to why it won't fire an email when i set the ownerId to a Queue.

This is in a production Org, all other email operations seem to be fine.
New to Salesforce so I'm sorry if this is a dumb question. But I'm trying to write a trigger to help set some required fields on our Case object when we receive an email using email to case. I just can't understand why the trigger isn't firing in my debug logs.
 
trigger TestEmail2Case on EmailMessage (before insert, before update) {
    for(EmailMessage e : trigger.new) {
        system.debug(LoggingLevel.INFO, '>>>>> email:' + e);
    }		
}

​I've read a couple other instances of people using the before insert on email message to help tie into email to case but it just doesn't seem to be firing for me. Any help would be apprecited. Thanks!
Can anyone actually get this trailhead to work?
https://developer.salesforce.com/trailhead/project/slds-lightning-components-workshop/slds-lc-4

​I've been trying to learn lightning / lds and maybe i'm missing something?

Component Code:
<aura:component >
  <aura:attribute name="class" type="String" description="CSS classname for the SVG element" />
  <aura:attribute name="xlinkHref" type="String" description="SLDS icon path. Ex: /assets/icons/utility-sprite/svg/symbols.svg#download" />
  <aura:attribute name="ariaHidden" type="String" default="true" description="aria-hidden true or false. defaults to true" />
</aura:component>
Render code:
({
	//Overwrite default render function for svg component
	render: function(component, helper){
		var classname = component.get("v.class");
		var xlinkhref = component.get("v.xlinkHref");
		var ariaHidden = component.get("v.ariaHidden");

		var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
		svg.setAttribute('class', classname);
		svg.setAttribute('aria-hidden', ariaHidden);
		svg.innerHTML = '<use xlink:href="'+ xlinkhref +'"></use>';
		return svg;
	}
})
App Code
<aura:application >
  <div class="slds">
    <ltng:require styles="/resource/SLDS0120/assets/styles/salesforce-lightning-design-system-ltng.css" />
    <span class="slds-icon__container slds-icon-standard-account">
      <c:svg class="slds-icon" xlinkHref="/resource/SLDS0120/assets/icons/standard-sprite/svg/symbols.svg#account" />
        <span class="slds-assistive-text">Account Icon</span>
    </span>
  </div>
</aura:application>
Error:
Error during init : Object doesn't support property or method 'replace'

​Also, enabling debug on lightning components doesn't seem to make a difference, no error is thrown in console so I'm not sure really how to even find my JS in the console sources.
 
Created a controller extension for the standard case controler. we set the OwnerId using custom save logic, but it doesn't seem to matter what i do, Queue Notifications are never sent out to members.
 
//A place to store all our custom case logic that should be executed before
    //a save into the DB
    @TestVisible private void saveLogic(){
        Database.DMLOptions dlo = new Database.DMLOptions();        
		dlo.assignmentRuleHeader.useDefaultRule= true; 
		dlo.EmailHeader.triggerAutoResponseEmail = true; 
		dlo.EmailHeader.triggerOtherEmail = true; 
		dlo.EmailHeader.triggerUserEmail = true; 
        Case c = (Case)caseController.getRecord();
        //set the case owner to whatver the assignee is set to
        c.OwnerId = this.AssigneeId;
        c.setOptions(dlo);
        caseController.save();
    }
I am aware of the odd Queue settings in regard to the "Send email to members" checkbox and the four states it can represent with the Queue Email text field. I'm just not sure what it is exactly that i'm missing here in regards to why it won't fire an email when i set the ownerId to a Queue.

This is in a production Org, all other email operations seem to be fine.
New to Salesforce so I'm sorry if this is a dumb question. But I'm trying to write a trigger to help set some required fields on our Case object when we receive an email using email to case. I just can't understand why the trigger isn't firing in my debug logs.
 
trigger TestEmail2Case on EmailMessage (before insert, before update) {
    for(EmailMessage e : trigger.new) {
        system.debug(LoggingLevel.INFO, '>>>>> email:' + e);
    }		
}

​I've read a couple other instances of people using the before insert on email message to help tie into email to case but it just doesn't seem to be firing for me. Any help would be apprecited. Thanks!
Can anyone actually get this trailhead to work?
https://developer.salesforce.com/trailhead/project/slds-lightning-components-workshop/slds-lc-4

​I've been trying to learn lightning / lds and maybe i'm missing something?

Component Code:
<aura:component >
  <aura:attribute name="class" type="String" description="CSS classname for the SVG element" />
  <aura:attribute name="xlinkHref" type="String" description="SLDS icon path. Ex: /assets/icons/utility-sprite/svg/symbols.svg#download" />
  <aura:attribute name="ariaHidden" type="String" default="true" description="aria-hidden true or false. defaults to true" />
</aura:component>
Render code:
({
	//Overwrite default render function for svg component
	render: function(component, helper){
		var classname = component.get("v.class");
		var xlinkhref = component.get("v.xlinkHref");
		var ariaHidden = component.get("v.ariaHidden");

		var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
		svg.setAttribute('class', classname);
		svg.setAttribute('aria-hidden', ariaHidden);
		svg.innerHTML = '<use xlink:href="'+ xlinkhref +'"></use>';
		return svg;
	}
})
App Code
<aura:application >
  <div class="slds">
    <ltng:require styles="/resource/SLDS0120/assets/styles/salesforce-lightning-design-system-ltng.css" />
    <span class="slds-icon__container slds-icon-standard-account">
      <c:svg class="slds-icon" xlinkHref="/resource/SLDS0120/assets/icons/standard-sprite/svg/symbols.svg#account" />
        <span class="slds-assistive-text">Account Icon</span>
    </span>
  </div>
</aura:application>
Error:
Error during init : Object doesn't support property or method 'replace'

​Also, enabling debug on lightning components doesn't seem to make a difference, no error is thrown in console so I'm not sure really how to even find my JS in the console sources.