Which API should I use to get the list of objects in Customer Service plugin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 05:01 AM - edited 01-03-2025 05:23 AM
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
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 07:40 AM
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
Screen shot 2: now namespace and Table API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 10:13 AM
@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"
}
]
}