Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [query-string]

The QueryString collection retrieves the values of the variables in the HTTP query string. The HTTP query string is specified by the values following the question mark (?). Several different processes can generate a query string.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Sharepoint open a file and search for specific keyword as query params

I would like to create a custom link to a sharepoint document by specifying with query parameters the search parameter. The use case is to create a screenshot of a specific page of a document ...
user avatar
  • 101
0 votes
0 answers
46 views

SharePoint column dynamic filter not working

I am use Query String URL to get param and filter library view.The param works and show exact files.But after use {param} not show column header filter values on my library
user avatar
  • 1
0 votes
1 answer
102 views

How to set dropdown value from query string in fabric dropdown

i am trying to set value in dropdown from query string but unable to do so , below is the code private SelectReferralFromQueryString(name) { name = this.GetParameterValues('Country'); if (name ...
user avatar
  • 87
0 votes
1 answer
58 views

Add a new keyword to Querystring to search in a Document Library

I created one managed property that is called Csearch and this brings true results when I search for <managed property>: <property value>. I go to Search Center and type this.Csearch:word ...
user avatar
  • 641
0 votes
2 answers
610 views

getURLParameter(ID)

Lots of great posts on using the getURLParameter(ID) to populate a lookup column in a NewForm.aspx when coming from a list view web part on another page. Here is my problem, the source url that I am ...
user avatar
0 votes
0 answers
43 views

Query string not bringing back results when URL parameter includes '20'

I have a query in a search result web part that is grabbing an event title from the URL parameter as follows: Event1OWSTEXT={QueryString.eventTitle} However, whenever there is a "20" in the event ...
user avatar
  • 1
0 votes
0 answers
497 views

Url query filtering links not working in modern Sharepoint?

In classic SP tacking a url query onto a page containing a list was a handy way of filtering the content: page.aspx?FilterField1=<internal field name>&FilterValue1=<value> This no ...
user avatar
  • 569
0 votes
2 answers
898 views

Querystring filter on documents

I have a list of documents who have a property (Related document ID) that I want to filter via query string Example: site.com/document?PolicyID=1 should view only documents who have the related ID =...
user avatar
1 vote
2 answers
364 views

osssearchresults.aspx page have problem on handling URL query string

I am setting up a SharePoint 2016 on-premise (Enterprise) environment. Right after I setup the first Search Service Application, I create a new site collection with Enterprise search center template. ...
user avatar
  • 4,016
0 votes
2 answers
838 views

How to pass and capture query string parameter to newform in modal dialog?

My modal dialog for newform is not capturing the query string value I'm trying to pass to it. Alert on main page confirms the qs value for XID is set correctly. var xid = GetUrlKeyValue("ID", ...
user avatar
  • 373
0 votes
3 answers
730 views

How to catch null or undefined query string parameters in SharePoint?

Grabbing query string values is easy in SharePoint with some javascript... var xid = GetUrlKeyValue("ItemId", false, location.href); But what if ItemId didn't exist in certain instances, how can you ...
user avatar
  • 373
0 votes
1 answer
133 views

How to extract part of url parameter for search

Background I have a site that stores archived data extracted from an old application environment (Lotus/IBM Notes). The data is stored as lots of individual .pdf files, 1 per record from the old ...
user avatar
0 votes
1 answer
17 views

Suggestions for context menu link with querystring value to NewForm results in Page Not Found

Trying to set up a custom action for a library to send querystring parameters to a NewForm on another list using the Navigate to URL option. Without a querystring value the link works; displays ...
user avatar
  • 373
0 votes
1 answer
182 views

Add list item in querystring in URL, ID needs to be hidden

Trying to add a list item, specifically the ID into a url in the DispForm.aspx. The customer does not want the ID displayed. I got the link in the display form, I figured out how to split out the ID:...
user avatar
  • 307
1 vote
1 answer
2k views

Replacement of QueryString web part in SharePoint Modern UI

Is there any replacement of QueryString Web Parts in Modern UI? SPFx is the last option.
user avatar
0 votes
2 answers
787 views

Passing query string to Survey list newform.aspx

Is it possible to send query string to newform.aspx of the survey form so it's pre-populated? (I am using SP 2010) The question in survey list is created is ServiceTicketNumber and then renamed the ...
user avatar
2 votes
1 answer
586 views

Updating maxQueryStringLength value in SharePoint 2013

I'm getting the following response from SharePoint search after submitting a long (> 2000 chars) queryString. The length of the query string for this request exceeds the configured ...
user avatar
1 vote
0 answers
153 views

SharePoint 2016 javascript reference 403 forbidden

This past March we installed a SharePoint 2016 instance on our 2012 server and have been using it without issue for 7 months now. Last week I came into work to find the list views functionally stopped ...
user avatar
  • 21
0 votes
1 answer
441 views

Extracting SharePoint data on daily basis

I want to export my SharePoint document library data on daily basis and csv file need to be save as naming convention as "Dataname_yyyyMMdd". As per my below script, it need to export data from the ...
user avatar
1 vote
2 answers
1k views

extract data from SharePoint document library to CSV using powershell

i am trying extract data of SharePoint document library to CSV file using powershell. I am getting data correct on CSv file. But one column i.e "Description" have more text data on it.So when run the ...
user avatar
0 votes
1 answer
599 views

How to split string condition on array with powershell script. Exporting SharePoint library data on csv file

i am trying export library data into CSV file. i had used string functionality on my script to get content. my script was working fine but i am getting output in single string (or) one column. My ...
user avatar
2 votes
0 answers
93 views

SharePoint 2013 List View Threshold with Query String Filter

I have done some research and I think I am ok, however I cannot take the risk of not knowing for sure. I have just developed a site that will host 8000 events per year (8000 List items) and there ...
user avatar
0 votes
1 answer
1k views

Replace Source query string value without redirecting

is there some way to replace the Source query string parameter in SharePoint without redirecting the user? All the examples I find use location.href="new url"; which causes the page to immediately ...
user avatar
0 votes
0 answers
748 views

Prefilling fields in NewForm.aspx with query string doesn't work

I have two lists. One describing projects, one project per row with several columns. The other one is a slightly modified task list, with every task assigned to a project from the other list using ...
user avatar
  • 171
2 votes
1 answer
366 views

Add filters/refiners to CQWP webpart

I am on SharePoint Online environment, As a high level summary, we currently have pages that use a PageQueryString as a filter for a CQWP. However, from the results that are displayed within the web ...
user avatar
  • 489
3 votes
4 answers
2k views

JavaScript - Rearrange String order?

var date = $(this).attr("ows_Date"); My current code displays a string output: 2017-01-02 Is there a Javascript code where I can move the first 4 digit to the back? How do i turn it into 01-02-2017? ...
user avatar
  • 109
4 votes
2 answers
6k views

How to pass multi select filters with query string using webpart connections

Sharepoint online currently has the function to do a multiselect on filtering of particular column when you are using a list webpart. I was able to use a query string webpart to filter one value, but ...
user avatar
  • 410
1 vote
2 answers
3k views

How can i use QueryString with Sharepoint list programmatically?

I want to pull datas from list with queries. I want to use many queries with C# code. And there is QueryString in C#. I want to use it. So how can i do this.
user avatar
  • 641
1 vote
0 answers
34 views

Opening a page from Email link does not populate the form with data, in that page

On performing some action(approve/reject a request) an email is generated with a link in it. On clicking the link, a SharePoint QA page opens that contains a form. All that works well! My issue is, ...
user avatar
  • 301
2 votes
0 answers
221 views

Return QueryString(ID) as an integer

I actually have a custom dispform with a XsltListViewWebPart. This list has a column called RootId. I need to filter data from this list based on the ID set in the page's URL. I can query the ID in my ...
user avatar
  • 23
1 vote
0 answers
93 views

Date range filter in OOTB for SPListview

I am working on a project in SharePoint 2013. Currently I am trying to implement list view filtering using OOTB QueryString parameters. I have found the following params have been working a treat ...
user avatar
0 votes
1 answer
144 views

How to make forms in ModalDialog (IsDlg) respect Source and redirect accordingly to a 'thanks' page after submit?

Has someone already solved the conflict between IsDlg and Source query string parameters to allow a redirect after form submission in a SP.UI.ModalDialog? Per chance even when an InfoPath form is ...
user avatar
1 vote
1 answer
617 views

Modal-Pop up showing a List of Related Documents filtered by individual List Item in a LVWP

I have an item list called "MyPeople". I have a document list called "MyDocs". I associated documents in "MyDocs" to list items in "MyPeople" via Lookup field. On my Site page, I have a LVWP for "...
user avatar
0 votes
1 answer
387 views

Is it possible to combine contentclass terms in a Rest call?

SharePoint onPremise - 2013. I'm attempting to use the following string, and get errors. 'contentclass:"STS_Web" OR contentclass:"STS_List_DocumentLibrary"'; It works perfectly if I specify a single ...
user avatar
  • 644
1 vote
2 answers
866 views

Control redirect on saving new Document Set with NewDocSet.aspx

Does anyone have any experience with controlling the redirect when creating a new document set with NewDocSet.aspx? Our client would like the ability to create a new document set and be returned to a ...
user avatar
  • 171
2 votes
2 answers
6k views

Source Querystring Parameter

I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form. Here's the Source URL I am using: https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm....
user avatar
  • 787
3 votes
1 answer
2k views

SharePoint REST orderby ArticleStartDate not working

I am trying to run a rest query to return the top three items from within a folder in a pages library, I have the code working however when I try to add an 'orderby' or 'top' parameter to the query it ...
user avatar
0 votes
2 answers
511 views

Passing multiple queries from a Web Part in order to filter a view

I am aware that using URLs like http://site/Lists/MyList/AllItems.aspx?FilterField1=Title&FilterValue1=ExactTitle&FilterField2=Year&FilterValue2=ExactYear will display a filtered view ...
user avatar
  • 1
-1 votes
1 answer
557 views

Query string filtering by custom field

i added a custom action in sharepoint designer which is a url link to a document library. On this document library page i have added a query sting filter webpart, to filter data based on a list ID. I ...
user avatar
  • 307
0 votes
1 answer
982 views

Filter SharePoint view on basis of URL parameters

I'm developing my site on SharePoint 2013. I've created a view called Advance view. I'm passing 6 parameters to that view in query string(URL). My requirement is if I pass only 3 parameters in query ...
user avatar
0 votes
1 answer
54 views

Migrating string to Sharepoint Online in Workflow

I moved a workflow to our Sharepoint Online enviroment from on prem. I am having a hard time figuring out the correct format for the URL string. The first image is the original string The second is ...
user avatar
1 vote
1 answer
324 views

How do I add the title of a list item to a custom action URL?

I'm trying to build a custom action button that links to a page with a query string URL. I've tried "?Project={ItemTitle} but that doesn't work. I can get the ID by adding "?Project={ItemId}" but ...
user avatar
3 votes
1 answer
2k views

How to add multiple condition filtering in query string to list view

I've gone through some articles, knowing that I can use querystring to filter a list web part: https://msdn.microsoft.com/en-us/library/cc751316.aspx https://stackoverflow.com/questions/24702889/...
user avatar
1 vote
0 answers
107 views

2010: attach URL parameters to the base url of the iframe

I have an iframe in my page which has the URL http://example.com/test.aspx?ItemID=n. I want the iframe in my page to load the item id in the query string so that the URL inside the src becomes http://...
user avatar
  • 393
1 vote
1 answer
357 views

2010: How to pass query string filter values to iframe

I have a page viewer webpart in a page where I want the ItemID to be updated dynamically when the page loads. Since I cannot filter values using query string, how can this be achieved? Thanks in ...
user avatar
  • 393
1 vote
3 answers
402 views

SharePoint Designer 2007 QUERY STRING to populate current user name in NewForm.aspx

I am trying to create custom NewForm.aspx. This form should auto populate current user login name display name and email details in the form when user load the NewForm.aspx. Note : Without using ...
user avatar
1 vote
0 answers
207 views

Fill in External Item Picker (BDC) with query string value with InfoPath

We are trying to customize a 'new' form with InfoPath so that our query string value (idPatient) is automatically filled in into the External Item Picker (BDC entity). In InfoPath, we have set up the ...
user avatar
  • 71
0 votes
1 answer
597 views

SharePoint 2010 InfoPath Web Part Query from Query String Web Part

I have been wracking my brain, Google, blogs, etc. for an answer to my problem for about the last day and finally gave in to ask the question. I'm fairly new to InfoPath, but less new to SharePoint. I'...
user avatar
  • 3
1 vote
0 answers
105 views

Using default and user selected filters for a list

I want to filter a main/task list based on what's being selected in a Sharepoint List Filter Web part. However if there is a "querystring" in the URL, then I want the List filter autoselected to whats ...
user avatar
  • 401
1 vote
1 answer
7k views

Pass the query string value to NewForm.aspx SharePoint Online/365

i know there is an answer to this in shareponit 2013 and that SharePoint Online/365 should be pretty much the same, however i can't seem to get the following code (not my own, this is taken from a ...
user avatar
  • 111