New answers tagged

0

It wouldn't be a SharePoint Designer issue, but one with the SharePoint server itself. Check Central Admin to see if the Workflow, Workflow Autocleanup, and Workflow Failover timer jobs are ok for your web application. If you run a stsadm -o getproperty -pn job-workflow -url http://sp2010 do you get <Property Exist="No" />?


0

Turns out to be easier than I expected, although there is no automatic association through content type or list template ID. Basically, you just create a List workflow, but do not associate it with a list. Associating a List workflow with an existing list is optional in VisualStudio. As stated in the question, I am on-prem and able to take advantage of ...


0

Have two transitions coming out of State 1, one going to State 2 and one going to State 3. For the transition condition you need to test the outcome field from the task. I can't remember what the name of the field is exactly, it might be Outcome or TaskOutcome (I think the latter). Take the outcome, put it into a workflow variable called Var1 (or whatever ...


0

You can perform the same using either SharePoint Designer Workflow or Visual Studio workflow. If the steps are simple and can be sufficed using designer workflow then go ahead with designer workflow. If you need customisation in approach then go ahead with Visual studio workflow. Here are some links that can help you give brief idea about creating Three ...


2

You had added a folder inside layouts folder but did not added anything in that folder under layouts, So sometimes it will not create folder under 15 Hive (\15\\TEMPLATE\\LAYOUTS). Please add any sample text file in the folder GPIntegrationLogs which is available under the layouts folder. You will get the GPIntegrationLogs folder with that text file in it ...


4

You cannot change the parent content type of a content type: The Parent property is read-only. The content type ID is prefixed with the parent content type's ID. See explanation here which is for SP2010 but it works the same for SP2013. You have to basically re-create the content types using the correct parent from the start.


0

As @Abdessamad TAHRI said, you cannot use code in Visual Studio for SharePoint 2013 workflows. Workflows are declarative now and you would need to expose whatever data you need from that database to a web service that you can call in the workflow.


0

the only way to call some code is by using the HttpSend activity and call a custom webservice


1

My guess would be that the Assigned to field won't accept the user group's ID and would need another property. So I would suggest this: After the GetDynamicValueProperties activity, add a LookupSPGroup activity In the Properties of this activity in the GroupPrincipalId property add your OwnerId variable. Set the result property to any variable of your ...


0

There is a default ID column which get auto incremented every time you add new item in list. You can use that. But that column in non editable. If you want to keep column editable you can write below code and it doesn't need CAML query using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint....


1

To get the last record of the list you have to take Ascending='False' in CAML Query. <OrderBy> <FieldRef Name='EnquiryNumber' Ascending='False' /> </OrderBy> <RowLimit>1</RowLimit>


1

Follow Method that takes a SPWeb object and a SPUser object. SPServiceContext serverContext = SPServiceContext.GetContext(web.Site); UserProfileManager profileManager = new UserProfileManager(serverContext); string userString = user.LoginName.ToString(); UserProfile userProfile = profileManager.GetUserProfile(userString); if (userProfile != null) ...


1

You can use below code snippet to follow a site //GET USER PROFILE MANAGER SPServiceContext serverContext = SPServiceContext.GetContext(siteobject); UserProfileManager profileManager = new UserProfileManager(serverContext); UserProfile profile = profileManager.GetUserProfile(loginName); if (profile != null) { //Social following manager object for the ...


3

SPUser singleUser = new SPFieldUserValue(item.Web, item["Single User"] as string).User; SPUser[] multipleUsers = ((SPFieldUserValueCollection)item["MultipleUsers"]).Cast<SPFieldUserValue>().Select(f => f.User); I'm not sure why one user is stored as a string, but multiple users are stored as a specific object; it may also not be consistent in ...


0

You could do this using JavaScript/JQuery. Place the code below onto your page inside a Content Editor Web Part. When the page has loaded, the script finds the labels of the 'Any' and 'All' input fields, selects the closest parent row and clones it above the submit/search button - removing the original rows in the process. $(document).ready(function() {...


0

No need for programmed solution. Open the list in SP Designer. Under "List Information" you will see a count total of items on the list.


0

I have found one solution to this issue. Install Microsoft Exchange Web Services Managed API 2.1 (the latest version I can find at this time) Later i opened visual studio and created new project at this time it is working as expected.


0

Visual studio must be used on the server for debugging and deployment.


0

As far as I am aware, VisualStudio was not meant to be used in the way you describe. That's exactly what Designer is for. Regarding using the SharePoint Connections aspect of VisualStudio, according to this article on MSDN: It is used primarily to browse an existing SharePoint site as a hierarchical node tree. The connection must be local, meaning, VS ...


2

You have to use attach to the the process from the Debug Menu.


3

How are you debugging your webpart? Do you select Debug option from the solution explorer or do you attach to the w3wp process? If you are attaching to the w3wp process, I've seen a lot of developers attaching to all available w3wp processes. It would be more optimal to attach to the specific process for your application. Can you check your system resource ...


0

You can make publish copy of your solution and put .wsp files from bin folder of publish copy to your another SharePoint server and deploy there with PowerShell Script using following command Install-SPSolution -Identity <solution.wsp> -WebApplication <name or guid of web app> -GacDeployment Refer this link for more detail.



Top 50 recent answers are included