Blank Values in CSV for Collection Runner

Hello,

I tried searching on this, but couldn’t find anything other than a comment on the CSV blog post. I’m using a CSV file to run a collection and it’s working fine except there are some rows in the CSV which have a blank or null value in an optional column (like the 2nd or 3rd line of an Address). In my request body, these requests are showing the token ({{Address2}} for example) rather blank as expected.

Is there anyway to force the blanks to appear?

Thanks,
Mike

@mikeacc

In the Pre-Request script you could test “Address2” and load a blank before the request body is sent.

Example :

    if ( typeof(pm.environment.get('Address2')) === 'undefined' ) {
        pm.environment.set('Address2','');
    }

Hope this helps.