The purpose of this article is to explain how to use the RemoveContact method offered by the Contacts external object to delete a contact from a device through an app.
The following steps guide you on how to use the method.
Create a Transaction object with the following attributes:
Customer
{
CustomerId*
CustomerName
CustomerLastName
}
Apply the Work With pattern to it.
Go to the Section (General) node located under the Detail node:
In the Events section define the following event:
Event 'RemoveContact'
AddressBook.RemoveContact(CustomerName, CustomerLastName, '', '', '')
Endevent
Note: Even though some parameters are not used, they have to be included. That's why some parameters are passed as empty values.
Finally, go to the Layout tab and insert in the Application Bar a button associated with the 'RemoveContact' event.