web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Survey Monkey Custom V...
Power Automate
Unanswered

Survey Monkey Custom Variables

(0) ShareShare
ReportReport
Posted on by

Hi

 

Any I idea how i can get the custom variable from a survey monkey survey response body?

 

It is in the body...but not sure how to extract it and set a variable to it.

 

 "custom_variables": {
    "casenum""[32782]"

 

the only variable type i can use is of type Object. Which it does. Any idea how to extract thereafter?

 

 

 

 

full body is as follows

 

{
  "id""11991646621",
  "recipient_id""",
  "collection_mode""default",
  "response_status""completed",
  "custom_value""",
  "first_name""",
  "last_name""",
  "email_address""",
  "ip_address""76.88.129.52",
  "logic_path": {},
  "metadata": {
    "contact": {}
  },
  "page_path": [],
  "collector_id""392061275",
  "survey_id""292175869",
  "custom_variables": {
    "casenum""[32782]"
  },
  "total_time"13,
  "date_modified""2020-09-16T03:49:31+00:00",
  "date_created""2020-09-16T03:49:18+00:00",
  "pages": [
    {
      "id""137696787",
      "questions": [
        {
          "id""531980808",
          "answers": [
            {
              "choice_id""3514855462",
              "row_id""3514855458"
            }
          ]
        },
        {
          "id""531985615",
          "answers": [
            {
              "choice_id""3514887251",
              "row_id""3514887245"
            }
          ]
        },
        {
          "id""531982591",
          "answers": [
            {
              "choice_id""3514867978",
              "row_id""3514867971"
            }
          ]
        }
      ]
    }
  ]
}
Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    I would do the following

    1.- Add an 'Initialize variable' action block, name 'mySurveyMonkeyResponseBody', type Object, assign as its value your surveymonkeyResponseBody

    2.- Add an 'Initialize variable' action block, name 'myCustomVariable', type Object, assign as its value the following WDL expression:

    variables('mySurveyMonkeyResponseBody')?['custom_variables']

    If you are not familiar with WDL expressions and how to add them please check here:

    https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/

     

    Please note you can access casenum value following the same approach, i.e.

    variables('mySurveyMonkeyResponseBody')?['custom_variables']?['casenum']

    or

    variables('custom_variables')?['casenum']

    Hope this helps

     

  • Chris22 Profile Picture
    39 on at

    I was having the same issue and this solved it. Thanks

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard