SAP Knowledge Base Article - Public

3456681 - Throwing Error in post call of EmailCollection Odata Service, if you use Double Quotes

Symptom

Error Message While using " " (Double Quotes) in Subject Field During Post call of EmailCollection API

Environment

SAP Cloud For Customer core applications

Reproducing the Issue

1. Open Odata Explorer
2. Go to Email Collection API
3. Select POST Method
3. Enter Subject with Double Quotes and Execute

You will See a Error Message in Dialog Box

Cause

Since OData internally uses JSON.  And Double Quote is a delimiter used by JSON object. 
Hence the error is Coming.

Resolution

To resolve the issue we need to Add an Escape sequence i.e '\'(Backward Slash) before every Double quote to make it work fine.

Keywords

Odata, Email, EmailCollection, Email Activities, Odata Explorer , KBA , LOD-CRM-SC-EML , Email , How To

Product

SAP Cloud for Customer core applications all versions