• Mr. Karate
  • NEWBIE
  • 20 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 7
    Replies
When opening our production developer console, the menus at the top show empty drop down when clicked.  Some logs show at the bottom but nothing is useable.  One cannot open or edit any file or make queries. 

The browser console shows these errors:

(/_ui/common/apex/debug/ApexCSIPage) Uncaught TypeError: Cannot read property 'addCls' of null main.js:1764
Sfdc.provide.log main.js:1764
(anonymous function) main.js:1576
log main.js:1761
a.log main.js:1761
l main.js:1659
(anonymous function) main.js:1660


Uncaught TypeError: Cannot read property 'addCls' of null ext-all.js:18
Ext.define.addBodyCls ext-all.js:18
Ext.define.handleItemBorders ext-all.js:18
Ext.define.beginLayout ext-all.js:18
Ext.define.resetLayout ext-all.js:18
Ext.define.invalidate ext-all.js:18
Ext.define.invalidate ext-all.js:18
Ext.define.flushInvalidates ext-all.js:18
Ext.define.run ext-all.js:18
Ext.define.statics.flushLayouts ext-all.js:18
Ext.define.statics.updateLayout ext-all.js:18
Ext.define.updateLayout ext-all.js:18
Ext.define.doLayout ext-all.js:18
Ext.define.statics.open ApexIDEPanels_Ext4.js:178
n ApexIDEPanels_Ext4.js:116
(anonymous function) ApexIDEPanels_Ext4.js:118
SfdcDevConsole.ToolingAPI.query.continuation ApexIDEPanels_Ext4.js:118
Sfdc.isFunction.Sfdc.isFunction.b.success ApexIDECore.js:32
b
No emails are being sent in our sandbox with Apex API.
We have Email Administartion Deliverablility Access level set to All email.
We are able to get emails with Test Deliverability.
The sendEmailResult.success is  true.
The only thing we haven't tried to fix this is delete the sandbox and create a new one.
I've been trying sending to multiple email account: gmail, mailinator, etc...
Any help is greatly appreciated.

Our testing Apex Code:

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(new String[] {'test@mail.com'});
mail.setSubject('test');
mail.setPlainTextBody('test plain');
 mail.setHtmlBody('test heml');
List<Messaging.sendEmailResult> results = Messaging.sendEmail(new Messaging.singleEmailMessage[] {mail});

I want to Create a  Validation Rule that Disallows Users taking ownership of records if they Are in the Same Role 

 

Example 

 

User A and User B are in the Same Role, So User B can't take ownership of records that are in User A's possession. 

 

Admins and Manager are able to take ownership though. 


Thanks in Advance 

I'm trying to run this query below, but the query times out if the date is further in the past than two days.  Could there be a problem with the table not indexing the column lastmodifieddate?  Is there an optimal query variant or a way to break up this query into smaller batches?  Our task table is very big fyi.

 

select id from task where lastmodifieddate > 2013-09-20T09:00:00-0700 and lastmodifieddate < 2013-09-20T10:00:00-0700 order by id limit 10

 

Thank you!

When opening our production developer console, the menus at the top show empty drop down when clicked.  Some logs show at the bottom but nothing is useable.  One cannot open or edit any file or make queries. 

The browser console shows these errors:

(/_ui/common/apex/debug/ApexCSIPage) Uncaught TypeError: Cannot read property 'addCls' of null main.js:1764
Sfdc.provide.log main.js:1764
(anonymous function) main.js:1576
log main.js:1761
a.log main.js:1761
l main.js:1659
(anonymous function) main.js:1660


Uncaught TypeError: Cannot read property 'addCls' of null ext-all.js:18
Ext.define.addBodyCls ext-all.js:18
Ext.define.handleItemBorders ext-all.js:18
Ext.define.beginLayout ext-all.js:18
Ext.define.resetLayout ext-all.js:18
Ext.define.invalidate ext-all.js:18
Ext.define.invalidate ext-all.js:18
Ext.define.flushInvalidates ext-all.js:18
Ext.define.run ext-all.js:18
Ext.define.statics.flushLayouts ext-all.js:18
Ext.define.statics.updateLayout ext-all.js:18
Ext.define.updateLayout ext-all.js:18
Ext.define.doLayout ext-all.js:18
Ext.define.statics.open ApexIDEPanels_Ext4.js:178
n ApexIDEPanels_Ext4.js:116
(anonymous function) ApexIDEPanels_Ext4.js:118
SfdcDevConsole.ToolingAPI.query.continuation ApexIDEPanels_Ext4.js:118
Sfdc.isFunction.Sfdc.isFunction.b.success ApexIDECore.js:32
b
No emails are being sent in our sandbox with Apex API.
We have Email Administartion Deliverablility Access level set to All email.
We are able to get emails with Test Deliverability.
The sendEmailResult.success is  true.
The only thing we haven't tried to fix this is delete the sandbox and create a new one.
I've been trying sending to multiple email account: gmail, mailinator, etc...
Any help is greatly appreciated.

Our testing Apex Code:

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(new String[] {'test@mail.com'});
mail.setSubject('test');
mail.setPlainTextBody('test plain');
 mail.setHtmlBody('test heml');
List<Messaging.sendEmailResult> results = Messaging.sendEmail(new Messaging.singleEmailMessage[] {mail});

Hello,

 

I'm having a problem sending an email message from the developer console or execute anonymous or final batch statments from within the sandbox.

 

I have successfully sent the email from the developer console in the production org, but i cannot do the same in the sandbox.

 

Does anyone know why i would not be able to send from the sandbox?

 

Here is the code:

 

Messaging.reserveSingleEmailCapacity(2);
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = new String[] {'email@domain.com'};
mail.setToAddresses(toAddresses);
mail.setReplyTo('email@domain.com');
mail.setSenderDisplayName('Salesforce Support');
mail.setSubject('New Case Created ');
mail.setBccSender(false);
mail.setUseSignature(false);
mail.setPlainTextBody('Your Case: has been created.');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

 

Thanks for your help.

I'm trying to use Messaging.sendEmail() in my sandbox and all indications are that it is working:

 

  • Messaging.SendEmailResult.isSuccess() returns TRUE
  • Messaging.SendEmailResult.getErrors() returns an empty list
  • Before/after calls to Limits.getEmailInvocations() indicate that one invocation is being consumed
  • Logs in the Developer Console show what I would expect to see -- the sendEmail() call followed by the body of the message

But the emails just aren't getting to their destination. I have another bit of code that has been around for a while and is quite similar, and it's working just fine -- I test it and an email arrives in my Inbox almost instantly.

 

What can I do to troubleshoot this further? Also, just to fill in some details, the basic architecture of the process I'm trying to automate here is as follows:

 

  • VisualForce email template called E
  • VisualForce page called P
  • code that invokes Messaging.sendEmail() is in the controller associated with P (in the constructor method)

When page P is loaded, the controller's constructor executes and sends an email using the email template E to a test Contact record. At first I was trying to attach a PDF generated by yet another VisualForce page but I commented out this functionality just to see if simplifying things would eliminate the problem. Still no emails in my Inbox.

 

I've also added a call to setBccAddresses() and passed it two additional email addresses of mine, on different domains and hosted by different services from the email address associated with the test Contact -- and the emails don't arrive in those mailboxes, either. All three email vendors provide very straightforward spam control so I have no reason to suspect that the emails are getting blocked -- it just seems like, somehow or other, Salesforce is failing to send these emails /after/ they leave the purview of Apex.

 

What can I do to troubleshoot this problem further?