Genesys CTI User Forum > Genesys-related Development
Create Folder type Site
cavagnaro:
What does CfgServer logs say?
Try to compare a CME call VS yours
Enviado de meu E6633 usando o Tapatalk
carpio:
I have compared the logs and saw that when i create a site folder in cme i have a ownerid
<CfgFolder
DBID="0"
name="TEST_CME"
type="22"
state="1"
folderClass="2">
<ownerID>
<CfgTenantOwnerShortcut
linkDBID="1" />
</ownerID>
<userProperties />
</CfgFolder>
Im now trying to set the owner id but i get always a error"object reference not set to an instance of an object"
my OwnerId is also null.
here is the code i try:
CfgFolder folder = new CfgFolder(func.app_service);
folder.Name = "TEST";
folder.FolderClass = CfgFolderClass.CFGFCSite;
folder.Type = (CfgObjectType)22;
folder.OwnerID.DBID = func.app_tenant.DBID;
folder.Save();
seaofwires:
Posting this here for anyone else that runs into this problem. I was able to fix the issue by assigning the folder.folderID value to the parent folder's DBID that I wanted to create the folder under.
carpio:
I have tried to set the folder id to the tenant but get a Exception that a required attribute was still missing.
CfgFolder site = new CfgFolder(service);
site.Name = "Test";
site.Type = CfgObjectType.CFGFolder;
site.FolderClass = CfgFolderClass.CFGFCSite;
site.FolderId = WellKnownDbids.EnvironmentDbid;
site.Save();
Do I miss here something?
cavagnaro:
? Have you read the post above yours?
Enviado de meu SM-G9650 usando o Tapatalk
Navigation
[0] Message Index
[*] Previous page
Go to full version