dyn_delete: Delete Records

Description Usage Arguments Value Examples

View source: R/delete.R

Description

Deletes one or more records to your organization’s data.

Usage

1
dyn_delete(ids, entity_name, verbose = FALSE)

Arguments

ids

vector, matrix, data.frame, or tbl_df; if not a vector, there must be a column called Id (case-insensitive) that can be passed in the request

entity_name

character; the name of one MS Dynamics CRM entity that the function is operating against (e.g. "Account", "Contact", "CustomObject__c")

verbose

logical; do you want informative messages?

Value

tbl_df of records with success indicator

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
n <- 2
new_contacts <- tibble(firstname = rep("Test", n),
                       lastname = paste0("Contact", 1:n))
new_contacts_result1 <- dyn_create(new_contacts, entity_name="contact")
deleted_contacts_result1 <- dyn_delete(new_contacts_result1$id,
                                       entity_name="contact")

## End(Not run)

StevenMMortimer/rdynamicscrm documentation built on July 9, 2019, 11:37 a.m.