Delete the connection of a specific record from Business Central. The records still remain in both Business Central and an external system – function deletes just the link between those two saved in RESTwithUS.
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Entity ID RWU"
- Specifies the enum ID of RESTwithUS entity.Variant
- Specifies the record in Business Central. With Business Central 18 and newer you can use record SystemId for faster search.Text
- Specifies the description of RESTwithUS provider.Text
- Specifies the description of RESTwithUS entity.Variant
- Specifies the record in Business Central. With Business Central 18 and newer you can use record SystemId for faster search.Boolean
True if the operation was successful, false if no connection found.
//Delete the connection for customer 10000 stored in Customer entity
Customer.GET('10000');
APIScriptRWU.DELETE_MAPPING(ProviderID::TestProvider,EntityID::TestProvider_Customer,Customer);
//Select the entity by description instead of enum IDs
APIScriptRWU.DELETE_MAPPING('Test Provider','Customer',Customer);
//Select the mapping by record SystemId (recommended for BC 18 and newer)
APIScriptRWU.DELETE_MAPPING(ProviderID::TestProvider,EntityID::TestProvider_Customer,Customer.SystemId);