I am using Http request and using json body as
$@“{{”“templateId”“: ““xyz””,”“saveAsActivity”" : true,““orgWideEmailAddressId”” :““sas””,““treatTargetObjectAsRecipient”” :false,““targetObjectId”” : ““asa””,““whatId”” : ““asa””, ““toAddresses”” : [““xyx@gmail.com””], ““entityAttachments”” : [““0986223dshg””]}}"
when I run the project the response that I get is “EmailResponseMake sure that senderId, recipientMobile, smsTemplateId or messageText are populated”, I have already hardcoded those values in json format. json validation doesn’t gives any error as such.
I am sending this json as a request body of http request to send an email, I am providing values of fields in json to send an email. I am not extracting anything form json
Still getting the same response “message”: “EmailResponseMake sure that senderId, recipientMobile, smsTemplateId or messageText are populated” after using what you have mentioned