Symptom
When the “Disable Execution Actions Before Check-In” setting is enabled, users cannot edit or submit survey results through the C4C UI when the related visit has not been checked in, and the Submit button remains disabled.
However, through the Survey Response API, survey responses can still be updated or completed even when the related visit is not checked in. The API does not perform the corresponding check-in validation or return an error, resulting in inconsistent behavior between the C4C UI and API.
Environment
SAP Cloud for Customer
Reproducing the Issue
- Enable the scoping/setting “Disable Execution Actions Before Check-In”.
- Open a visit that is not checked in and attempt to edit/submit a related survey in the UI; observe that editing is blocked and the submit action is disabled.
- Use the OData API to PATCH a survey response status (for example, to complete) or to PATCH a survey question answer for the same visit.
- Observe that the API request succeeds and the survey data is updated without an error, despite the visit not being checked in.
Cause
As per current system design, the OData service for survey updates does not consider the visit status; therefore, no validation is enforced for check-in when updating survey responses via API.
The visit check-in status is not validated by the OData service when performing updates to SurveyResponse or SurveyQuestionAnswers. Therefore, survey responses can be updated through the API even when the related visit has not been checked in.
Resolution
This is standard, by-design behavior.
If alignment with the C4C UI behavior is required, the integration layer should implement a validation to check the visit status before sending OData update requests. If native validation within the backend/API is required, this can be submitted as a feature request through the SAP Product Influence channel.
See Also
Keywords
C4C, Survey, Visit, Check-In, Disable Execution Actions Before Check-In,Odata, SurveyResponse, Surveyquestionanswers,Submit Disabled, Validation, By Design , KBA , LOD-LE-SUR , Survey , Problem
SAP Knowledge Base Article - Public