Pump multiple linked app fields from one app to another

Comments

1 comment

  • PJ Muller

    Short version

        try {
          JSON.parse(data).firstname;
        } catch (e) {
            "Could not parse JSON"
        }

    Long version

    This was already solved here https://help.podio.com/hc/en-us/community/posts/202620823-Using-calulation-field-javascript-to-parse-JSON

    We need to wrap the code in a try catch block because at the time that we save the calculation. Podio will validate the calculation and insert ["Script field example text"] into @all of calculation. This is of course no valid json string and let's the validation fail.

    In real circumstances the calculation does work fine so bypassing it (just to getting it stored in Podio) is the way to go.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk