1

I'm trying to invoke an action through the Force.com REST API but I haven't been able to figure out the correct syntax of the request body. I looked for an example of this command but didn't see any. Here is what I've got in a REST client:

POST 'https://na1.salesforce.com/services/data/v32.0/actions/standard/emailSimple' Content-Type: application/json 'Authorization : Bearer XXXXXXXXXXXXXXXXXXXX' {"emailAddresses":"[email protected]","emailSubject":"TESTING","emailBody":"message body"}

I get the following error: "Unrecognized field "emailAddresses" at [line:1, column:20]"

2
  • What does you emailSimple action do? It is telling you that emailAddresses is not a valid field. I could not find a standard SF action named emailSimple
    – Eric
    Commented Oct 23, 2014 at 0:24
  • emailSimple sends an email where you specify the subject, body, and recipients. It's in v32 of the API.
    – John75
    Commented Oct 23, 2014 at 13:10

1 Answer 1

2

You need to change it to:

{"inputs" : [{"emailAddresses":"[email protected]","emailSubject":"TESTING","emailBody":"message body"}]}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .