Symptom
- When attempting to link a document to an email interaction using the document-service PATCH flow from - KBA 3497506 - How to Create Attachments Via Document Service API - the request returns HTTP 200 but the attachment is not saved
- A subsequent GET on the email interaction shows the pre-PATCH state with no changes persisted
- Attempting to update other fields such as subject or htmlContent via PATCH on the email interaction also returns HTTP 200 but no changes are persisted
Environment
SAP Service Cloud Version 2
Reproducing the Issue
- Follow the document-service PATCH flow from KBA 3497506 - How to Create Attachments Via Document Service API using the email-service endpoint
- POST to /sap/c4c/api/v1/document-service/documents to create a document record
- Upload the binary file to the returned upload URL
- Confirm the document status is ACTIVE and hostObjectType is user
- GET /sap/c4c/api/v1/email-service/emails/{emailId} and copy the ETag from the response header
- PATCH /sap/c4c/api/v1/email-service/emails/{emailId} with body {"attachments": [{"documentId": "{id}"}]}
- Response is HTTP 200, but a subsequent GET shows no changes — attachments remains empty and hostObjectType on the document remains user
Cause
Email interaction content is immutable after creation in SAP Service Cloud Version 2. Once an email interaction is created — whether via an inbound channel or the API — its content fields cannot be modified. This is the intended system behavior.
Resolution
The following fields can be updated via PATCH on an email interaction after creation:
- Involved parties: contacts, accounts, employees, individualCustomers, organizations
- relatedObjects
- Extension fields
Content fields — including attachments, subject, htmlContent, plainContent, toRecipients, ccRecipients, bccRecipients, and from — are read-only after creation and cannot be modified via PATCH.
The document-service attachment flow described in - KBA 3497506 - How to Create Attachments Via Document Service API - applies to the Case Service (/sap/c4c/api/v1/case-service/cases/{id}). It is not supported for email interactions. To attach a document to a case that contains an email, use the case-service PATCH endpoint instead.
See Also
Keywords
email service, patch, http 200, attachments not saved, adminData.updatedOn, adminData.updatedBy, interaction email, document service, not supported, etag, x-sap-crm-token, email api, persistence issue, related objects, extension fields , KBA , CEC-CRM-EML , Emails for SAP Sales/Service Cloud , Known Error
SAP Knowledge Base Article - Public