Description
We have Hyperlinks for various configured entities forming proper hyperlinks (e.g., [ENTITY] (LINK)). This functionality works well for most of the ENTITY/FIELD except for "PorjectId".
For the "ProjectId" entity, M365 fails to render the hyperlink correctly and displays only the link (e.g., (LINK)), as shown below. Interestingly, the M365 agent displays the link correctly in the debug information of the plugin, but it somehow fails to render the hyperlink properly for the "ProjectId" column/field specifically.
Here Project Name filed is showing proper hyperlink but Project Id filed is showing raw hyperlink inseatd it should also display proper hyperlink since markdown text for both is same.
Sample json response data: update with sample test data.
{"markDownResult":"**Top 3 Active Projects**\n\n- **Project ID**: [12345](https://test.com/ProjectDetail?ProjectId=12345)\n - **Project Name**: [MFE-](https://test.com/ProjectDetail?ProjectId=12345)\n - **State**: Active\n\n- **Project ID**: [56789](https://test.com/ProjectDetail?ProjectId=56789)\n - **Project Name**: [FY20-MCS](https://test.com/ProjectDetail?ProjectId=56789)\n - **State**: Active\n\n- **Project ID**: [28914](https://test.com/ProjectDetail?ProjectId=28914)\n - **Project Name**: [FY20_SVS](https://test.com/ProjectDetail?ProjectId=28914)\n - **State**: Active"}
We tried numerous iterations with various instructions; however, the M365 Agent is still unable to render hyperlinks correctly in the 'Project Id' field/column.
Below one of the sample instructions, tried (Included instruction only with respect to hyperlink rendering - for brevity) :
- Ensure that all hyperlinks present in the plugin response—regardless of their location (including within fields, columns, IDs, or any other part of the data)—are preserved exactly as provided and rendered as user-friendly, clickable links in the output. Never display hyperlinks in raw or unformatted form.
- Always format ProjectId links using Markdown, displaying the ProjectId as the link text and the corresponding URL as the target. For example: 12345.