Skip to content

Commit

Permalink
Update Documentation for Duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMMortimer committed May 15, 2019
1 parent dd894d8 commit 467307b
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
^codecov\.yml$
^appveyor\.yml$
^_pkgdown\.yml$
^\.package.zip$
^package.zip$
^\.httr-oauth$
^\.httr-oauth-salesforcer$
^docs$
Expand Down
14 changes: 9 additions & 5 deletions R/utils-org.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,15 @@ sf_list_objects <- function(){
#' rules on the search criteria to determine which records in other objects are duplicates.
#' @examples
#' \dontrun{
#' # if insert a lead with this email address, what duplicate records exist elsewhere
#' # according to the Lead object's duplicate rules
#' found_dupes <- sf_find_duplicates(search_criteria = list(Email = "bond_john@@grandhotels.com"),
#' # use the duplicate rules associated with the Lead object on the search
#' # criteria (email) in order to find duplicates
#' found_dupes <- sf_find_duplicates(search_criteria =
#' list(Email="bond_john@@grandhotels.com"),
#' object_name = "Lead")
#'
#' # now look across all other objects using the Contact object rules
#' found_dupes <- sf_find_duplicates(search_criteria = list(Email = "bond_john@@grandhotels.com"),
#' # now look for duplicates on email using the Contact object's rules
#' found_dupes <- sf_find_duplicates(search_criteria =
#' list(Email="bond_john@@grandhotels.com"),
#' object_name = "Contact")
#' }
#' @export
Expand Down Expand Up @@ -379,6 +381,8 @@ sf_find_duplicates <- function(search_criteria,
#' Account object.
#' @examples
#' \dontrun{
#' # use the duplicate rules associated with the object that this record
#' # belongs to in order to find duplicates
#' found_dupes <- sf_find_duplicates_by_id(sf_id = "00Q6A00000aABCnZZZ")
#' }
#' @export
Expand Down
7 changes: 6 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ reference:
desc: Functions used for basic calls to understand the org.
contents:
- '`sf_user_info`'
- '`sf_server_timestamp`'
- '`sf_find_duplicates`'
- '`sf_find_duplicates_by_id`'
- '`sf_get_all_jobs_bulk`'
- '`sf_set_password`'
- '`sf_reset_password`'
- '`sf_list_rest_api_versions`'
- '`sf_list_resources`'
- '`sf_list_api_limits`'
- '`sf_list_objects`'
- '`sf_server_timestamp`'
- title: Backward Compatibility with RForcecom
desc: Functions that mirror RForcecom to ease code transitions between salesforcer and RForcecom
contents:
Expand Down
34 changes: 32 additions & 2 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions docs/reference/sf_find_duplicates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/reference/sf_find_duplicates_by_id.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions man/sf_find_duplicates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/sf_find_duplicates_by_id.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 467307b

Please sign in to comment.