0

I have defined a 'Global' variable for 'postman' to be used under the postman's documentation.

However after loading the documentation it looks like the variable is not coming through at all. I can see what its assigned to but not the actual expected value is there.

If I set this variable under a particular environment then it works fine.

Is there anything preventing global variables to work in documentation? has anyone else faced this same issue?

p.s I know variables in lower levels take precedence so I have removed them from all environments and only have them set in Global. Any help is appreciated

AltF4_
  • 2,312
  • 5
  • 36
  • 56
  • Are you able to share any images of what you're seeing? – Danny Dainton Oct 03 '19 at 09:48
  • sensitive information in there still i'm afraid. Will have to strip them out. I think i may go down a route of defining a separate environment for documentation or just use the one for production. its very odd @DannyDainton – AltF4_ Oct 03 '19 at 09:56
  • 1
    The functionality isn't there to be able to use global variables for the documentation. Using the Environment or Collection level ones would be the other options. – Danny Dainton Oct 03 '19 at 10:04
  • 1
    Thanks, I guessed that might be the case, It is a shame considering it would have fitted our case perfectly. – AltF4_ Oct 03 '19 at 10:14

1 Answers1

0

based on answer from @dannydainton above who works for Postman:

The functionality isn't there to be able to use global variables for the documentation. Using the Environment or Collection level ones would be the other options.

AltF4_
  • 2,312
  • 5
  • 36
  • 56