4

This is expected behavior the User fields you are referencing are the sending user fields User fields are also known as Sending User fields for administrators and users with the “Manage Users” permission. Use them in email templates when referencing the person sending the email. https://help.salesforce.com/articleView?id=merge_fields_email_templates_cex....


3

Typically what you would do is: Define a general –or specific– purpose email address on your email server, e.g.: info@yourcompany.com or support@yourcompany.com and setup an automatic forward to your email service long address. You then register your friendly email address as a org-wide default email address in Salesforce setup. Note: You will be ...


2

inline does represent an inline file, which should almost always be a gif, png, or jpeg (most clients won't inline non-image resources). However, context could be important. A user could inline a screenshot of an error message or something, for example. I can't say if that's a common use case for you, so you'll need to decide if you want to ignore such ...


2

that error is because you have assigned to a single sobject (Invoice_Distribution__c pull) the result of a query that returns more than one record. My suggestion would be to check why your query returns more than one result or limit the query to 1. Besides that, you have issues in your code. You have done two queries inside a loop, which is not recommended,...


1

This should work without issue. Suppose your E2C email is support@mycompany.com The E2C configuration binds this to some SFDC-generated address looking like blahblah..na56.salesforce.com If you define an Email Service foo, there is a SFDC generated address that looks like foo....apex.na56.salesforce.com Now, in your company's mail server, you set up auto-...


1

you didnot close the newParentOpp addition. newParentopp.add(new Parent_Opportunity__C(Description__C = myPlainText, Priority__C = '1', Subject__C = email.subject); and then try 😊


1

The error is saying that your List is too short to have any values at index 1. It may be empty or only contain one element. You will need to update the code to handle the possibility that Attachment.Name doesn't contain 'V1.'. If the Name doesn't have this string in it, then split takes the entire Name and places it into a List at the first index. String ...


1

As far as I can see there is a new default for any org created after Winter'21 (which is the release being deployed by Salesforce). Long story short: I think you cannot change it, if your org is already at Winter'21 release. Check the Email-to-Case documentation for more info: Insert Thread ID in the Email Subject NOTE Any org created after the Winter '21 ...


1

Use JSON.deserializeUntyped instead (this gives you Map<String, Object> instead): NPS__c response = new NPS__c(); Map<String, Object> m = (Map<String,Object>) JSON.deserializeUntyped(JSON_from_email); for (String f : m.keySet()) { response.put(f, m.get(f)); } insert response; Also, if the payload already has the correct format, you ...


1

Have you tried checking the emailmessage object records? and regarding the email retention I found a help article that states "For every email with attachment sent from an org, records are created in the EmailMessage object and the Attachment object" and "If attachments were not deleted by an end-user, attachments can be found in the search ...


1

To follow up on your comment thread and exploiting sfdcfox's answer: (and supporting more than one attachment) global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email,Messaging.InboundEnvelope envelop){ Messaging.InboundEmailResult result = new Messaging.InboundEmailResult(); for (InboundEmail.BinaryAttachment ...


1

You can check the content type before attempting this conversion: for(Integer i = 0, s = email.binaryAttachments.size(); i < s; i++) { if(email.binaryAttachments[i].contentType.startsWith('text/')) { // this is a text file of some sort // } }


1

You didn't mention in which one of your SOQL queries this exception occurs, but I assume it happens in either of them. To resolve this, you must either LIMIT your SOQL queries to return only 1 record, or assign the query output into a List and then select which of the retrieved records you'd like to use, per your use case. Also, you'll want to run the ...


1

Given issue occurred a lot of times before in my experience. Based on my observations, if User Trace Flags were created before someone logs in as LMA subscriber support login, then debug logs will not contain logs message content from managed package. In order to obtain logs, it is necessary to delete existing User Trace Flag, and recreate new one. P.S. ...


1

So the main limitation you will find here is the amount of Heap Space required of transforming your CSV into a workable Apex Type to parse through. That said as long as the combination of Rows and Columns in your CSV doesn't exceed that limit, either approach is fine. I actually did this as an AppExchange app a while ago and used the first approach. EDIT (...


1

This answer doesn't completely answer the OP's question, but it does allow for changing labels of emails being sent by users responding to Cases. The OP's question is partly an issue of legalities and source verification that occurs when phishing emails are sent which cannot be avoided. One would need to use "Sent on behalf of of xxxxx by yyyyy" to work ...


1

This error indicates that the packaged Apex Class has not yet been compiled. Typically, Apex Classes are compiled when saved. However, Apex Classes associated with Managed Packages cannot be saved so they rely on the runtime engine to compile them, either when they are first used or at some point automatically after they are installed. If you encounter this ...


Only top voted, non community-wiki answers of a minimum length are eligible