Symptom
OData API response for the Job Description field under job requsition entity contains HTML Tags. See below <b> html tags in the response.
"__metadata" : {
"uri" : "https://apisalesdemo4.successfactors.com/odata/v2/JobRequisitionLocale(111L)", "type" : "SFOData.JobRequisitionLocale"
}, "jobReqLocalId" : "111", "intJobDescFooter" : "<p> </p><p><em>Equal Opportunity Employer & Drug Free Workplace</em></p>", "extJobDescFooter" : "<p> </p><p><em>Equal Opportunity Employer & Drug Free Workplace</em></p>", "status" : null, "locale" : "en_US", "externalTitle" : "Supply Chain Manager", "extJobDescHeader" : null, "jobReqId" : "111", "intJobDescHeader" : null, "externalJobDescription" : "<b>Manager Job Purpose</b>: Accomplishes department objectives by managing staff; planning and evaluating department activities.<p></p><b>Manager Job Duties</b>:<p></p>
Environment
SuccessFactors BizX - Recruiting Management(RCM)
Reproducing the Issue
1. Login to SF instance> Admin Centre
2. Navigate to Integration Center > Edit the Report.
3. You can see that Job description field selected from JobRequisitionLocale entity fetching html code.
4. Same is being displayed in OData Response and in the report which is getting placed in the sftp server.
"__metadata" : {
"uri" : "https://apisalesdemo4.successfactors.com/odata/v2/JobRequisitionLocale(111L)", "type" : "SFOData.JobRequisitionLocale"
}, "jobReqLocalId" : "111", "intJobDescFooter" : "<p> </p><p><em>Equal Opportunity Employer & Drug Free Workplace</em></p>", "extJobDescFooter" : "<p> </p><p><em>Equal Opportunity Employer & Drug Free Workplace</em></p>", "status" : null, "locale" : "en_US", "externalTitle" : "Supply Chain Manager", "extJobDescHeader" : null, "jobReqId" : "111", "intJobDescHeader" : null, "externalJobDescription" : "<b>Manager Job Purpose</b>: Accomplishes department objectives by managing staff; planning and evaluating department activities.<p></p><b>Manager Job Duties</b>:<p></p>
Cause
You get html code in the OData API response and report because the Job Description has bold sentences and paragraphs.
In the given example, Job description has Manager Job Purpose in Bold.
See below Job description field on the req#111. You can see that Job description sentences are in bold.
That is the reason why we have <b>enclosing the text. We don’t remove HTML tags from the descriptions since results in loss of information. This is indeed the expected Behavior of how this OData API should function.
Resolution
If you do not want <b> html code to be present in the OData API response or in the report, please do not make any text bold in the Job Description fields. The same applies in other fields.
Keywords
OData API response html tags <b> hmtl tags Job Description field Integration Center , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem