Hi everyone, I'm working on existing list having columns formating on a column.
This column formatting allow to have 2 icons each containing a link.
Here is my question. How can I recover the link of the 1st or 2nd icon of this column ?
Please see the column formatting json code :
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"children": [
{
"elmType": "a",
"attributes": {
"target": "_blank",
"href": "= (substring([$Documents], 0, if(indexOf([$Documents], '?csf') == -1, indexOf([$Documents] + '%§^$@*#', '%§^$@*#'), indexOf([$Documents], '?csf'))) + 'Exemple link/Exemple Link'", // Définit l'URL du lien en utilisant des fonctions de traitement de chaîne.
"iconName": "ExcelDocument",
"class": ""
},
"style": {
"cursor": "pointer",
"font-size": "250%",
"text-decoration": "none",
"color": "#107C41"
}
},
{
"elmType": "a",
"attributes": {
"target": "_blank",
"href": "= (substring([$Documents], 0, if(indexOf([$Documents], '?csf') == -1, indexOf([$Documents] + '%§^$@*#', '%§^$@*#'), indexOf([$Documents], '?csf'))) + 'Exemple link/Exemple Link'",
"iconName": "FolderQuery",
"class": ""
},
"style": {
"cursor": "pointer",
"font-size": "250%",
"text-decoration": "none",
"color": "#000000",
"margin-left": "0.8em"
}
}
]
}

here is what it looks like ↑
I replaced my links by "Exemple link/Exemple Link" but everything else is exactly the same.
If you have ideas or advices I'm ready to sent you lot of kudo !
Greatings
Protosup'