To be used by projects with record auto-numbering enabled, this method exports the next potential record ID for a project.
exportNextRecordName(rcon, ...)# S3 method for redcapApiConnection
exportNextRecordName(
rcon,
...,
error_handling = getOption("redcap_error_handling"),
config = list(),
api_param = list()
)
Returns the maximum integer record ID + 1.
A REDCap connection object as generated by redcapConnection
Arguments to be passed to other methods.
An option for how to handle errors returned by the API.
see redcap_error
list
Additional configuration parameters to pass to
POST
. These are appended to any parameters in
rcon$config
.
list
Additional API parameters to pass into the
body of the API call. This provides users to execute calls with options
that may not otherwise be supported by redcapAPI
.
NOTE: This method does not create a new record, but merely determines what the next record name would be.
8.1.8+
Xuefei Jia
It generates the next record name by determining the current maximum numerical record ID and then incrementing it by one.
Please refer to your institution's API documentation.
Additional details on API parameters are found on the package wiki at https://github.com/vubiostat/redcapAPI/wiki/REDCap-API-Parameters