redcap-api icon indicating copy to clipboard operation
redcap-api copied to clipboard

ExportRecordsAsync in csv uses the rawOrLabelHeaders instead of rawOrLabel

Open jlewis99 opened this issue 11 months ago • 0 comments

ExportRecordsAsync in csv uses the rawOrLabelHeaders instead of rawOrLabel

lines 3250 and 3372 and 3487 in RedcapApi.cs

            // Pertains to CSV data only
            var _rawOrLabelValue = rawOrLabelHeaders.ToString();
            if (!IsNullOrEmpty(_rawOrLabelValue))
            {
                payload.Add("rawOrLabel", _rawOrLabelValue);
            }

should be:

            // Pertains to CSV data only
            var _rawOrLabelValue = rawOrLabel.ToString();
            if (!IsNullOrEmpty(_rawOrLabelValue))
            {
                payload.Add("rawOrLabel", _rawOrLabelValue);
            }

jlewis99 avatar Mar 13 '24 03:03 jlewis99