Thursday, July 18, 2019

SharePoint Online :  Access denied when uploading .aspx page to SitePages

By default, SharePoint online does not allow uploading custom .aspx pages to its site pages library.


For people with applications developed on pure react/angular and want to migrate content to SharePoint Online would be a blocked unless you want to migrate to SPFx.

Resolution:
This can be fixed by running custom scripts from admin console using  the SharePoint Online Management Shell to execute the script below.

PS Command:

$adminUPN="name@business.com"$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

Connect-SPOService -Url https://business-admin.sharepoint.com -Credential $userCredential


After this connection establishment, run the following script to connect to your site and enable

Set-SPOSite -Identity https://business.sharepoint.com/sites/site1/ -DenyAddAndCustomizePages $false

This should enabled uploading custom files to online site pages in the SharePoint Online.
If still issues persists, try enabling the allow custom scripts and try to run the scripts and you can disable it back.



Hope this helps…

Happy Browsing!
Relax..

Tuesday, January 31, 2017

SharePoint 2013/10 - Infopath Forms - Multiline Text box not splitting lines


InfoPath forms when used on the SharePoint list, some multi-line fields will not show line breaks and it keeps in one liner while read or edit of form.

To fix this issue, you can add a small css correction on the master style sheet or as is required.
InfoPath form multi-line text box will render as text area and hence below css will override it wrap the text.

textarea
{
    white-space: pre-line !important;
}

Please this as is on your css or on page as required to over come this issue. Hope this helps.



Happy Browsing!
Relax..

Wednesday, January 18, 2017

SharePoint 2013/10 - Generate PPT presentation from SharePoint List Data

Trying to Generate PPTX presentation from SharePoint - try this

Include the PptxGenJS framework in an HTML webpage (client-side) or Node.js project (via NPM) to gain the ability to quickly and easily produce PowerPoint presentations with a few simple JavaScript commands.

Source:  http://gitbrent.github.io/PptxGenJS/

You can use the above code with SharePoint CSOM code to make it dynamic to pull reports and ppt's

Happy Browsing!
Relax..