SharePoint 2013 Export Report in semicolon delimited file - sharepoint

how I can export reports from SharePoint 2013 in semicolon csv file.
I did that in SharePoint 2010 by applying some change the Reporting server, but the reporting service in SharePoint 2013 is different from SharePoint 2010.
In case you need it:
- I have 2 servers, one for SharePoint 2013 and the second is the database server (mssql 2014).

I found the answer here Adding a custom rendering extension to SQL Server Reporting Services 2012 for SharePoint 2010 integrated mode
For Pipe delimited text format
-Sharepoint managemnt shell as Admin
-Run Get-SPRSServiceApplication to get GUID ID
-Run New-SPRSExtension -identity YOUR GUID ID -ExtensionType "Render" -name "TxtPipeDelimited" -TypeName "Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering" -ServerDirectives "<OverrideNames><Name Language='en-US'>TXT Pipe Delimited</Name></OverrideNames>" -ExtensionConfiguration "<DeviceInfo><FieldDelimiter>|</FieldDelimiter><NoHeader>true</NoHeader><FileExtension>txt</FileExtension><ExcelMode>False</ExcelMode><Encoding>ASCII</Encoding></DeviceInfo>"
-Run iisreset in Cmd line as admin(development server not production)
This will export data without header, if you need to keep the header remove
<NoHeader>true</NoHeader>

Related

SharePoint Online (Office 365) - SharePoint Designer not allowing to save file

I installed SharePoint Designer 2013 and opened a site from our company's Office 365 SharePoint Online. When I try to make any changes in seattle.master (or any other html file) and save, it is showing following error message:
Server error: Access denied.
I setup my own user with full control (owner), so it seems to have enough rights.
Am I missing something?
Try enabling custom script on the site where you are trying to save the file.
You can do this using SPO Shell
Set-SPOSite https://contoso.sharepoint.com -DenyAddAndCustomizePages 0
Had this issue a couple days ago and this seemed to fix it.

SharePoint Designer 2013 Workflow - remove characters from string variable

I'm creating a SharePoint 2013 Workflow in SharePoint Designer (using SharePoint Online).
How can I remove 2 last characters of a string workflow variable?
Is there a way to do it for example using actions?
Download SharePoint Designer Workflow String Actions WSP from here: http://spdwfstringactions.codeplex.com/
I saved the file in c:\deploy\
To deploy this solution, run SharePoint Management Shell as Administrator:
> Add-SPSolution c:\deploy\<solution file>.wsp
> Install-SPSolution -Identity SPWorkflowStringActions.wsp -GACDeployment
Make sure SPDWorkflowStringActions assembly is in C:\Windows\assembly.
Open SharePoint Designer. Now in workflow actions you will have a String Actions group that you can you for string manipulations. I hope it'll help!
If you are using SPD 2013, you can use the Utiliy Actions from the Action menu and select one of the method that fits your need.
I hope this help...

SharePoint 2013 custom pages

I use SPWebApplication.UpdateMappedPage to update the default application pages with my custom pages. This seems to work with Sharepoint 2010. However, when I use the same code in SharePoint 2013 on any WebApplication, it does not reflect the changes. It defaults back to the specific SharePoint page (ex: 15\layouts\accessdenied.aspx) and does not use my custom page (ex: 15\layouts\custompages\accessdenied.aspx).
When I use this command:
Get-SPCustomLayoutsPage -Identity "AccessDenied" -WebApplication MyWebApp
it shows that the WebApplication is updated with the new value.
I have followed the steps from : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication.updatemappedpage.aspx but does not work on SharePoint 2013.
Is there something that I'm missing here?
This is an identified issue and will hopefully be resolved in a future hotfix. Here are my findings: http://blog.randomdust.com/index.php/2013/07/custom-access-denied-page-in-sharepoint-2013/
PowerShell Script:
We created and applied the custom Access Denied page in the web applications
Create the “custompages” folder in Layouts folder and WEB FRONT END server:
"c:\Program files\Common Files\Microsoft Shared\Web Server Extensions\
15\TEMPLATE\LAYOUTS\ custompages \Accessdeniederror.html"
Run PowerShell Command :
Set-SPCustomLayoutsPage –Identity "AccessDenied" –RelativePath
"/_layouts/15/custompages/Accessdeniederror.html" -WebApplication "http://raghuserver/"
Check Custom Layouts Pages Applied:
Get-SPCustomLayoutsPage –WebApplication “http://raghuserver/”
Run iisreset.exe.

Identify SharePoint Foundation or SharePoint 2010

