Genesys CTI User Forum > Genesys-related Development

PSDK Update Object

<< < (2/4) > >>

carpio:
This is the exception I get at the folderID.
{"Can't change this property because object has been saved."}

and I get this at this line:
person.SingleOrDefault().FolderId = folder.DBID;

folder.DBID is not null.

cavagnaro:
I think you need to use Set property

Enviado de meu E6633 usando Tapatalk

carpio:
Hi cavagnaro,

can you explain what you mean by using set property?

cavagnaro:
You are doing a Query...not modifying the person object with CfgPerson object...


Check http://www.sggu.com/smf/index.php?topic=10649.0

carpio:
I have changed my code to make it a bit more visible

            CfgPersonQuery pquery = new CfgPersonQuery(func.app_service);
            pquery.UserName = "testagent";
            ICollection<CfgPerson> person = pquery.Execute();
            person.SingleOrDefault().FolderId = 191;

At person.SingleOrDefault().FolderId = 191; I get the exception that object is already saved.
So I'm trying to change the Object unless I have to change a differnt object then CfgPerson.
But there I do not know where to start.

There is a table cfg_obj_folder with the info of the folder and the objects but I do not now how to update this with the PSDK.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version