SAP Knowledge Base Article - Public

3292539 - PSM Release and OData from Perfect Store Scores

Symptom

You are working with xbo elements in a custom solution / you are working with OData and would like to access data from Perfect Store score Visits.

Environment

SAP Cloud for Customer

Cause

Perfect Store scores are not PSM released. The only option is to access them via OData services.

Resolution

  1. Get the Visit UUID from the VisitCollection ODATA Service by either filtering by SalesOrg or any preferred filter.
  2. Execute GET call on OData Service StoreValuationCollection https://<TenantHostName>/sap/c4c/odata/v1/c4codataapi/StoreValuationCollection with the filter ReferenceVisitUUID = UUID got from step 1 (You can also use ReferenceVisitID )
  3. Record the StoreLayoutID  from the StoreValuationConnection response
  4. Execute the GET call on ODATA Service SurveyCollection /sap/c4c/odata/v1/c4codataapi/SurveyCollection with the filter ID = StoreLayoutID from the step 3 
  5. Refer to https://<TenantHostName>/sap/c4c/odata/v1/c4codataapi/StoreValuationCollection and attribute TotalScoreValue.

Keywords

Perfect Store ; Score ; Scores ; PSM ; PDI ; Release ; oData ; ODATA ; Odata; OData ; , KBA , LOD-LE-PSP , Perfect Store , LOD-LE-SUR-EXE , Survey execution = runtime , How To

Product

SAP Cloud for Customer add-ins all versions