How to Read Local JSON File in UIX?

There is a JSON file within the UIX folder, the JSON file content needs to be read and parsed.

Parsing JSON is what we got answer from a forum question. But not sure about how to read the JSON file content placed in the UIX folder.

Tried many JS approaches to read file content, but shows undefined error.

Parents Reply
  • In our case, we want to get different commandName from a JSON file based on input passed while calling extension method. But the problem is - we get the commandName from extension method after creating custom command. So it get's the commandName defined in UIX not from VAF Extension method. That's why tried to read JSON from UIX.

    But as you suggest to do from vault application, how to call the extension method so that I get the intended commandName before creating custom command with the name?

Children