Genesys CTI User Forum > Genesys-related Development

Create a new DID Group & Resource Groups using Platform SDK

(1/2) > >>

genesyslearner:
Hi Experts,

I am trying to create a new DID Group & Resource group using Platform SDK but i am not able to find the class through which i could create them.
Could you please help me with the class name or any pointer?

jamesmurphyau:
These are not their own objects.. they are options co figured in the annex of other objects. DID groups (if I recall) are configured on the Tenang object. Resource groups are configured either on the annex of an application folder, or by specifying the option in the connection tab (connection tab of RM, connecting to MCP)..

The best bet is to create these objects in GA or GAX and review the objects (the Tenant and the Application Folder objects)

genesyslearner:
Hi jamesmurphyau,

Thanks for your advise. It did help me getting the code set for DIDGroup but for Resource Group, i need to create a folder under which i will add Applcation objectID. But i am getting the error:- No persmissions to create an object under this folder.

Here is the the code for DID Group which is working:-

CfgTenantQuery ctq = new CfgTenantQuery();
ctq.setDbid(1);
CfgTenant ct = confService.retrieveObject(CfgTenant.class, ctq);
KeyValueCollection kvc = ct.getUserProperties();
if (kvc != null)
{
if (kvc.containsKey("gvp.dn-groups"))
{
KeyValueCollection kvc1 = kvc.getList("gvp.dn-groups");

kvc1.addString("demo_test", "");
System.out.println("Success");

}


}
ct.save();

cavagnaro:
So,...check permissions for the user you are using
Check CfgServer logs

genesyslearner:
Sorry cavagnaro for the late reply as i was on long leave.
The thing is as we create a Resource group , CME automatically creates a folder with name "GVP_name we give_LRG" at the root level. I am finding it difficult to code for this automatic folder creation.

Navigation

[0] Message Index

[#] Next page

Go to full version