{"action":"created","issue":{"url":"https://api.github.com/repos/a85/Newman/issues/200","labels_url":"https://api.github.com/repos/a85/Newman/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/a85/Newman/issues/200/comments","events_url":"https://api.github.com/repos/a85/Newman/issues/200/events","html_url":"https://github.com/a85/Newman/issues/200","id":64849846,"number":200,"title":"Newman-Issue reading data from response body and use them as variables","user":{"login":"mverma-va","id":4573058,"avatar_url":"https://avatars.githubusercontent.com/u/4573058?v=3","gravatar_id":"","url":"https://api.github.com/users/mverma-va","html_url":"https://github.com/mverma-va","followers_url":"https://api.github.com/users/mverma-va/followers","following_url":"https://api.github.com/users/mverma-va/following{/other_user}","gists_url":"https://api.github.com/users/mverma-va/gists{/gist_id}","starred_url":"https://api.github.com/users/mverma-va/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mverma-va/subscriptions","organizations_url":"https://api.github.com/users/mverma-va/orgs","repos_url":"https://api.github.com/users/mverma-va/repos","events_url":"https://api.github.com/users/mverma-va/events{/privacy}","received_events_url":"https://api.github.com/users/mverma-va/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-27T20:55:01Z","updated_at":"2015-03-30T17:25:15Z","closed_at":null,"body":"When I run the collection using newman, getting the error (see snapshot) that \"Cannot read property 'xyz' of undefined'. The collection works fine from the Postman tool.\r\nWhat I am trying to do in my collection that I read some data from the response body and use them as variables in further api calls. (Note that my api call takes nearly 30 seconds to return response)\r\n\r\nvar retData = JSON.parse(responseBody);\r\npostman.setEnvironmentVariable(\"msid\", retData.data.msid);\r\n\r\n![screen shot 2015-03-27 at 2 28 48 pm](https://cloud.githubusercontent.com/assets/4573058/6876859/352035b0-d491-11e4-8704-609082d9a0b2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/a85/Newman/issues/comments/87760321","html_url":"https://github.com/a85/Newman/issues/200#issuecomment-87760321","issue_url":"https://api.github.com/repos/a85/Newman/issues/200","id":87760321,"user":{"login":"mverma-va","id":4573058,"avatar_url":"https://avatars.githubusercontent.com/u/4573058?v=3","gravatar_id":"","url":"https://api.github.com/users/mverma-va","html_url":"https://github.com/mverma-va","followers_url":"https://api.github.com/users/mverma-va/followers","following_url":"https://api.github.com/users/mverma-va/following{/other_user}","gists_url":"https://api.github.com/users/mverma-va/gists{/gist_id}","starred_url":"https://api.github.com/users/mverma-va/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mverma-va/subscriptions","organizations_url":"https://api.github.com/users/mverma-va/orgs","repos_url":"https://api.github.com/users/mverma-va/repos","events_url":"https://api.github.com/users/mverma-va/events{/privacy}","received_events_url":"https://api.github.com/users/mverma-va/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T17:25:15Z","updated_at":"2015-03-30T17:25:15Z","body":"Also noticed with this other api endpoint, is it coz my form data is in raw format? See snapshot.\r\n![screen shot 2015-03-30 at 11 23 32 am](https://cloud.githubusercontent.com/assets/4573058/6902169/5fef121c-d6cf-11e4-8369-6eb2e9123336.png)\r\n\r\nMverma-Mpro:postman-collections mverma$ newman -c Jetpacks_SM_Happy_Paths_V2.json.postman_collection -e SM_DEMO.postman_environment \r\n\r\nIteration 1 of 1\r\n{\"message\": \"The following arguments are required: ['country', 'address', 'city', 'zip', 'companyName'].\", \"version\": \"2.0\", \"requestId\": \"5519860f00ff00ffebcb4a65a7520001737e736f636d6b74672d64656d6f0001617069733a3237312d6163636f756e742d67726f75702d766f626a65637400010103\", \"responseTime\": 8, \"statusCode\": 400}\r\n    EXCEPTION - TypeError: Cannot read property 'accountGroupId' of undefined\r\n400 518ms V2 - External - CreateSite - Happy https://socmktg-demo.appspot.com/api/v2/account/create/?apiUser="}}