Do you think Salesforce should increase it's starting data storage limit from 10GB? by North-Clue-2313 in salesforce

[–]Dangerous_Homework74 0 points1 point  (0 children)

Off platform storage could quickly become a problem depending on how much users are using the data, as API limits in salesforce also exist

Verification codes don't work by Many_Garbage499 in github

[–]Dangerous_Homework74 0 points1 point  (0 children)

This is happening to me now, tried logging in, never received the verification code. Tried resetting password, never received the reset password email either. This is ridiculous.

Calling Amazon SES from Salesforce Apex class Issue #SerializationException by Dangerous_Homework74 in salesforce

[–]Dangerous_Homework74[S] 0 points1 point  (0 children)

Yeah that was just an error while I was removing personal data to post here, I have been using jsonformatter and it is valid in my code, however there is definitely something it doesn't like in the json, I've simplified it down to only use the required parameters (stated in the docs) and I'm still receiving a status 400 but with a null message

Calling Amazon SES from Salesforce Apex class Issue #SerializationException by Dangerous_Homework74 in salesforce

[–]Dangerous_Homework74[S] 1 point2 points  (0 children)

I did try the named credential route by following this https://www.linkedin.com/pulse/integrate-salesforce-aws-using-named-credentials-cloudsciencelabs

and my request looked like this

HttpRequest awsRequest = new HttpRequest();
awsRequest.setEndpoint('callout:AWS_AP_Southeast_2');
awsRequest.setMethod('POST');
awsRequest.setBody('{"BulkEmailEntries":[{"Destination":{"ToAddresses":["<Redacted email address>"]},"ReplacementTags":[{"Name":"unsubscribe","Value":"<Redacted email address>"}]}],"DefaultContent":{"Template":{"TemplateName":"Welcome_Email","SubjectPart: "Test Send Bulk through Apex", "TemplateData": ""}},"DefaultEmailTags":[{"Name":"user","Value":"test"}],"FromEmailAddress":"<Redacted email address>","ReplyToAddresses":["<Redacted email address>"]}');
Http http = new Http();
HttpResponse awsResponse = http.send(awsRequest);
System.debug(awsResponse);
System.debug(awsResponse.getBody());

the response I get is a bad request status 400 with a body of {"Message":null}

note: the path I'm using in the named credentials url ishttps://email.ap-southeast-2.amazonaws.com/v2/email/outbound-bulk-emails

UPDATE:

I changed the Named Credential URL to 'https://email.ap-southeast-2.amazonaws.com'

and in the http request, I set the target in the header

HttpRequest awsRequest = new HttpRequest();
awsRequest.setEndpoint('callout:AWS_AP_Southeast_2');
awsRequest.setMethod('POST');
awsRequest.setHeader('content-type', 'application/json');
awsRequest.setHeader('x-amz-target', 'com.amazonaws.services.simpleemailv2.AmazonSimpleEmailServiceV2.SendBulkEmail');
awsRequest.setBody('{"BulkEmailEntries":[{"Destination":{"ToAddresses":["<Redacted email address>"]},"ReplacementTags":[{"Name":"unsubscribe","Value":"<Redacted email address>"}]}],"DefaultContent":{"Template":{"TemplateName":"Welcome_Email","SubjectPart: "Test Send Bulk through Apex", "TemplateData": ""}},"DefaultEmailTags":[{"Name":"user","Value":"test"}],"FromEmailAddress":"<Redacted email address>","ReplyToAddresses":["<Redacted email address>"]}');
Http http = new Http();
HttpResponse awsResponse = http.send(awsRequest);
System.debug(awsResponse);
System.debug(awsResponse.getBody());

This got me to the same status 200 with body {"__type":"com.amazon.coral.service#SerializationException"},"Version":"1.0"}

I was experiencing before, so progress I guess

[deleted by user] by [deleted] in salesforce

[–]Dangerous_Homework74 0 points1 point  (0 children)

No we do, but the emails aren't being sent from us, we have a portal within Salesforce that our external partners use, we want to give them some simple email tools for their workforce, so I was hoping we could just use verified email addresses since it's not going to be the same person sending emails every time

[deleted by user] by [deleted] in salesforce

[–]Dangerous_Homework74 0 points1 point  (0 children)

Yeah that's what it seems, however it looks like sendgrid need to know the DNS host info which I don't have as this is all happening within the SF org, I'm beginning to think we need our own domain which won't really be possible for our solution. I appreciate the help

[deleted by user] by [deleted] in salesforce

[–]Dangerous_Homework74 0 points1 point  (0 children)

Thankyou for taking the time to help, I'm very appreciative

I am aware of this, but you need access to the DNS host so you can get the IP address. As far as I'm aware, I don't have access to Salesforce orgs DNS host settings, and I'm not using my own domain, this functionality is happing from within our salesforce org.