コード例 #1
0
        public static ParaEntityList <Account> searchAccountsByName(string accountName)
        {
            var accountQuery = new AccountQuery();

            accountQuery.RetrieveAllRecords = true;

            //There is a difference between static fields and custom fields
            accountQuery.AddStaticFieldFilter(AccountQuery.AccountStaticFields.AccountName, ParaEnums.QueryCriteria.Equal, accountName);

            Service = new ParaService(CredentialProvider.Creds);
            var accounts = Service.GetList <Account>(accountQuery);

            return(accounts);
        }