Skip to Content

How to configure push notification with Asset Manager 2.0

Dear Expert,

I have followed those intructions: SAP Asset Manager Installation Guide chapter 5.1

I am getting a error 400 when invoking the SCPms Push Notification API with the following parameters:


{ "notification": { "alert": "{\"title-loc-key\":\"WO_TITLE_KEY\",\"title-loc-args\": [\"4000020\"],\"loc-key\":\"WO_BODY_KEY\",\"loc-args\": [\"4000020\"]}", "customParameters": { "apns.customValues": "{\"ObjectType\":\"WorkOrder\"}" } }, "users": ["S0009485XXX"] }

The json data seems incorrect. it is the output of the /SMFND/CL_CORE_OTRIG_CPMS_PUSH build_json_data()

If I change it to:

{ "alert": "{\"title-loc-key\":\"WO_TITLE_KEY\",\"title-loc-args\": [\"4000020\"],\"loc-key\":\"WO_BODY_KEY\",\"loc-args\": [\"4000020\"]}", "customParameters": { "apns.customValues": "{\"ObjectType\":\"WorkOrder\"}" } }

it works.

Thanks for help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers