1

Genesys Platform SDKを使用して(キーの代わりに)属性を使用してオブジェクトをクエリするにはどうすればよいですか?IConfServiceを使用して属性でオブジェクトを照会する

Endpoint endpoint = new Endpoint("DEV", "the host", 12020); 

endpoint.ServicePrincipalName = "the host/the principle"; 

_confServerProtocol = new ConfServerProtocol(endpoint); 
_confServerProtocol.ClientApplicationType = (int)CfgAppType.CFGSCE; 
_confServerProtocol.ClientName = "default"; 
_confServerProtocol.UserName = "the userid"; 
_confServerProtocol.Open(); 

IConfService confService = ConfServiceFactory.CreateConfService(_confServerProtocol); 

CfgPersonQuery query = new CfgPersonQuery(); 

// Need to filter based on an Attribute Value (specifically externalID) 

var foo = confService.RetrieveMultipleObjects<CfgPerson>(query); 

答えて

1

これが私の仕事:

CfgXPathBasedQuery query = new CfgXPathBasedQuery(confService, CfgObjectType.CFGPerson, "CfgPerson[@externalID='the value']"); 
関連する問題