Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_response #61

Open
bochhun opened this issue Dec 21, 2022 · 1 comment
Open

update_response #61

bochhun opened this issue Dec 21, 2022 · 1 comment

Comments

@bochhun
Copy link

bochhun commented Dec 21, 2022

I am having trouble using call_limer to update a response. I have both the response id and token as headers, along with the response to update. I get the following error message:

> update_response <-call_limer(method = "update_response", 
                            params = list(iSurveyID = 123456,
                                          ResponseData = df))

> update_response
[1] "Error: Missing response identifier (id|token)."

Any ideas would be helpful!

@r0bis
Copy link

r0bis commented Apr 13, 2023

It works. But I had a bit similar issues when testing. I wrote it up in a post on SO.

You are missing a list of aResponseData, two arrays/lists are needed - see the answer on SO

In brief: Routine supports only single response updates. Response to update will be identified either by the response id, or the token if response id is missing from params provided. Routine is only applicable for active surveys with alloweditaftercompletion = Y.

To update multiple responses you will need to write a simple loop. (I have an example somewhere)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants