Hello,
Can anyone please suggest how to create a Site based on Site Template from a Workflow in SharePoint Office 365.
Thanks,
Meenakshi
Hello,
Can anyone please suggest how to create a Site based on Site Template from a Workflow in SharePoint Office 365.
Thanks,
Meenakshi
Hi,
I managed to read all available Web- and Site-Features via JSOM. Unfortunately only the FeatureId is accessable. Is there any chance to get the feature name and description (maybe by ID) for a feature using JSOM?
Best regards
Daniel
Hi Guys,
I'm developing custom event receiver. I want to capture events of site pages. I need ListTemplateID for Site Pages. Could any one help me to find ListTemplateID for SitesPages in SharePoint 2013.
Thanks,
Nattuthurai.K
Hi All,
I have a requirement to show a success message on the list form(new and edit). So when a user creates an item or edit an item, I want to show a success message on the page it self.
Thanks in advancs
Hello All,
i done the Count Attachment's in SPList and storing the count value in separate column. The problem is when in list we cross the 100 itmes , the list page takes more time for loading and list page is getting error .
And my actual list is contains 1000 items .
Below is the code i used ,please check and upadate the code for better page performance.Please help me.
<script type="text/javascript" src="/Style%20Library/jquery-1.12.0.min.js"></script><script type="text/javascript">
$(document).ready(function () {
getListItems();
});
function getListItems()
{
$.ajax({
url: "Https://www.example.com" + "/_api/web/lists/getbytitle('ListName')/items",
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
for (var i = 0; i < data.d.results.length; i++) {
//console.log(data.d.results[i]);
var itemscount = getattachments(data.d.results[i].ID);
console.log(itemscount)
function getItemTypeForListName(name) {
return "SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
}
var item = {
"__metadata": { "type": getItemTypeForListName("Listname") },
"AttachmentCount": itemscount
};
$.ajax({
url: data.d.results[i].__metadata.uri,
type: "POST",
contentType: "application/json;odata=verbose",
data: JSON.stringify(item),
headers: {
"Accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": "*"
},
success: function (data) {
console.log("Success");
},
error: function (data) {
console.log("Fail");
}
});
}
},
error: function (data) {
failure(data);
}
});
}
function getattachments(itemid)
{
var url = "https://www.example.com" + "/_api/web/lists/getbytitle('listname')/items(" + itemid + ")/AttachmentFiles";
var itemscount;
$.ajax({
url: url,
headers: {
"Accept": "application/json; odata=verbose"
},
method: "GET",
async: false,
success: onQuerySuccess,
error: onQueryError
});
function onQuerySuccess(data) {
if (data) {
//console.log(data.d.results.length);
var items = data.d.results;
itemscount = data.d.results.length;
for (var i = 0; i < items.length; i++) {
//console.log(items[i].FileName);
}
}
}
function onQueryError(error) {
attCount =0;
alert(error.statusText);
}
return itemscount;}
</script>
Thanks in Advance.
Regards,
Santto
UserNotFoundException on ProfileRedirection from userdisp.aspx to person.aspx
Context:
- SharePoint 2013
- AD authentication and FBA authentication.
Issue: I am unable to see the profile of FBA users, when I click on the user's name from any site collection. i.e if I go to any SP group and click on any user , the _layouts/15/userdisp.aspx is throwing below error:
DelegateControl: Exception thrown in OnFormInit() method of child control for ControlId='ProfileRedirection'. Exception: Microsoft.Office.Server.UserProfiles.UserNotFoundException: An error was encountered while retrieving the user profile. at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount) at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail) at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName) at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.RedirectIfNecessary(SPListItem user) at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.OnFormInit(Object objOfInterest) at Microsoft.SharePoint.WebControls.DelegateControl.CallFormInitForChildren(Object objOfInterest) Application error when access /_layouts/15/userdisp.aspx, Error=An error was encountered while retrieving the user profile. at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount) at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail) at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount) at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName) at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.RedirectIfNecessary(SPListItem user) at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.OnFormInit(Object objOfInterest) at Microsoft.SharePoint.WebControls.DelegateControl.CallFormInitForChildren(Object objOfInterest) at Microsoft.SharePoint.ApplicationPages.UserDisplayPage.OnInit(EventArgs evtargs) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Troubleshooting done so far:
1.The user profile is existing for the users and I can see the profils from Central Admin. The personal site collection already exists and if I copy the url from Site Collection list in central admin, and paste it into a browser, it works fine.
2.The issue is occurring only for FBA users and redirection is working perfectly for windows AD users (ie redirected to profile page)
Hi,
I have two web applications in a Farm with following information:-
WebApplication-1
Associated Content Databases:-
ContentWA1DB1
ContentWA1DB2
===========================================
WebApplication-2
Associated Content Databases:-
ContentWA2DB1
ContentWA2DB2
Question:- Can i dismount content db's (ContentWA2DB1,ContentWA2DB2) from WebApplication-2 and attach them to Webapplication-1 in the same farm.I tried doing that in my dev farm but no one could access the sites after that.
I am trying to modify a PowerShell 5 script to add Links to the SharePoint 365 online Global Navigation bar of my sites. I currently have a script which will add a Header to the Global Navigation Bar, but rather than add headers, I need to modify it to add “Links”.
Referencing the diagram below, I need the new link to appear as the example “Link1” Currently I can only add a header with the attached script which appears like the example “Hello1” below. Does anyone know how I can modify my script to make the Global Navigation item appear as a link?
Script which adds a “Header” such as "Hello1" above:
siteUrl = $_.Url
$siteTitle = $_.Title
$context =New-ObjectMicrosoft.SharePoint.Client.ClientContext($siteUrl)
$context.Credentials = $credentials
$context.RequestTimeOut = 5000 *60 *10;
$web = $context.Web
$site = $context.Site
$context.Load($web)
$context.Load($site)
$context.ExecuteQuery()
$NavBar = $context.Web.Navigation.TopNavigationBar
$NavigationNode =New-ObjectMicrosoft.SharePoint.Client.NavigationNodeCreationInformation
$NavigationNode.Title = $ItemName
$NavigationNode.Url = $ItemUrlPath
$NavigationNode.AsLastNode = $true
$context.Load($NavBar.Add($NavigationNode))
$context.ExecuteQuery()
gm.ca
Hi all,
I'm having this error where-in any page / page layout with Content Search Web Part breaks my Custom Visual Web Part control. My Custom Control has an UpdatePanel in it, which I use to update only specific items on that control.
If I click the button trigger for that control, it performs perfectly on other pages. But if I do it on a page with a Content Search Web Part, it shows me this error:
Line: 5 Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near 'ebPartEditing|false|<script type='text/j'.
Does anyone know why this happens?
Thank you
Hi,
What are all the advantages in SharePoint 2013 custom workflows than previous version.
Is it a code free?
Dear All,
I am site admin for sharepoint 2013 on-premise site and willing to communicate for sharepoint lists and libraries using visual studio 2015 community which is free.
Can anyone help me in knowing is it possible to create rich farm & sandbox solutions using visual studio 2015 community.
We run a widget in a content editor web part that links to the CDC website to get flu updates. On our on premise sharepoint 2010 site it displays fine in chrome/IE/Firefox no problem . We are migrating the site to sharepoint 2013 (sharepoint
online) and the content editor web part now works fine in IE .. but when displayed in chrome and firefox I get the alternate textabout flash 9 being required .. the widget code is below.. but I don't know if that really matters since again
the code works fine on 2010. Any help would be greatly appreciated!
<!-- ############################# --><!-- WIDGET EMBED CODE STARTS HERE --><div><h3 id="start-widget-focus"><a href="http://www.cdc.gov/widgets/flu/alt/index.html" rel="noreferrer">Seasonal Flu Updates</a></h3><p><br /><!--[if!IE]><!--><object tabindex="0" id="widgetID" data="http://www.cdc.gov/widgets/flu/rssreader.swf" width="265" height="400" type="application/x-shockwave-flash" title="widgetTitle"><param name="quality" value="high"/><param name="AllowScriptAccess" value="always"/> <param name="FlashVars" value="bg=ffffff"/><param name="pluginurl" value="http://get.adobe.com/flashplayer/"/><div style="width:auto"><img src="http://www.cdc.gov/widgets/images/FluRSS_265x400.jpg" width="265" height="400" alt="CDC Flu Updates Widget. Flash Player 9 is required."/><br />CDC Flu Updates Widget. <br /><a href="http://get.adobe.com/flashplayer/">Flash Player 9 is required.</a></div></object><!--><![endif]--> <!--[if IE]><object tabindex="0" id="widgetID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="265" height="400" title="widgetTitle"><param name="movie" value="http://www.cdc.gov/widgets/flu/rssreader.swf"/><param name="quality" value="high"/><param name="AllowScriptAccess" value="always"/><param name="FlashVars" value="bg=ffffff"/><div style="width:auto"><img src="http://www.cdc.gov/widgets/images/FluRSS_265x400.jpg" width="265" height="400" alt="CDC Flu Updates Widget. Flash Player 9 is required."/><br />CDC Flu Updates Widget. <br /><a href="http://get.adobe.com/flashplayer/">Flash Player 9 is required.</a></div></object><![endif]--> <a id="end-widget-focus"></a></p></div> <!-- WIDGET EMBED CODE ENDS HERE --><!-- ############################# -->
Hi,
I have been working with top menu navigation in SharePoint 2013. I am using the oslo master page for now. I wanted to display the 2nd level hierarchy of menu in a horizontal bar on hovering over the top menu?
Can anyone please help me with it?
Hi,
Can anyone please let me know how to display breadcrumb in SharePoint 2013?
Thanks in advance!
Hi ,
Team I am not seeing Bread Crumb in SharePoint online environment. We are in need of this breadcrumb as its a mandatory requirement for one of our clients.
Gone through some articles where they are suggesting to modify master page and by adding asp site map path provider we can enable it. But we don't want to get this enabled using master page . what are other possible alternatives to enable the OOB breadcrumb in SharePoint Online.
As master page customization is not suggested in online , any other alternative is there for the same.
Hi,
We have been able to successfully implement the breadcrumb trail on our E1 Tenant - O365 SharePoint Online, however we have unsuccessful in implementing this on our K1 Tenant - O365 SharePoint Online. Can you please confirm if it is currently possible to do this on the K1 Tenant?
Thanks
Natasha
We wrote a simple C# webservice to let people automatically follow specific sites.
This code was working for us in the past without any errors. But since we installed the current October 2015 CU this code stopped working. If we try now the set a site follow for a specific user then we get the following error:
The operation failed because an internal error occurred. Internal type name:
Microsoft.Office.Server.UserProfiles.FollowedContentException. Internal error code: 11
We also tried to first get the SPUserToken from the specific user and opened a new SPSite-Object with this user token but this also ends with the same error.
The Code always stops at Line: followingManager.Follow(actor);
Any ideas how we could fix this?
Code:
SPSecurity.RunWithElevatedPrivileges(() => { HttpContext savedContext = null; try { using (SPSite site = new SPSite(siteurl)) { SPServiceContext context = SPServiceContext.GetContext(site); savedContext = HttpContext.Current; HttpContext.Current = null; if (context != null) { UserProfileManager profileManager = new UserProfileManager(context); if (profileManager.UserExists(username)) { UserProfile userProfile = profileManager.GetUserProfile(username); SPSocialFeedManager feedManager = new SPSocialFeedManager(userProfile, context); SPSocialFollowingManager followingManager = new SPSocialFollowingManager(userProfile, context); SPSocialActor[] followers = followingManager.GetFollowed(SPSocialActorTypes.Sites); SPSocialActor foundActor = null; try { foundActor = followers.First(f => f.ContentUri.ToString() == followurl); } catch (Exception) { } if (foundActor == null) { SPSocialActorInfo actor = new SPSocialActorInfo(); actor.ActorType = SPSocialActorType.Site; actor.ContentUri = new Uri(followurl); followingManager.Follow(actor); } } } } } catch (Exception e) { } finally { HttpContext.Current = savedContext; } });
Regards, Simon
In generating CS People Pickers we have been using the same schema options with varying values. Are these the *only* schema options available? Every Google hit I've reviewed has just these.
schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup'; schema['SearchPrincipalSource'] = 15; schema['ResolvePrincipalSource'] = 15; schema['AllowMultipleValues'] = true; schema['MaximumEntitySuggestions'] = 50; schema['Width'] = '280px';
- Thank you. Respectfully, Janette M. Ricker