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
1 vote
1 answer
513 views

Microsoft Graph general exception using filter expression with 'and' condition

I am trying to query a SharePoint list where I need to pull the last name (title), first name, email, and replacement name by filtering on the last name (title) and first name to make sure we have the ...
shannon's user avatar
  • 25
0 votes
1 answer
731 views

How do you add multiple filter values when using a Query String (URL) Filter web part on a SharePoint Online classic page?

I have a Query String (URL) Filter web part on my SharePoint Online classic page. I want to filter for multiple values and can't determined how to do this. I have appended the following with no ...
vrm's user avatar
  • 17
0 votes
1 answer
254 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 ...
kumar's user avatar
  • 139
0 votes
1 answer
143 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 ...
f_gulay's user avatar
  • 641
0 votes
2 answers
851 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 ...
akapital's user avatar
0 votes
0 answers
132 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 ...
Kree's user avatar
  • 1
0 votes
0 answers
653 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 ...
matt's user avatar
  • 589
0 votes
2 answers
1k 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 =...
trojanhorse's user avatar
1 vote
2 answers
615 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. ...
Mark L's user avatar
  • 4,055
0 votes
2 answers
1k 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", ...
BDC604's user avatar
  • 403
0 votes
3 answers
1k 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 ...
BDC604's user avatar
  • 403
0 votes
1 answer
176 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 ...
Dave ONeill's 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 ...
BDC604's user avatar
  • 403
0 votes
1 answer
281 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:...
adams-j's 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.
Dushi Sharma's user avatar
0 votes
2 answers
990 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 ...
Ruby Trustit's user avatar
2 votes
1 answer
879 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 ...
Christofer Ohlsson's user avatar
1 vote
0 answers
167 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 ...
Beruken's user avatar
  • 23
0 votes
1 answer
559 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 ...
murali kuruva's user avatar
1 vote
2 answers
2k 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 ...
murali kuruva's user avatar
0 votes
1 answer
768 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 ...
murali kuruva's user avatar
2 votes
0 answers
97 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 ...
Cory Cox's user avatar
0 votes
1 answer
2k 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 ...
LeonidasFett's user avatar
0 votes
0 answers
813 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 ...
Ariser's user avatar
  • 171
2 votes
1 answer
382 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 ...
AXA240778's user avatar
  • 499
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? ...
John Lee's user avatar
  • 109
4 votes
2 answers
7k 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 ...
Isa's 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.
f_gulay's user avatar
  • 641
1 vote
0 answers
35 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, ...
Sanjana V's user avatar
  • 301
2 votes
0 answers
225 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 ...
RomainB's user avatar
  • 23
1 vote
0 answers
110 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 ...
user68368's user avatar
0 votes
1 answer
163 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 ...
Alexey Krasheninnikov's user avatar
1 vote
1 answer
702 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 "...
TheJDScott's user avatar
0 votes
1 answer
406 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 ...
Oxossi's user avatar
  • 644
1 vote
2 answers
964 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 ...
bla9x's 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....
cbbrown's 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 ...
Adam13Hylo's user avatar
0 votes
2 answers
540 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 ...
Guy's user avatar
  • 1
-1 votes
1 answer
571 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 ...
derek's user avatar
  • 307
0 votes
1 answer
1k 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 ...
Tushar Chaudhari's user avatar
0 votes
1 answer
55 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 ...
Travis Easton's user avatar
1 vote
1 answer
349 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 ...
Johan Molina's 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/...
User2012384's user avatar
1 vote
0 answers
114 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://...
Kay's user avatar
  • 393
1 vote
1 answer
409 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 ...
Kay's user avatar
  • 393
1 vote
3 answers
423 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 ...
Thirusanguraja Venkatesan's user avatar
1 vote
0 answers
217 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 ...
Perneel's user avatar
  • 71
0 votes
1 answer
623 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'...
DaveK's user avatar
  • 3
1 vote
0 answers
107 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 ...
Aamir's user avatar
  • 401
1 vote
1 answer
8k 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 ...
Paul's user avatar
  • 111