I’m trying to generate a project variable preview using the client in PowerShell. The purpose is (hopefully) to export the preview so it can be reviewed by the project owners outside of the UI. I’ve been playing with the ‘VariableSets.GetVariablePreview’ method with no success. Just keep bumping into a ‘Cannot find an overload for “GetVariablePreview” and the argument count’ error.
Thanks for reaching out. I did some digging and I think the GetVariablePreview needs different information than the project object. The following code worked for me (I dug down into the spaces first, not sure if you need to do that on your end.)