I'm trying to update the ccEmails field on WorkflowAlert table through tooling API, but I keep getting this error:

"message": "Element {}CcEmails invalid at this location in type WorkflowAlert",
"errorCode": "XML_PARSER_ERROR"

This is my payload:


   "Metadata": {
   "CcEmails" :  "test@mail.com",
   "description": "Send Contact Created Directly Email to Admin"



Any ideas?


CcEmails is an array. The documentation here is wrong to mention it as string . I did a get on that workflow alert and saw CcEmails as an array.

You have to use PATCH command to update the WorklowAlert.


  "Metadata" : {
    "ccEmails" : ["pjdev@gmail.com" ],
    "description" : "Integration",
    "template" : "unfiled$public/Integration_Error",
    "senderType" : "CurrentUser"

  "FullName" : "Integration_Information__c.Integration"

Note: in JSON you have to include, description,template ,senderType and FullName, else it doesn't allow you to update.

Also provide the existing value of Recipients from GET, else it would just clear them out.

| improve this answer | |
  • +1. I also observed that ccEmails was case sensitive. – Jayant Das Mar 5 '19 at 20:00
  • I'll give this a try. Thank you! – Brohan Mar 6 '19 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.