Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new force_auto_number paramter to redcap_write() #519

Open
wibeasley opened this issue Mar 6, 2024 · 0 comments
Open

add new force_auto_number paramter to redcap_write() #519

wibeasley opened this issue Mar 6, 2024 · 0 comments
Assignees

Comments

@wibeasley
Copy link
Member

Alexander Maclay posted a problem that could be avoided if REDCapR added a new-ish parameter forceAutoNumber when writing records to the server.

forceAutoNumber
If record auto-numbering has been enabled in the project, it may be desirable to import records where each record's record name is automatically determined by REDCap (just as it does in the user interface). If this parameter is set to 'true', the record names provided in the request will not be used (although they are still required in order to associate multiple rows of data to an individual record in the request), but instead those records in the request will receive new record names during the import process. NOTE: To see how the provided record names get translated into new auto record names, the returnContent parameter should be set to 'auto_ids', which will return a record list similar to 'ids' value, but it will have the new record name followed by the provided record name in the request, in which the two are comma-delimited. For example, if

  • false (or 'false') - The record names provided in the request will be used. [default]
  • true (or 'true') - New record names will be automatically determined.

Private forum post: https://redcap.vanderbilt.edu/community/post.php?id=221892

@wibeasley wibeasley self-assigned this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant