The CreatorCon Call for Content is officially open! Get started here.

Create a product offering in ServiceNow with specific characteristics (Order Management Telecom)

hajar231
Tera Contributor

i send this payload using postman "post" to servicenow instance for create a product offering, the product offering is created in the instance but it recovers all the characteristics of the product specification even if I specified in the payload the characteristics that it must be created with.

Payload

{
   
    "name""Test payload Premium Unlimited mobile plan",
    "description""Test payload Premium Unlimited voice, data and SMS plan",
    "lastUpdate""2023-06-07 04:55:34",
    "validFor": {
        "startDateTime""2022-07-18",
        "endDateTime""2027-07-18"
    },
    "productOfferingTerm""12_months",
    "productOfferingPrice": [
        {
            "priceType""recurring",
            "price": {
                "taxIncludedAmount": {
                    "unit""USD",
                    "value"59
                }
            }
        },
        {
            "priceType""nonRecurring",
            "price": {
                "taxIncludedAmount": {
                    "unit""USD",
                    "value"0
                }
            }
        }
    ],
    "productSpecification": {
        "id""3ee1fdb1c3331010d216b5183c40dd81",
        "name""Mobile Plan",
        "version""1"
    },
    "prodSpecCharValueUse": [
        {
            "name""Data Pack",
            "description""Characteristic for data pack options",
            "valueType""choice",
            "validFor": {
                "startDatetime""2020-09-28 09:54:02"
            },
            "productSpecCharacteristicValue": [
                {
                    "value""Unlimited",
                    "validFor": {
                        "startDateTime"""
                    }
                }
            ],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        },
        {
            "name""Voice Pack",
            "description""Characteristic for voice minutes options",
            "valueType""choice",
            "validFor": {
                "startDatetime""2020-09-28 09:51:41"
            },
            "productSpecCharacteristicValue": [
                {
                    "value""Unlimited",
                    "validFor": {
                        "startDateTime"""
                    }
                }
            ],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        },
        {
            "name""Shipping Address",
            "description""Shipping Address",
            "valueType""address",
            "validFor": {
                "startDatetime""2020-10-28 11:42:38"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        },
        {
            "name""Mobile Number",
            "description""Characteristic to capture mobile number",
            "valueType""single_line_text",
            "validFor": {
                "startDatetime""2020-09-28 09:56:26"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        },
        {
            "name""SMS Pack",
            "description""Characteristic for SMS pack options",
            "valueType""choice",
            "validFor": {
                "startDatetime""2020-09-28 09:55:30"
            },
            "productSpecCharacteristicValue": [
                {
                    "value""Unlimited",
                    "validFor": {
                        "startDateTime"""
                    }
                }
            ],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        },
        {
            "name""Sim Number",
            "description""Sim Number required for mobile plan",
            "valueType""single_line_text",
            "validFor": {
                "startDatetime""2020-09-26 07:33:33"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id""3ee1fdb1c3331010d216b5183c40dd81",
                "name""Mobile Plan"
            }
        }
    ],
    "channel": [
        {
            "id""e561aae4c3e710105252716b7d40dd8f",
            "name""Web"
        },
        {
            "id""3661aae4c3e710105252716b7d40ddfe",
            "name""Mobile"
        },
        {
            "id""9f51aae4c3e710105252716b7d40dda1",
            "name""eBonding"
        }
    ],
    "category": {
        "id""9919291ac34c20105252716b7d40dd0f",
        "name""Enterprise Mobile Plan"
    }
}

Product Offering Characteristics (18)

hajar231_0-1686928394325.png

 

 

2 REPLIES 2

Riya Verma
Kilo Sage

Hi @hajar231 ,

 

Hope you are doing great.

The issue seems to be related to the association of product specification characteristics with the product offering.To resolve this issue, you need to make sure that the product offering is properly linked to the desired product specification characteristics in the payload.

 

below is example on how you can modify the payload.

{
    "name": "Test payload Premium Unlimited mobile plan",
    "description": "Test payload Premium Unlimited voice, data and SMS plan",
    "lastUpdate": "2023-06-07 04:55:34",
    "validFor": {
        "startDateTime": "2022-07-18",
        "endDateTime": "2027-07-18"
    },
    "productOfferingTerm": "12_months",
    "productOfferingPrice": [
        {
            "priceType": "recurring",
            "price": {
                "taxIncludedAmount": {
                    "unit": "USD",
                    "value": 59
                }
            }
        },
        {
            "priceType": "nonRecurring",
            "price": {
                "taxIncludedAmount": {
                    "unit": "USD",
                    "value": 0
                }
            }
        }
    ],
    "productSpecification": {
        "id": "3ee1fdb1c3331010d216b5183c40dd81",
        "name": "Mobile Plan",
        "version": "1"
    },
    "prodSpecCharValueUse": [
        {
            "name": "Data Pack",
            "description": "Characteristic for data pack options",
            "valueType": "choice",
            "validFor": {
                "startDatetime": "2020-09-28 09:54:02"
            },
            "productSpecCharacteristicValue": [
                {
                    "value": "Unlimited",
                    "validFor": {
                        "startDateTime": ""
                    }
                }
            ],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Voice Pack",
            "description": "Characteristic for voice minutes options",
            "valueType": "choice",
            "validFor": {
                "startDatetime": "2020-09-28 09:51:41"
            },
            "productSpecCharacteristicValue": [
                {
                    "value": "Unlimited",
                    "validFor": {
                        "startDateTime": ""
                    }
                }
            ],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Shipping Address",
            "description": "Shipping Address",
            "valueType": "address",
            "validFor": {
                "startDatetime": "2020-10-28 11:42:38"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

hajar231
Tera Contributor

hello
Sorry, but i can't see any changes or correction on the payload that you provide, it the same payload that i posted;

{
    "name": "Test payload Premium Unlimited mobile plan",
    "description": "Test payload Premium Unlimited voice, data and SMS plan",
    "lastUpdate": "2023-06-07 04:55:34",
    "validFor": {
        "startDateTime": "2022-07-18",
        "endDateTime": "2027-07-18"
    },
    "productOfferingTerm": "12_months",
    "productOfferingPrice": [
        {
            "priceType": "recurring",
            "price": {
                "taxIncludedAmount": {
                    "unit": "USD",
                    "value": 59
                }
            }
        },
        {
            "priceType": "nonRecurring",
            "price": {
                "taxIncludedAmount": {
                    "unit": "USD",
                    "value": 0
                }
            }
        }
    ],
    "productSpecification": {
        "id": "3ee1fdb1c3331010d216b5183c40dd81",
        "name": "Mobile Plan",
        "version": "1"
    },
    "prodSpecCharValueUse": [
        {
            "name": "Data Pack",
            "description": "Characteristic for data pack options",
            "valueType": "choice",
            "validFor": {
                "startDatetime": "2020-09-28 09:54:02"
            },
            "productSpecCharacteristicValue": [
                {
                    "value": "Unlimited",
                    "validFor": {
                        "startDateTime": ""
                    }
                }
            ],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Voice Pack",
            "description": "Characteristic for voice minutes options",
            "valueType": "choice",
            "validFor": {
                "startDatetime": "2020-09-28 09:51:41"
            },
            "productSpecCharacteristicValue": [
                {
                    "value": "Unlimited",
                    "validFor": {
                        "startDateTime": ""
                    }
                }
            ],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Shipping Address",
            "description": "Shipping Address",
            "valueType": "address",
            "validFor": {
                "startDatetime": "2020-10-28 11:42:38"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Mobile Number",
            "description": "Characteristic to capture mobile number",
            "valueType": "single_line_text",
            "validFor": {
                "startDatetime": "2020-09-28 09:56:26"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "SMS Pack",
            "description": "Characteristic for SMS pack options",
            "valueType": "choice",
            "validFor": {
                "startDatetime": "2020-09-28 09:55:30"
            },
            "productSpecCharacteristicValue": [
                {
                    "value": "Unlimited",
                    "validFor": {
                        "startDateTime": ""
                    }
                }
            ],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        },
        {
            "name": "Sim Number",
            "description": "Sim Number required for mobile plan",
            "valueType": "single_line_text",
            "validFor": {
                "startDatetime": "2020-09-26 07:33:33"
            },
            "productSpecCharacteristicValue": [],
            "productSpecification": {
                "id": "3ee1fdb1c3331010d216b5183c40dd81",
                "name": "Mobile Plan"
            }
        }
    ],
    "channel": [
        {
            "id": "e561aae4c3e710105252716b7d40dd8f",
            "name": "Web"
        },
        {
            "id": "3661aae4c3e710105252716b7d40ddfe",
            "name": "Mobile"
        },
        {
            "id": "9f51aae4c3e710105252716b7d40dda1",
            "name": "eBonding"
        }
    ],
    "category": {
        "id": "9919291ac34c20105252716b7d40dd0f",
        "name": "Enterprise Mobile Plan"
    }
}