cancel
Showing results for 
Search instead for 
Did you mean: 

Script to create a message in Product setup?

slyakh
Participant
0 Kudos
427

Product.Messages.Add() - adds a message to a configuration. But is it possible to create a message in Product Setup using a script?

slyakh
Participant
0 Kudos

I'm hoping SAP will make it standard functionality, analogous to Product Rule import/export, to make custom scripting unnecessary.
Please vote for it, if you like the idea: https://influence.sap.com/sap/ino/#/idea/294623

Accepted Solutions (1)

Accepted Solutions (1)

paultrozan
Explorer

I would use the Product API to manage product messages in bulk. You could implement it in two ways:
- Use a tool like Postman to read the data from a file and then repeatedly call the desired endpoint. This would be easier to bulk add messages.
- Create a script inside CPQ that consumes the data directly (or reads it from a file), and then calls the endpoint(s) necessary. This would be easier if you need to also update/delete message in addition to adding new ones.

slyakh
Participant
0 Kudos

Thanks Paul! That makes sense, and I'm glad there is a way, because SAP TSEs told me it's impossible. Now I just have to figure out how to do that (no experience with APIs and just a little with scripting).

Answers (0)