1

So the EmailSendDefinition test via SOAP Perform method does not really offer this as an option, BUT if you feel comfortable with utilizing undocumented REST endpoints, there is one that you can use for this and it offers the option of a subjectPrefix. This API endpoint is actually utilized in platform for sending preview/tests, so I would be fairly ...


1

You should put ' ', but you don't need to escape them try that one https://{myWorkplaceDomainUsed}--sandbox.cs67.my.salesforce.com/services/data/v42.0/query/?q=select+Id+from+Contact+where+Email='apple+super@gmail.com'. If you want IN you can use it like this https://{myWorkplaceDomainUsed}--sandbox.cs67.my.salesforce.com/services/data/v42.0/query/?q=select+...


1

Cleaner to use the various serialize methods of the JSON Class. Also, feeding the JSON into https://json2apex.herokuapp.com/ that generates code for your is often a good choice. Your example JSON doesn't include any arrays; arrays are delimited by [...] - see e.g. https://www.json.org/json-en.html.


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