Skip to content

How to retrieve all submission data in multiple versions of a form from Formio to redash #1192

Answered by shuhaib-aot
shuhaib-aot asked this question in Q&A
Discussion options

You must be logged in to vote

Fetch form submission data by form path

{
    "collection": "forms",
    "aggregate": [
        {
            "$match": {
            "path": "dashboardcheck"
            }
        },
        {
            "$addFields": {
                "resultId": { "$cond": { 
                    "if": { "$ifNull": [ "$parentFormId",false]},
                    "then": "$parentFormId",
                    "else": "$_id"
                }}
            }
        },
        {
            "$lookup": {
            "from": "forms",
            "let": {"id": "$resultId"},
            "pipeline":[
                        {"$match": { "$expr": {"$or": [
                            {"$eq": ["$_id",{"$convert": {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shuhaib-aot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant