Hot answers tagged

4

If you want to compare with both conditions than use AND: @"<Where> <And> <Eq> <FieldRef Name='ReportsTo' /> <Value Type='Text'>" + reportsTo + @"</Value> </Eq> <Eq> <FieldRef Name='Team' /> <Value Type='Text'>"+ selected+ @"</Value> </Eq> </And> </...


2

I don't think you can have one workflow clean up unfinished tasks either as a SharePoint Designer workflow cannot work in a state machine. You could put a ton of logic into it, effectively a try-catch for each step, but you might go insane doing that Please check the answer at below article. Can you use a workflow to terminate another workflow


2

So take a look at my answer in the question you link to: You are using <%@ to open the code block, the answer uses <%= You are also missing the : string.Empty part in the end of the line So <%= SPContext.Current.ListItem["SODigitalPageDate"] != null ? (new DateTime(SPContext.Current.ListItem["SODigitalPageDate"].ToString()).ToString("s") : ...


1

For your issue, I recommend to follow the steps as below: Clear SharePoint Designer cache: How to Clear Your SharePoint Designer 2010/2013 Cache Deactivate all "Workflow" features at the Site Collection level. Enable all "Workflow" features at the Site Collection level. PSCONFIG (Not Necessary) (or run the SharePoint 2010 products configuration wizard) ...


1

Hide a control based on values on the form On the form template, click the control that you want to hide. On the Format menu, click Conditional Formatting. In the Conditional Formatting dialog box, click Add. Under If this condition is true, set the condition that you want. For example, to hide the control that you selected in step 1 only when ...


1

I experienced the same when I had one of my workflows write data to a column on the list. I set conditions on some of the workflows to prevent from executing multiple times.


1

Hide a control based on values on the form On the form template, click the control that you want to hide. On the Format menu, click Conditional Formatting. In the Conditional Formatting dialog box, click Add. Under If this condition is true, set the condition that you want. For example, to hide the control that you selected in step 1 only when a certain ...


1

@"<Where> <And> <Eq><FieldRef Name='ReportsTo' /><Value Type='Text'>" + reportsTo + @"</Value></Eq> <Eq><FieldRef Name='Team' /><Value Type='Text'>"+ selected+ @"</Value></Eq> </And> </Where>"


1

You can use like this: @"<Where> <And> <Eq> <FieldRef Name='ReportsTo' /> <Value Type='Text'>" + reportsTo + @"</Value> </Eq> <Eq> <FieldRef Name='Team' /> <Value Type='Text'>"+ selected+ @"</Value> </Eq> </And> </Where>" NOTE: You can also use <...


1

Wrap your conditions in <And>...</And> inside <Where> Reference: https://msdn.microsoft.com/en-us/library/office/ms196939.aspx @"<Where> <And> <Eq> <FieldRef Name='ReportsTo' /> <Value Type='Text'>" + reportsTo + @"</Value> </Eq> <Eq> &...


1

Always great to see the hideFiledTemplate typo.. You do not need a 90 KB library and all the loading hassles to hide a Filed .. ehm Field (function(){ var hideField="<span class='csrHiddenField'></span>"; var overrides = {}; overrides.Templates = {}; overrides.Templates.Fields = { "DueDate": { "NewForm": hideField, "...


1

You need to create a calculated column to show KPIs on same list. Note:- I have used below formula to check for 3 conditions like Green, Red & Yellow. I used column named budget with dropdown to select one of the value given above. I have uploaded all the images in SiteCollectionImages library. Please check below formula =IF(Budget="Green","<...


1

SharePoint Yes/No fields are boolean values: true/false. They will never display Yes or No as text, so you will need to set these programmatically within your workflow. Create a workflow variable for the "Yes" and "No" values and replace the yesNoField in your email. Example: yesNoVariable = "No" if yesNoField equals True yesNoVariable = "Yes" Or, ...



Only top voted, non community-wiki answers of a minimum length are eligible