Skip to content

MarcosMorais95/PCFXmlToJson

Repository files navigation

PCF XmlToJson

A Power Apps Component Framework (PCF) control that lets users upload one or multiple XML files and outputs a JSON string that can be easily consumed in Canvas Apps using ParseJSON().

Captura de tela 2025-12-18 204146

What this component does

  • Upload 1 XML or multiple XML files (configurable).
  • Convert XML → JSON and expose the result as an output property (string).
  • Provide quick actions:
    • Copy Schema: copies a JSON Schema generated from the current JSON output.
    • Copy Schema With Prompt: copies a ready-to-use ChatGPT prompt + the JSON Schema.
  • Supports an external reset (triggered from the host app) to clear the current state without needing a “Reset” button inside the control.

Usage

Click here to Download the managed solution.


Key features

  • Single or multi-file mode via a boolean property.
  • Deterministic output format: always returns an array (even if only one file is selected).
  • No debug UI (clean component surface).
  • External reset trigger (host app controls when to clear).
  • Clipboard utilities for schema generation and AI assistance.

Output format

The output is a JSON string representing an array of converted files:

[
  {
    "fileName": "Invoice_001.xml",
    "content": { "...converted xml content..." }
  }
]


About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors