Working with customized AIF (Service Operation : Delete)

KeyField keyField = new KeyField() { Field = “RecId”, Value = “5637144589” };

// Create an entity key instance and put in the key field data
EntityKey entityKey = new EntityKey();
entityKey.KeyData = new KeyField[1] { keyField };
EntityKey[] entityKeys = new EntityKey[1] { entityKey };

try
{
this.getClientObject().delete(this.getCallContext(), entityKeys);
RTB_ErrorBox.Text = “Deleted successfully.”;
}
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