Archive for octobre 2013
How to install SharePoint 2013 with controlled names for databases
Are you having a similar name for your adminCentral database : SharePoint_AdminContent_[GUID] ?
If you are looking for more control, this is how you can create databases with "better" names :
- Launch the SharePoint 2013 Management PowerShell as an Administrator.
- Type this :
Code:
New-SPConfigurationDatabase -DatabaseName CONFIG_DB_NAME_HERE -DatabaseServer SERVER_NAME_HERE -AdministrationContentDatabaseName ADMIN_DB_NAME_HERE -FarmCredentials (Get-Credential) -Passphrase (ConvertTo-SecureString "TYPE_YOUR_PWD_HERE" -AsPlainText -Force)
Notice that you can use this command, only before executing the SharePoint 2013 configuration Wizard, so just after binaries been installed.
During the installation, you'll be asked to launch the wizard and continue the process. You'll have to uncheck the checkbox.
Posted By:
How to know whether or not you are liking SocialPost - Sharepoint 2013 Client Object API
Today, I'd to speek about giving users the possibility to like SharePoint 2013 posts using the Client Object API.
You'll need to instanciate your SocialFeedManager with your context, and then call the "LikePost" method with the postId you would 'like'.
Code:
public SocialThread LikeThisPost(string SharePointWebUrl, string PostId) { SocialFeedManager feedManager = new SocialFeedManager(ctx); ClientResult thread = feedManager.LikePost(PostId); ctx.ExecuteQuery(); return thread.Value; }
No need to try to implement some logic for getting this, SharePoint has already done this for you.
Code:
bool CurrentUserLikesThis = socialPost.LikerInfo.IncludesCurrentUser;
Posted By:
My First Post
Posted By:
Copyright @ 2013 Nizar Joober - I'm SharingPoints. Designed by Templateism