                 # Note: it sounds like all data fields are "text" type
                 # when in "urlencoded" data mode.
                 if bodyItem["type"] == "text"
-                    bodyObject[bodyItem["key"]] = bodyItem["value"]
+                    bodyObject[bodyItem["key"]] = @expandEnvironmentVariables context, bodyItem["value"]
 
             pawRequest.urlEncodedBody = bodyObject;
 

                # Note: due to Apple Sandbox limitations, we cannot import
                # "file" type items
                if bodyItem["type"] == "text"
                    bodyObject[bodyItem["key"]] = bodyItem["value"]

            pawRequest.multipartBody = bodyObject

        return pawRequest

    @createPawGroup = (context, postmanRequestsById, postmanFolder) ->



        return true

    @getEnvironmentDomain = (context) ->
        env = context.getEnvironmentDomainByName('Imported (Postman)')
        if typeof env is 'undefined'
            env = context.createEnvironmentDomain('Imported (Postman)')
        return env

    @getEnvironment = (environmentDomain) ->
        env = environmentDomain.getEnvironmentByName('ImportedEnv')
        if typeof env is 'undefined'
            env = environmentDomain.createEnvironment('ImportedEnv')
        return env

    @getEnvironmentVariable = (context, name) ->
        envD = @getEnvironmentDomain context
        variable = envD.getVariableByName(name)
        if typeof variable is 'undefined'
            env = @getEnvironment(envD)
            varD = {}
            varD[name] = ''
            env.setVariablesValues(varD)
            variable = envD.getVariableByName(name)
        return variable

    return

PostmanImporter.identifier = "com.luckymarmot.PawExtensions.PostmanImporter"
