Skip to content

mike-morr/fable-import-sharepoint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fable-import-sharepoint

Fable bindings for SharePoint. Simple library that can be used to create client-only SharePoint application in F#.

Complete application

One of the easiest way to crate SharePoint application is to create the lists and then create custom forms. You can then modify the form HTML to comply with your requirements.

These days users are used to web applications that contain client functionality like validations, autocomplete etc. written in JavaScript.

There are already some helper JavaScript libraries like SharePoint Cascaded Lookups - JavaScript based or The Patterns and Practices JavaScript Core Library.

If you want to build an application in SharePoint and modify the form functionality in F#, you implement IApplicationV2 interface.

JavaScript API reference for SharePoint 2013 (JSOM)

Most of the functions from JavaScript API reference for SharePoint 2013 (JSOM) are available as Fable interfaces and F# functions.

async {
    let! currentUser = clientContext |> getCurrentUserAsync
    let selectedIds = getSelectedIds()
    let list = web.get_lists().getByTitle(listName)        
    logO "List" list
} |> Async.StartImmediate

Releases

No releases published

Packages

No packages published

Languages

  • F# 99.5%
  • JavaScript 0.5%