tranpl / redcap-api

REDCap API Library for .NET The library provides the ability to interact with REDCap via API calls, e.g Import Records, Export Records etc. This library supports all supported API methods in REDCap.
https://www.nuget.org/packages/RedcapAPI
MIT License
16 stars 19 forks source link

Upload XML file #100

Open mholli9 opened 1 year ago

mholli9 commented 1 year ago

New to REDCap and, obviously, this package.

I hope my request is simple but perhaps not? I have an XML file exported from one REDCap project and I would like to import the entire file which contains several records and each record contains several instruments.

Is there a simple way to import an entire file without uploading one record at a time? If no, is there a simple way to upload all the data from each record and step through those one at time for the entire file?

Thanks!

tranpl commented 1 year ago

@mholli9, its possible maybe through a loop that can iterate over the records or your structure? I think the payload would have to be converted to json or flat first for the API to load into REDCap?