Thank you for visiting my site!

Home / Lists / Link to a View using URL parameters

Link to a View using URL parameters

  1. will need a link to a list:
    https://sitename.sharepoint.com/sites/Lists/Listname/AllItems.aspx
  2. and the url variables:
    ?FilterField1=FieldName&FilterValue1=FilterValue&FilterField2=FieldName&FilterValue2=FilterValue
  3. Format column, use a current field, change it to a Url and pass theID [code]{
    "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
    "elmType": "a",
    "txtContent": "@currentField",
    "attributes": {
    "href": "=’https://siteName/Lists/FRMReportTasks/AllItems.aspx?FilterField1=FileID&FilterValue1=’+[$ID]",
    "target": "_blank"
    }
    }[/code]

ADD YOUR COMMENT