Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    setting payload response variables

    Cloud Backend (Cloud DB, API Builder)
    2
    2
    256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robert Chura last edited by

      {
      "status": "OK",
      "execTime": 286,
      "billedTime": 600,
      "payload": "http://www.example.com",
      "logs": ""

      How do i set the payload to a variable.. i can do it on local testing and on w3 and vscode but for some reason the same syntax is not working for appdrag 😕 i just want something like

      var ORIGIN = payload response

      1 Reply Last reply Reply Quote 0
      • Daniel Mulroy
        Daniel Mulroy last edited by

        Hi Robert,

        Can you provide a bit more information, like what language you are using for your CloudBackend function?

        if it's Node.js, try using:
        callback(null, variable_for_payload)

        If Python, you can try simply:
        return variable_for_payload

        1 Reply Last reply Reply Quote 0
        • First post
          Last post