RemoveAssociation
Deletes an association between two entities based on a specified navigation property. This requires the IncludeNavigationProperties connection property to be enabled.
Input
Name | Type | Required | Description |
FromId | String | False | The unique identifier of the source entity for which you are removing an association. This helps specify the source entity involved in the relationship. |
UrlId | String | False | An alternative to specifying the FromId. This is the full URL of the resource for which the association is being removed. It is required when the navigation property is abstract or when specifying child types for base-type navigation properties. |
FromTable | String | True | The name of the table containing the source entity for which you are removing an association. For example, if the FromId corresponds to an entity in the 'Customers' table, set this parameter to 'Customers'. |
ToNavigationProperty | String | True | The name of the navigation property for which the association is being removed. This value can be retrieved using the ListNavigationProperties function. |
ToId | String | False | The unique identifier of the target entity in the association. This ID should come from the table related to the specified navigation property. |
ToUrlId | String | False | An alternative to specifying the ToId. This is the full URL of the target resource in the association. It is required when the navigation property is abstract or when specifying child types for base-type navigation properties. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether the operation to remove the association was successful. Returns true if successful; otherwise, returns false. |