ns_list_form_attachments: Retrieve all attachments associated with a Nettskjema

View source: R/ns-attachment.R

ns_list_form_attachmentsR Documentation

Retrieve all attachments associated with a Nettskjema

Description

Some Nettskjema have fields for attachments. These can be downloaded through this function. There are two naming convention that may be used for the saved files' names. See output of ns_list_submission_attachments for idea of the names used.

Usage

ns_list_form_attachments(form_id)

Arguments

form_id

integer. Number of the form to retrieve

Details

filenames types

"original"

- uses file names are they were uploaded to Nettskjema

"standardized"

- creates file names based on the submission id and a counter number to uniquely create file names for each submission (in case there are more than one attachment)

Value

invisible named logical if the file was saved successfully

Examples

## Not run: 
form_id <- 1100000
ns_list_form_attachments(form_id)


## End(Not run)

LCBC-UiO/nettskjemar documentation built on April 11, 2025, 11:01 p.m.