TMF 641 Service Order

PaulSylo
Tera Sage
Tera Sage

Hello All,

 

I have one question on this TMF 641 Service Order API with the Service Catalog. My scenario is if I Ordered a service using 641 and I see Service Order is getting created in ServiceNow and goes for Approval. Now I want to add one component to this service that I ordered. Now what is the best way to add this to the existing order? do I need to cancel my service order and create a new one or API is having the option to tweak and add this additional component to the existing service order?

Regards,
PaulSylo

Kindly mark "helpful", if this helps, or Mark as "Accepted " if it solves your issues !
1 ACCEPTED SOLUTION

Amit Gujarathi
Giga Sage
Giga Sage

HI @PaulSylo ,
I trust you are doing great.

can make use of the PUT method for the TMF641 Service Order API. This method allows you to update an existing service order by sending a JSON payload containing the updated details.

For example, let's say you want to add a new component with the ID "COMP001" to an existing service order with the ID "SO001". You can send the following JSON payload via the API:

{
  "id": "SO001",
  "relatedParty": [...],
  "orderItem": [
    {
      "id": "OI001",
      "type": "component",
      "action": "add",
      "productOffering": {
        "id": "COMP001"
      }
    }
  ],
  "note": "Added new component"
}

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



View solution in original post

2 REPLIES 2

Amit Gujarathi
Giga Sage
Giga Sage

HI @PaulSylo ,
I trust you are doing great.

can make use of the PUT method for the TMF641 Service Order API. This method allows you to update an existing service order by sending a JSON payload containing the updated details.

For example, let's say you want to add a new component with the ID "COMP001" to an existing service order with the ID "SO001". You can send the following JSON payload via the API:

{
  "id": "SO001",
  "relatedParty": [...],
  "orderItem": [
    {
      "id": "OI001",
      "type": "component",
      "action": "add",
      "productOffering": {
        "id": "COMP001"
      }
    }
  ],
  "note": "Added new component"
}

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



Rahul Priyadars
Tera Sage
Tera Sage

Paul 

I have tested PATCH also for Inflight Orders which are approved too.

It creates a new Version and state shows as revision in Progress.

 

RahulPriyadars_0-1683266734134.png

 

 

Regards

RP