# Global Variables are not getting replace with JSON values

**URL:** <https://community.postman.com/t/global-variables-are-not-getting-replace-with-json-values/57580>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [February 12, 2024, 10:07pm UTC](https://community.postman.com/t/global-variables-are-not-getting-replace-with-json-values/57580 "2024-02-12T22:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raviudara](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@raviudara](https://community.postman.com/u/raviudara)\
**Post date:** [February 12, 2024, 10:07pm UTC](https://community.postman.com/t/global-variables-are-not-getting-replace-with-json-values/57580/1 "2024-02-12T22:07:37Z")

</div>

when I’m running the collection, my my JSON values are not getting populated according to global values in body

```auto
{
            "CommonData":{
                "SordIdStatusFlag": "{{SordIdStatusFlag}}",
                "RecordID": "{{RecordID}}",
                "CISOrderType": "{{CISOrderType}}",
                "CISOrderDesc": "{{CISOrderDesc}}",
                "gnnid": "{{gnnid}}",
                "RespPACERSordID": "{{RespPACERSordID}}",
                "SvtBaseCD": "{{SvtBaseCD}}",
                "SvtRgnCD": "{{SvtRgnCD}}",
                "FacilityID": "{{FacilityID}}",
                "BillAccountID": "{{BillAccountID}}",
                "CycSectSeg": {
                    "Cycl": "{{Cycl}}",
                    "SectionNumber": "{{SectionNumber}}",
                    "SegmentNumber":"{{SegmentNumber}}"
                },
                "SpecialLedgerSwitch": "{{SpecialLedgerSwitch}}",
                "WorkOrderStatus": "{{WorkOrderStatus}}",
                "FieldWorkOrderStatus": "{{FieldWorkOrderStatus}}",
                "TimeTaken": "{{TimeTaken}}",
                "OperatorUserID": "{{OperatorUserID}}",
                "OperatorName": "{{OperatorName}}",
                "LastInXmissionInd": "{{LastInXmissionInd}}",
                "FirstSchedDate": "{{FirstSchedDate}}",
                "SpecialRouteInd": "{{SpecialRouteInd}}",
                "PMCSurveySOrdPendFlg": "{{PMCSurveySOrdPendFlg}}",
                "RegulatorOrdPendFlg": "{{RegulatorOrdPendFlg}}",
                "CustomerName": "{{CustomerName}}",
                "SingleResidenceFlg": "{{SingleResidenceFlg}}",
                "NonResidenceFlg": "{{NonResidenceFlg}}",
                "ReachedAtName": "{{ReachedAtName}}",
                "SoReachedAtPhone": "{{SoReachedAtPhone}}",
                "SoReachedAtPhoneExt": "{{SoReachedAtPhoneExt}}",
                "ReachedAtLocation": "{{ReachedAtLocation}}",
                "ServiceAddress":{
                    "SAStreetNumber": "{{SAStreetNumber}}",
                    "SAPreStreetDir": "{{SAPreStreetDir}}",
                    "SAStreetName": "{{SAStreetName}}",
                    "SAStreetType": "{{SAStreetType}}",
                    "SAPostStreetDir": "{{SAPostStreetDir}}",
                    "SAFractionNumber": "{{SAFractionNumber}}",
                    "SADestTypeCode": "{{SADestTypeCode}}",
                    "SADestText": "{{SADestText}}",
                    "SAQualifier":"{{SAQualifier}}"
                }

```

![image](https://us1.discourse-cdn.com/getpostman/original/3X/d/9/d9481bd40539e88383cf8d734e5cb89416dda24a.png)

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 13, 2024, 2:40pm UTC](https://community.postman.com/t/global-variables-are-not-getting-replace-with-json-values/57580/2 "2024-02-13T14:40:35Z")

</div>

How are you running the collection? How are you setting the global variables?

Why global by the way? Do you really need these variables available to all of your collections in your Postman workspace?

Wouldn’t collection or environment variables be more suitable?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 14, 2024, 2:41pm UTC](https://community.postman.com/t/global-variables-are-not-getting-replace-with-json-values/57580/3 "2024-03-14T14:41:13Z")

</div>

Closed on March 14, 2024, 2:41pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
