18  Survey Link (REDCapR Only)

redcap_survey_link_export_oneshot()

To export the survey link, the instrument must be enabled as a survey in REDCap. If it is a longitudinal survey, you must specify the event name (and instance if repeating) along with the instrument name. This export can only return a survey link for already existing records.

%%capture
%%R 
link <- redcap_survey_link_export_oneshot(
    record = 6,
    instrument = "test_information",
    redcap_uri = url,
    token = token,
    event = "case_intake_arm_1"
)
result$survey_link
%%R
link$survey_link
[1] "https://dev-redcap.doh.wa.gov/surveys/?s=k4z7SZWpuKBi4mQt"