Working with customized AIF (Service Operation : Find)

AxdContactQuery _trans = new AxdContactQuery();
CriteriaElement[] criteriaElement = new CriteriaElement[1];
criteriaElement[0] = new CriteriaElement();
criteriaElement[0].DataSourceName = “ContactTable”;
criteriaElement[0].FieldName = “ContactID”;
criteriaElement[0].Value1 = “CNT-0003”;

QueryCriteria queryCriteria = new QueryCriteria();
queryCriteria.CriteriaElement = criteriaElement;

try
{
_trans = this.getClientObject().find(this.getCallContext(), queryCriteria);
lstBox.Items.Add(_trans.ContactTable[0].RecId);
}
catch (Exception ex)
{
RTB_ErrorBox.Text = ex.Message;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s