The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Dear @Ghada Mehrez
I understand the distinction: this question concerns displaying existing metadata values on separate lines, rather than automatically populating columns. Thank you for providing the JSON and comparison screenshot.
Your formatter already displays manually selected terms correctly. I would first check what “Term plus parent” writes to the column, since that may explain why the same formatting produces a continuous string.
Could you please confirm:
- Is “Term plus parent” a Power Automate flow, a custom script, or a column setting? Please share its configuration with sensitive details hidden.
- Does it update the same managed metadata column, or a separate text/calculated column?
- After it runs, when you edit the item, do the terms appear as separate selectable entries, or as one combined value?
- Could you provide one anonymized example of the expected display and the actual result?
Your forEach creates a row for each entry it receives. If the automation stores the entire parent-and-term sequence as one entry, it would explain the single continuous result. I would confirm that before suggesting different JSON, so the solution preserves your intended term hierarchy.