"Publication Id" variable

We want to use the “Publication Id” in the location scheme. We would like it to be appended to a file(through location scheme) when it is published. Do we have a variable(or a macro) that can be used to retrieve the “Publication Id”?

No, there’s no macro or variable for this.

The publication id is passed as an HTML parameter to the content list, but I don’t believe it makes it as far as the location scheme.