Questions tagged [sharepoint-jsom]

The JavaScript Object Model (JSOM) is a SharePoint Client Object Model that enables you to work with objects on the client side without having to deploy code on the server.

135 questions
1
vote
1 answer

Convert CSOM to JSOM easily?

is it possible to convert or migrate easily a C# written web service from CSOM to the JavaScript object model JSOM? I think its mostly the "same" - except few things which are really really different. Maybe there is a tool for it or you have great…
1
vote
2 answers

Sharepoint 2013 Hosted App execute javascript on all pages load

I would like to know if it's possible to have a SP 2013 Hosted app that injects a piece of Javascript that gets executed on every page load. For the sake of simplicity, imagine that I want to create an App that on every page load of the SP Site…
AlexCode
  • 4,055
  • 4
  • 33
  • 46
0
votes
0 answers

Unable to save all records to SharePoint List via JSCOM

Hi I have this issue where not all records are being saved to the SharePoint List coming from my array , sometimes all records was saved. see below code that i used function savetoDetailList(id) { globalAuditTrailArr.forEach((a) => { …
BizApps
  • 6,048
  • 9
  • 40
  • 62
0
votes
1 answer

How to show less content lines using jsom in sharepoint

In need to develope page like below if(theString.length>100){ theString = theString.substr(0,100)+'...'; }
0
votes
2 answers

REST calls vs. JSOM calls from a sandbox solution to a SharePoint 2013 Site

I have an Angular 2+ application that happily execute calls via REST API to a SharePoint 2013 hosted in a different server. It works quite good but unfortunately for a very specific need (discussion boards) it's not enough. Here what I am…
0
votes
1 answer

createNewDiscussion/createNewDiscussionReply via JSOM in SharePoint Discussion Board from external Angular SPA

Scenario: I have an Angular SPA and a SharePoint 2013, installed in separated servers. I would like to consume a SharePoint discussion board in my SPA, means I would like to use my customized UI to perform CRU(D) operations on the SharePoint…
0
votes
2 answers

Get URL of each video in SharePoint 2013 library with JavaScript

I need to get the URL of each video in a library with JavaScript (I don't know how many videos will be in the library). I also need to get specific information about each video, such as date created. How would I do this? I am using a Script Editor…
0
votes
1 answer

Uploading attachment while editing a SharePoint list item using Jquery not working

I have a custom SharePoint item edit form. The form works well for everything until I try to add attachments. It says files have been uploaded but it doesn't upload. it gives me this warning on the console jquery-1.12.4.js:10208 [Deprecation]…
0
votes
2 answers

Update Infopath Form Library values through rest api or jsom?

Is it possible to update infopath form library field values programmatically either through rest api or JSOM? If so can you provide a sample? I've tried it both ways, and both times I'm getting success messages although the moment I review the form…
0
votes
1 answer

How to set property in property bag on root site collection using JSOM?

I am trying to update/create property in PropertyBag. Its working fine on classic experience (developer site and document center) but its not allowing application to start on modern site collections(root site, communication site and team site) and…
Asjad Ali
  • 25
  • 7
0
votes
1 answer

How to check in sharepoint spfx component if underlying o365 group of current site is public or private?

Is it possible to check this using jsom in the spfx component itself somehow? Otherwise I would need to call an external service, which would in turn call graph api, I am trying to avoid that. If that is the way to go however, what is the best way…
Taras
  • 205
  • 3
  • 8
0
votes
1 answer

How to change column type of SharePoint online list using JSOM?

I want to change the column type of list using JSOM. The type of column "Billable" is Boolean and I need to change the type of column to "Single line of text". Is there any method to change the type of column? Here is code: var oFields,…
0
votes
1 answer

JSOM: get_isSiteAdmin () is not distinguishing between users and administrator of site collection

if (user.get_isSiteAdmin()) { document.cookie = "licence=yes"; } I am using user.get_isSiteAdmin() but its always giving value false I can not give permission to site site collection Site Collection - Full Control in…
0
votes
1 answer

Which SharePoint API to use JSOM or REST?

I am a SharePoint novice and need help to determine which api set to use. I have given task to develop an outlook web add-in which will be side loaded to client's computer. This add-in will perform search on SharePoint lists and access content…
0
votes
1 answer

How to load attachment in client context?

I have a list with attachments. I want to fetch list records with attachment as a url in anchor tag. For ex- when user selects ID-100 then all its data will be retrieved and attachment in anchor tag to open it. I used JSOM for this and it is working…
Analyst
  • 3
  • 2
1 2 3
8 9