Global Variables are not getting replace with JSON values

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

{
            "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

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?

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