Issue with the generating @ by a web application for the payload attribute name in TMF622 API

kiran76
Tera Contributor

One of the external interface web applications is consuming the ServiceNow Product Order Open API (TMF622), but their Java code is unable to generate the ‘@’ for the attribute names like @type, @referredType. On further analysing the ServiceNow API scripts, the Payload schema is defined in the constants like @referredType for the attribute names. This API constants cannot be modified due to protection policy, only option is to copy the OOTB constant into a new script and use the override functions from the calling scripts, but this will have an impact on future updates on these TMF APIs. Also, we are yet to test this solution for any other regression impacts of modifying the schema.

Appreciate if any other suggestions without modifying the OOTB constants?

Api name: Product Order Open API (part of Order Mgmt for Telco application)

Resource: Create Order

2 REPLIES 2

Kailash Bhange
Kilo Sage
Kilo Sage

Hi Kiran76,

Hope you are doing good!

You can create a new scripted API which will be consumed by the Java application and once you receive the payload for it(according to the OOTB API except '@' thing), you will have to invoke the backend scripts of the OOTB API(highlighted in SS) and orders can be generated.

KailashBhange_0-1693577367070.png

 

 

Hope this helps.
If my answer resolves your issue, please mark my answer as Correct & Helpful based on the validations.

Thank You!
Regards,
Kailash
LinkedIn

Kailash Bhange
Kilo Sage
Kilo Sage

@kiran76 

Hope you are doing good,

Could you please confirm if you were able to implement the requirement and we would be happy to learn your approach.

request you to mark the thread as closed so that it can be useful to refer in future with your contributions.

 

Hope this helps.
If my answer resolves your issue, please mark my answer as Correct & Helpful based on the validations.

Thank You!
Regards,
Kailash
LinkedIn