Submits
  • Member for 7 years, 6 months
  • Last seen more than 2 years ago
  • United Kingdom
Sharepoint List Item field returning null using JSOM
Accepted answer
1 votes

Since you have Append Changes enabled you'll get back null as you've found. Here's an example of using SPServices to get what you need: https://social.msdn.microsoft.com/Forums/office/en-US/2ab5b035-...

View answer
Unable to remove Office 365 Group Site Collection
0 votes

According to this documentation the deletion of the site collection may not be instant. So I would give it some time and check again. When you delete a group, there can be a delay before the site ...

View answer
get all columns value from list dynamically? When I get name of column they will be internalName like 'LinkTitle' which is unknown?
Accepted answer
0 votes

One way of doing this would be with two REST calls. The first would get all columns in the list: /_api/web/lists/getbytitle('ListTitle')/fields Then take all the fields from the result of this call ...

View answer
Access user's OneDrive data using REST API
0 votes

You can use the Microsoft Graph to get data from various Office 365 services with a single REST end point. Here's the reference for OneDrive An example REST URL, to get the files at the root of the ...

View answer
Action on a transition trigger in State Machine Workflow
Accepted answer
0 votes

Have two transitions coming out of State 1, one going to State 2 and one going to State 3. For the transition condition you need to test the outcome field from the task. I can't remember what the ...

View answer
Task completion condition
0 votes

Your problem is with those first two conditions: "If future task count equals 0" means "if all tasks in the process have been created" "If active task count equals 0" means "if there are no more ...

View answer
How to embed/add jquery and bootstrap on the same page
0 votes

Use a script editor web part to avoid this message. Add this web part to the page. In the script just add your script references like so: <script type="text/javascript" src="location/to/your/...

View answer
How to update a list item with event reciever? Sharepoint 2013
0 votes

It could be that when you are doing currentItem.Update() it is then firing another ItemUpdating event. Disable event firing before doing the update, then re-enable it afterwards: public override ...

View answer
"The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column."
0 votes

Try putting the column name in square brackets like [Approval_x0020_Date]. The name should be the internal name of the column.

View answer
How to get ClientContext in CSR?
0 votes

Replace ExecuteOrDelayUntilScriptLoaded(CSR_Setup, "SP.js"); with SP.SOD.executeFunc('sp.js', 'SP.ClientContext', CSR_Setup);

View answer
Preset address in Hyperlink field on SPS2013 newform.aspx page
Accepted answer
0 votes

You can do this with a bit of JavaScript on the page. Edit the newform.aspx page and add a Script Editor web part with this code (note the use of jQuery hosted by Google: <script type="text/...

View answer
Sharepoint 2013, add pagebreak for printing
Accepted answer
0 votes

I recently had a similar requirement and achieved this with the page-break-before property. Assume you have some HTML on your page like this: <div id="table1" class="table-chart"></div> &...

View answer
SPS2013 Open document library PDF's in Modal dialog?
0 votes

When creating the modal dialog, in the options just try setting the URL to the location to the PDF file. I haven't tried this myself with a PDF file but it should work: var options = { title: "...

View answer
Remove "or drag files here" text
0 votes

Try this with jQuery. I haven't tested this myself so you may need to tweak it. var a = $("a[id^='idHomePageNewDocument']"); var aParent = a.parent(); a.remove(); aParent.html(""); aParent.append(a); ...

View answer
Document management with sharepoint
Accepted answer
0 votes

I hope this is enough to get you started: Create content types for each type of document/record Create site columns for each of your pieces of metadata Create content types for each document type ...

View answer
Using calculated column to highlight entire row in list
0 votes

You can do this with Client Side Rendering. Add the following JavaScript to your page. Note: you should check your conditions; I've just gone with the conditions mentioned in your question. SP.SOD....

View answer
Approval with Event Receiver
0 votes

Yes you can achieve this with an event receiver. The basic steps would be: Event receiver 1 is fired when a file is added in List A Event receiver 1 creates an approval task in List B and updates a ...

View answer
How to programmatically retrieve item version history from SharePoint hosted App?
Accepted answer
0 votes

If I understand your question correctly, you're trying to get all historic values of a multi-line text field. The SPServices library makes this quite easy. $scope.getFieldHistory = function (itemId, ...

View answer
Access denied when uploading file using REST API
0 votes

Are you including the the form digest? This is necessary when doing a POST. To get the form digest in postman first do a POST request with this URL: http://yoursite/_api/contextinfo You'll get a ...

View answer
How to change the sorting order in view selector?
0 votes

There's actually no out of the box way to sort the list of views for a document library or list. They are sorted alphabetically by default. Annoying, yes. You only really have one option: since the ...

View answer
Disable SPGroup in SharePoint 2013
0 votes

If you don't want the members of a group to be able to "do" anything, you can simply change the permission level of the group temporarily. Create a permission level Site settings > Site permissions >...

View answer
Copy a file content using event receivers?
0 votes

Use the SPFile.CopyTo method. SPFile.CopyTo Reference Example: SPSite oSiteCollection = SPContext.Current.Site; using(SPWeb oWebsite = oSite.AllWebs["Site_Name/Subsite_Name"]) { ...

View answer
Master Page Changes Not Being Reflected
Accepted answer
0 votes

Problem solved. I had to allow master page changes from SharePoint Designer from site collection settings > SharePoint Designer Settings > check Enable Customizing Master Pages and Page Layouts.

View answer
create column with year
0 votes

Try this. It will result in an array of strings that has ten years in it, from the current year to 10 years forward. Adjust the numbers in the for loop to your requirements. I haven't been able to ...

View answer
SharePoint structure for storing ad-hoc and project-based client data
0 votes

What's worked for me in the past is having a site for every client. On that site have a document library to store all relevant client related documents. On that site also have a document set for all ...

View answer
How to create a new InfoPath form in form library programatically using an event handler?
0 votes

See this link, which solves the same problem: https://xodeuz.wordpress.com/2015/06/15/programmatically-create-new-item-in-form-library/ I copy here the text from the article in case it goes down in ...

View answer
How to get workflow instance's Title/Name property using WorkflowServicesManager in SharePoint 2013
0 votes

A completely different approach you could try: var list = oWeb.Lists.GetList(listIDGUID, true); var item = list.GetItemById(itemID); foreach (var workflow in item.Workflows) { var workflowName = ...

View answer
How to get workflow instance's Title/Name property using WorkflowServicesManager in SharePoint 2013
0 votes

Try using the Properties property. foreach (var instance in workflowInstances) { var properties = instance.Properties; } I've never done this before, so to find what properties will be returned ...

View answer
change document set content type default view using JSOM client side
0 votes

You don't need any code to do this. This can be achieved through the GUI. Go to your site settings > site content types > click your custom document set content type > document set settings > under ...

View answer
Filter Webparts in SharePoint 2013?
0 votes

You can do this by applying filters to your list view. Either take an existing view and edit it or create a new view and in the view's settings you will find a "Filter" section.

View answer