SAP Knowledge Base Article - Public

3072688 - SAP Successfactors Job Profile Builder API JobProfile > JobProfileLocalizedData SectionID Value not available for Upsert

Symptom

When trying to create sections to add to a JobProfile created via API, Sections shortDescriptions, longDescriptions (under JobProfileLocalizedData) requires sectionId and sectionType to be created.

But this value is unknown and is autoassigned/generated by system


  • Question is how to create JobProfile and Update its sections e.g. shortDescription, longDescriptions if you dont know the sectionId ?
  • Where do you get the sectionId, sectiontype data for a newly created Jobprofile, so you can use these field values to upsert to them and data?


 "Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP Successfactors HXM Suite

  • SAP Successfactors Odata API


Reproducing the Issue

When you go to manage template from SF Frontend SF UI you can see the sectionId, for each sectionType. But after creating JobProfile, if you query and navigate to JobDescTemplate (via templateNav), it only shows externalCode, doesn't show any sectionIds for the sections.


1. Create New JobProfile :

{

"__metadata": {

  "type""SFOData.JobProfile",

  "uri""JobProfile('*')"

},

"externalCode""*",

"status""A",

 "name_en_US""Test",

    "name_es_MX""Test",

    "role""*",

     "subModule"null,

    "template""*",

    "templateNav": {

        "__deferred": {

            "uri""https://<api hostname>/odata/v2/TemplateEntity('*')/templateNav"

        }

    },

    "roleNav": {

        "__deferred": {

            "uri""https://<apihostname>/odata/v2/RoleEntity('*')/roleNav"

        }

    }

}


2. Query JobProfile with expands on shortDescriptions and longDescriptions



Cause

This is a product limitation, sectionId(internalId) gets the value of internalID of JobDescSection which is not exposed by the OData API.

Resolution

Since this is a product limitation,


- Please refer to KB 2090228 - How to Submit Ideas for SAP SuccessFactors Products, for product enhancement requests

OR below workaround can be considered.

  1.  Go to Manage Data and search for Job Template by specyfying the external code
  2.  Scroll down to the short/longDescription section and click on details
  3.  Scroll down to see the internalId -> this would be the section ID

In case the SectionId (internalId) is not displayed, please enable as follows:
i. Go to Configure Object Definition and search for Job Template Section
ii. Take Action and enable field internalId as "Read Only"


Now once you go back to Manage Data perform steps 1 to 3, you should be able to see the SectionId (internalId).

See Also

See Link  for SAP Successfactors Reference Odata Guide (LINK) for more details


Keywords

sectionId, JPB, JobProfile, JobProfileLocalizedData, internalId, JobDescTemplate, shortDescriptions, longDescriptions , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , LOD-SF-INT , Integrations , Product Enhancement

Product

SAP SuccessFactors HXM Suite all versions