Generate Next Record Name from a REDCap Database
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 class 'redcapDbConnection' exportNextRecordName(rcon, ...) ## S3 method for class 'redcapApiConnection' exportNextRecordName( rcon, ..., error_handling = getOption("redcap_error_handling") )
rcon |
A REDCap connection object as generated by |
... |
Arguments to be passed to other methods. |
error_handling |
An option for how to handle errors returned by the API.
see |
It generates the next record name by determining the current maximum numerical record ID and then incrementing it by one.
Returns the maximum integer record ID + 1.
NOTE: This method does not create a new record, but merely determines what the next record name would be.
8.1.8+
Xuefei Jia
Please refer to your institution's API documentation.
Additional details on API parameters are found on the package wiki at https://github.com/nutterb/redcapAPI/wiki/REDCap-API-Parameters
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.