3

The best and simple way is to create a JS folder in your Style Library under Site Contents in the current site then reference it into your masterpage like this : <script src="https://tenant/yoursite/Style Library/yourProject/js/yourcustomscript.js"> and you can also make modification directly on your file in SharePoint Online and see results instantly.


2

I think you are adding this code in wrong place. Try following approach: How to set the JSLink property of your Web Part: Create JavaScript file with the code you are using. Click on Gear icon at top right corner. Edit the Page on which you have added list web part. Select the list web part and edit web part properties. Go to Miscellaneous --> JS Link ...


1

That is mostly due the async nature of the HTTP requests. To upload the file and then set it properties correctly, you can do so as below: pnp.sp.web.getFolderByServerRelativeUrl("/sites/mysite/ConfigDL").files.add(fileOgg.name, fileOgg, true).then(f => { f.file.getItem().then(item => { //update start Below Call to Doc List will update ...


1

Just as CarIF said, you can use flow to send HTTP request and create a new library through Rest API. Please check this:https://www.fidelityfactory.com/blog/2019/3/15/using-the-powerful-sharepoint-http-action-in-ms-flow-to-create-modern-libraries And then you can use an update list item action to add the link to the list item.


1

Have you looked at Microsoft Flow? You can add a custom action whenever an item is added to a list. Some of the options are to create a SharePoint folder, file, or item, and to create a sharing link. If a folder will suit your needs instead of a new library, you can do it without coding at all. The process might be to open the list in SharePoint, then click ...


1

After parking it for a few days i have managed to get it working by removing the following calls:- set_location set_registrationId set_registrationType set_sequence I have also removed the icon references because they were invalid.


1

You can always use a middle click in your mouse to open a new tab. And here are some scripts you can have a try if you can add content editor to your page. SPO 2013 - How to open Links List items (websites) in a new window/tab when clicking with the left mouse button? https://gallery.technet.microsoft.com/Open-SharePoint-Links-into-76550ff1/view/...


1

What you are seeing is an iframe, so go check the url that is being displayed. Most probably it is something along the lines of https://my.sharepoint.com/path/to/site/_layouts/15/Upload.aspx?List=%7B[id-of.list]%7D&RootFolder=%2Fsome%2Fpath then you know "what" to show. As to how: Use SP.UI.ModalDialog.showModalDialog So, most probably you need to ...


1

As you said users are uploading file via explorer you don't have control over running any javascript code also. Below are couple of options I can think of Use MS Flow - Trigger point would be when file is created, check if metadata is empty, if so send email to user. Other thing you can do is create a schedule flow to do same thing by getting library items ...


1

Please insert a Script editor on the page and put the below code in it : <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("input[title = 'Title of your column']").css('width', '200px'); }); </script> You can check the ...


1

The endpoint is different for SP2010. The URL below will return all SharePoint Groups on a site collection. <SiteCollectionUrl>/_vti_bin/Listdata.svc/UserInformationList?$filter=substringof('SharePointGroup',ContentType) eq true There's another way to achieve what you are trying to do with SPServices. $().SPServices({ operation: '...


1

I found a solution! The properties I am looking for are inside a web part labelled "Web Part Page Title Properties". Here is the REST API call: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/GetFileByServerRelativeUrl('" + {{Url of Web Page}} + "')/GetLimitedWebPartManager(1)/WebParts" + "?$expand=WebPart/Properties" + "&$filter=WebPart/Title eq 'Web ...


1

Modify the code snippet as below: var count = listItems.get_count(); var arraySubnet = []; var listEnumerator = listItems.getEnumerator(); while (listEnumerator.moveNext()) { listItem = listEnumerator.get_current(); id = listItem.get_item("ID"); currentSubnet = listItem.get_item('Current_x0020_Public_x0020_IP_x0'); newSubnetRequested = ...


Only top voted, non community-wiki answers of a minimum length are eligible