vanderbilt-redcap / auto-record-generation

Module that allows for a new record to be generated in another project (or the same project) on a flagging field being saved. Allows for data fields to be transferred to the new record as well.
MIT License
4 stars 3 forks source link

Creating duplicates in destination project #23

Open cmoli018 opened 11 months ago

cmoli018 commented 11 months ago

I want to create a new record in the destination project when it's created in the source project, but only if it doesn't exist already in the destination. I have the common ID between the two projects as the field to trigger record generation and the data field to pipe to a new record. Is there a way to first check if that ID already exists in the project? The common ID is the record_id in the source project, but NOT the destination project (destination project record_id is auto numbered)