Tesh
Tesh

Reputation: 29

Reference an system.xml property from a setting in the psd1 file

I am creating an xml document with many nodes and values. The node references are set in a psd1 file so in the future if the structure changes or names change, we just need to update the psd1 file and hopefully not change the code! I am importing the psd1 file into a variable and trying to reference a setting. I then need to set the values based on the specific reporting information would like to reference the psd1 file settings and this FAILS.

The following works: doc.FinData.Header.Hdrinfo.From.CpnyId.Id.StoreId.Report.Id = xml_cfg.from_id

$doc.$xml_cfg.from_path = xml_cfg.from_id ERROR: "The property 'FinData.Header.Hdrinfo.From.CpnyId.Id.StoreId.Report.Id' cannot be found on this object. Verify that the property exists and can be set."

Upvotes: 0

Views: 34

Answers (0)

Related Questions