Which API should I use to get the list of objects in Customer Service plugin?

sahilkhanna
Tera Expert

I have installed the `com.sn_customerservice` plugin. The CSM module allows the users to manage the following.

 

  • Cases
  • Escalations
    • Escalation Templates
    • Escalation Severity
  • Customer
    • Partners
    • Accounts
    • Contacts
    • Consumers
    • Locations
  • Contracts
    • Service Contracts
    • Entitlements
  • Products
    • Assets
    • Product Models

Screenshot 2025-01-03 at 18.27.52.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I am looking for a REST API that gives me the list of these objects. I looked at the REST API Explorer, however, I couldn't figure out the name of the table that has this information.

 

Is there any API to get the objects?

2 REPLIES 2

Robbie
Kilo Patron
Kilo Patron

Hi @sahilkhanna,

 

Specifically for the CSM Cases, you can leverage the namespace of sn_customerservice when viewing and accessing via the Rest API explorer - see first screen shot below.

 

For the Escalation and other tables you've listed, you can access these via the Global namespace and Table API as shown in the second screen shot below. Simply enter the name of the table you wish to integrate into - eg sn_customerservice_escalation

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.




Thanks, Robbie

 

Screen shot 1: sn_customerservice namespace

Screenshot 2025-01-03 at 15.32.42.png

Screen shot 2: now namespace and Table API

Screenshot 2025-01-03 at 15.31.54.png

@Robbie, my question is a bit different. Can I get the list of modules programmatically using the REST API (not REST API Explorer)? I wish to pass the plugin name "com.sn_customerservice" and get the modules in that plugin, like the sample API response below.

 

{
  "result": [
    {
      "name": "Escalation",
      "table": "sn_customerservice_escalation"
    },
    {
      "name": "Case",
      "table": "sn_customerservice_case"
    },
    {
      "name": "Partners",
      "table": "sn_customerservice_partner"
    }
  ]
}