Between a rock and a hard place (handling long URLs OR adding filter web parts to modern pages)

%3CLINGO-SUB%20id%3D%22lingo-sub-126032%22%20slang%3D%22en-US%22%3EBetween%20a%20rock%20and%20a%20hard%20place%20(handling%20long%20URLs%20OR%20adding%20filter%20web%20parts%20to%20modern%20pages)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-126032%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20of%20our%20departments%20(the%20Architecture%20program%20at%20our%20University)%20has%20a%20site%20that's%20being%20built%20out%20for%20an%20Accreditation%20Review%20in%20February.%20In%20that%20site%20are%20several%20lists%20and%20libraries%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EA%20list%20of%20courses%3C%2FLI%3E%3CLI%3EA%20list%20of%20criteria%20used%20to%20identify%20content%20for%20the%20the%20accreditation%20review%20board%3C%2FLI%3E%3CLI%3EA%20library%20of%20%22course%20documents%22%20(a%20document%20set%20per%20course)%3C%2FLI%3E%3CLI%3EA%20library%20of%20%22student%20evidence%22%3C%2FLI%3E%3C%2FOL%3E%3CP%3EHere's%20the%20issue%3A%20They%20need%20to%20identify%20specific%20courses%20which%20align%20with%20specific%20criteria%20and%20provide%20the%20review%20board%20an%20easy%20way%20to%20get%20to%20a%20view%20of%20the%20Student%20Evidence%20list%20filtered%20by%20Criteria%20and%20Course.%20They%20LOVE%20the%20%22modern%20library%22%20experience%20(document%20previews%20in%20particular%20since%20these%20are%20almost%20all%20PDFs)%2C%20but%20the%20only%20way%20to%20get%20a%20filtered%20view%20in%20a%20modern%20experience%20is%20to%20use%20the%20rather%20verbose%20%22%3FuseFiltersInViewXml%3D1%26amp%3BFilterField1%3D%22%20syntax%20with%20URL-encoded%20filter%20values.%20I%20can%20programmatically%20build%20that%20URL%20(in%20either%20Flow%20or%20SPD%202013%2C%20but%20for%20the%20longest%20course%20names%2C%20the%20URL%20ends%20up%20being%20nearly%20300%20characters%20long.%20The%20URL%20column%20type%20has%20a%20255%20character%20limit%2C%20so%20neither%20method%20is%20able%20to%20write%20the%20URL%20into%20the%20appropriate%20column.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I've%20done%20for%20now%20is%20replicate%20what%20we%20did%20in%20SP2010%20(on%20prem)%20as%20a%20demo.%20That%20is%2C%20I%20created%20a%20(web%20part)%20page%20called%20%22Evidence%22%20which%20has%20a%20web%20part%20for%20the%20Student%20Evidence%20library%20and%20two%20Query%20String%20Filter%20web%20parts%20(one%20for%20Criteria%20and%20another%20for%20Course).%20By%20using%20the%20ID%20values%20of%20those%20two%20lookup%20fields%2C%20the%20URL%20is%20short%20enough%20to%20work.%20The%20downside%20is%20that%20they're%20stuck%20with%20the%20%22classic%22%20look%20(no%20PDF%20previews)%2C%20which%20is%20a%20major%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20what%20I%20need%20is%20either%20a%20way%20to%20have%20a%20hyperlink%20field%20with%20a%20URL%20up%20to%20about%20300%20characters%2C%20OR%20for%20MS%20to%20provide%20an%20equivalent%20to%20the%20Query%20String%20Filter%20web%20part%20for%20modern%20pages.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20before%20you%20start%20throwing%20out%20%22did%20you%20try...%22%2C%20here's%20what%20I%20have%20tried%3A%3C%2FP%3E%3COL%3E%3CLI%3EIn%20SPD%2C%20using%20a%20multi-line%20parameter%20rather%20than%20a%20regular%20workflow%20variable%20-%20could%20get%20it%20to%20store%20the%20URL%2C%20but%20not%20format%20it%20as%20a%20hyperlink%3C%2FLI%3E%3CLI%3EReplacing%20the%20%22base%22%20URL%20(e.g.%3A%20%22%3CA%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F%3CSITE%3E%2F%3CLIBRARY%3E%2F%3CVIEW%3E%3C%2FVIEW%3E%3C%2FLIBRARY%3E%3C%2FSITE%3E%3C%2FA%3E%26gt%3B%22)%20with%20a%20shortened%20URL%20(from%20bit.ly)%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAny%20suggestions%20would%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-126032%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Frequent Contributor

One of our departments (the Architecture program at our University) has a site that's being built out for an Accreditation Review in February. In that site are several lists and libraries:

 

  1. A list of courses
  2. A list of criteria used to identify content for the the accreditation review board
  3. A library of "course documents" (a document set per course)
  4. A library of "student evidence"

Here's the issue: They need to identify specific courses which align with specific criteria and provide the review board an easy way to get to a view of the Student Evidence list filtered by Criteria and Course. They LOVE the "modern library" experience (document previews in particular since these are almost all PDFs), but the only way to get a filtered view in a modern experience is to use the rather verbose "?useFiltersInViewXml=1&FilterField1=" syntax with URL-encoded filter values. I can programmatically build that URL (in either Flow or SPD 2013, but for the longest course names, the URL ends up being nearly 300 characters long. The URL column type has a 255 character limit, so neither method is able to write the URL into the appropriate column. 

 

What I've done for now is replicate what we did in SP2010 (on prem) as a demo. That is, I created a (web part) page called "Evidence" which has a web part for the Student Evidence library and two Query String Filter web parts (one for Criteria and another for Course). By using the ID values of those two lookup fields, the URL is short enough to work. The downside is that they're stuck with the "classic" look (no PDF previews), which is a major issue.

 

So, what I need is either a way to have a hyperlink field with a URL up to about 300 characters, OR for MS to provide an equivalent to the Query String Filter web part for modern pages. 

 

And before you start throwing out "did you try...", here's what I have tried:

  1. In SPD, using a multi-line parameter rather than a regular workflow variable - could get it to store the URL, but not format it as a hyperlink
  2. Replacing the "base" URL (e.g.: "https://tenant.sharepoint.com/sites/<site>/<library>/<view>") with a shortened URL (from bit.ly)

Any suggestions would be appreciated.

 

0 Replies