I've a SharePoint installation in my virtual machine. How do I find whether it is SharePoint Foundation or SharePoint 2010? I've run this command -
Get-SPFarm | Select BuildVersion
and it is giving me the build version as 14.0.4762.1000. How do I identify the version from that?
Okay, should have searched a bit longer. I found it here - https://sharepoint.stackexchange.com/questions/3886/how-to-detect-the-edition-of-sharepoint-2010-installed. We can verify a regedit key to identify the GUID which matches to a SharePoint edition.
There is a page on MSDN http://msdn.microsoft.com/en-us/library/ff721969.aspx using registry access to list installed SharePoint products. However, sometimes you don't have enough permissions to look to the registry, or you want to use SharePoint API only - not to depend on registry paths. (You may need this check in some code that you deploy with a SharePoint solution where the registry access could be an unnecessary requirement.)
Your link to stackexchange above points out also a way using the SPFarm.Products property in PowerShell. This would be a complete code to check the SharePoint Server release in C#:
// B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0 : SharePoint Server 2010 Standard Trial
// 3FDFBCC8-B3E4-4482-91FA-122C6432805C : SharePoint Server 2010 Standard
// 88BED06D-8C6B-4E62-AB01-546D6005FE97 : SharePoint Server 2010 Enterprise Trial
// D5595F62-449B-4061-B0B2-0CBAD410BB51 : SharePoint Server 2010 Enterprise
Guid[] serverGuids = { new Guid("B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0"),
new Guid("3FDFBCC8-B3E4-4482-91FA-122C6432805C"),
new Guid("88BED06D-8C6B-4E62-AB01-546D6005FE97"),
new Guid("D5595F62-449B-4061-B0B2-0CBAD410BB51") };
// If a Server ID cannot be detected we are running on Foundation.
bool isServer = SPFarm.Local.Products.Any(productGuid =>
serverGuids.Contains(productGuid));
--- Ferda
For a customer project based on SharePoint 2013 we had the same problem. For this case we developed a simple Helper, which can be easily adapted for SharePoint 2010. More Informationen about the helper and how to use it can be found here:
http://msscorner.de/2014/06/11/identify-which-sharepoint-2013-edition-is-in-use/
If you wanna use this Helper for SharePoint 2010, you only have to change the SharePoint 2013 SKUs with the SharePoint 2010 SKUs, which are listed above.
I hope this will help you!

Ways of exporting site as a solution in SharePoint Foundation 2010

Is there any other ways of exporting a sites as solution in SharePoint Foundation 2010 except through "Site Settings -> Site Actions -> Save Site as Template"?
Seems to be the only way, just to make sure I'm not missing anything (through the designer probably? There's an option in the designer, but it brings you to the same "Save Site as Template" page)
Thanks!
In the out-of-the-box UI that's the only place to export a site, but note that unlike sp2007 this now export your site as a wsp-package
In the object model there are a couple of ways to export the site:
SPWeb.SaveAsTemplage
SPSolutionExporter.ExportWebToGallery
SPSolutionExporter.ExportWeb
AS part of Microsoft Course 10325A - Windows PowerShell 2.0 - backup / restore site collections.
PowerShell creates Cabinet files or .CAB files - http://en.wikipedia.org/wiki/Cabinet_(file_format). One nice thing about PowerShell is automation and you can easily perform the same task as you would via SharePoint 2010 Central Administration, in the Backup and Restore section.
Being scripted, you can provide any extension for your backup file. Extract and View the archive contents and modify, using "Extract.exe", provided with early versions of Windows and replaced in XP with "Expand.exe".
Rebuilding modified CAB files, is achieved with "MakeCab.exe", the Microsoft Cabinet SDK "CabArc.EXE" or any application supporting "application/vnd.ms-cab-compressed".
To restore a site collection using Windows Power Shell, from the Start menu, All Programs > Microsoft SharePoint 2010 Products.
Open SharePoint 2010 Management Shell (launch with Administrator rights, if required by right click and choosing "Run as Administrator").
Backup-SPConfigurationDatabase
Backup-SPFarm
Backup-SPSite
Get-SPBackupHistory
Restore-SPFarm
Restore-SPSite
The most fitting to your requirement;
Backup-SPSite
Restore-SPSite
Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak
Restore-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak
Great book filled with automation scripting with PowerShell, the book by Gary Lapointe - Automating Microsoft SharePoint 2010 Administration with Windows PowerShell 2.0
.Net namespace for C# code within PowerShell or PowerShell within.Net applications;
Microsoft.SharePoint.Publishing.Administration

Resources