Make exported case numbers clickable with reliably visible hyperlink formatting in XLSX case export#172
Make exported case numbers clickable with reliably visible hyperlink formatting in XLSX case export#172
Conversation
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
|
@copilot Instead of adding a column with the portal URL for the case, make the case number a clickable hyperlink. Text should remain the case number, and if there is a portal case number (case was found in the portal), then associate it with the portal URL and make it a hyperlink. |
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
Updated in commit c610aac. The export now keeps the displayed text as the case number and applies the hyperlink directly to the Case Number cell when a portal caseId exists. I removed the added Case URL column and adjusted the export tests accordingly. |
|
@copilot It looks like the feature works, but there is no visual identifier in the spreadsheet to indicate that there are hyperlinks. Does the styling need to be applied, explicitly or is there a default that can be used? I'd expect blue, underlined text for hyperlinks and the standard text style, if not. |
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
Implemented in commit d804010. I now explicitly apply hyperlink font styling on linked Case Number cells ( |
|
@copilot I deployed these changes , but the case number links still did not show link-like formatting. |
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
Updated in commit ff31b0c. I switched linked case-number cells to use an Excel |
|
@copilot I see the HYPERLINK formula, but the text is still not formatted. |
Co-authored-by: jayhill <116148+jayhill@users.noreply.github.com>
Updated in commit 6d481cc. I now keep the |

Case export already produced
.xlsx, but exported case links were plain text and not reliably clickable/styled in spreadsheet apps. This change ensures exported case numbers are emitted as clickable hyperlink cells when a portal case ID exists, using formula-based hyperlinks for more reliable native link rendering.Export behavior updates
caseIdis available, map that case number toPORTAL_CASE_URL/#/{caseId}for hyperlinking.Case URLcolumn.Workbook hyperlink metadata
Case Numbercolumn by header.cell.l.Target) so spreadsheet clients render the case number as a clickable hyperlink.Workbook hyperlink rendering update
HYPERLINK(...)formulas on linkedCase Numbercells so spreadsheet clients more consistently display native hyperlink formatting.cell.l.Target) as a compatibility fallback.cellStyles: trueinXLSX.write(...)so style metadata is actually persisted in the exported workbook.Focused export test coverage
Case URLcolumn expectations.Case Numbercells.f,t,v) on linked case number cells.cellStyles: true.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.