Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

3

As a short answer : yes you can use multiple loops in different stages and also nested loop in the main loop. but you should make sure that Each loop do not go in the infinite loop. The transition between stages is configured correctly and the workflow logic is right.


3

First, I'm guessing that the log of Display of all incidents for... is happening multiple times because it is on the same line as the closing bracket of the inner while loop. Try moving that down to the next line. And what do you mean it doesn't filter by Issue title? In your last few log examples, Incident #1 and Incident #2 both have the same last issue ...


2

Try to do the following: Create a new variable called Today then set it to Current Date. Add a new Stage, rename it as you prefer. Add Loop with condition while the Returned field become yes Insert Add Time to Date action to add 3 days to the Today variable (output to date variable). Then add Pause action to pause until 3 days (date variable) then check the ...


2

If you want to accumulate the results of your loop, you should declare a variable outside of it and then use inside the loop: var strFinal = ''; while (listEnumerator.moveNext()) { .... strFinal += strMessage; } // End while


2

You're missing a += result = "<a href='/_layouts/15/userdisp.aspx?ID=" + ctx.ListData.Row[i].NewAuthorId + "'>"; should be result += "<a href='/_layouts/15/userdisp.aspx?ID=" + ctx.ListData.Row[i].NewAuthorId + "'>";


1

I can see there is some error in your code. Try initializing the variables you are using like str, strMessage2, strFinal to blank string. For Example: var str="";


1

Try something like this, i am not an spfx man :D : You can also check, if the ItemName is not empty, cause in the first case it is, this is reason why you have only button, not text: {this.state.items.map(myitems1 => { if(myitems1.Item_x0020_Name != "") { return ( <div key={myitems1.Id}> <span>{myitems1....


1

It looks like you're re-declaring the variable. I can't recall with Javascript but normally you can't use the += assignment statement when also declaring the variable. Try this for your onSuccess function: function() { var count = listItems.get_count(); var listEnumerator = listItems.getEnumerator(); var strFinal=''; while ( listEnumerator....


1

I suppose you are using SharePoint designer workflow 2013. If I am not wrong can't we use action "Wait for field change", so that your workflow keeps on sending the reminders until the field Review Response is change from pending. Hope that helps!


1

You need to have a two parallel operations: One that loops every day, and one that waits for the review to complete. Once the review is completed, set a variable that indicates the parallel branch's CompletionCondition has been met (click the parallel operation, and choose Advanced Properties from the ribbon). Here's a quick example using a Task list in SP, ...


1

First of all this is not related to SharePoint so should be on Stack Exchange. PowerShell does not need to be verbose. You can do what you need very simply: $myCollection -join ";"


1

You are changing the collection as you are looping through it. This confuses the iterator and causes it to throw the error. Suppose you have ten envelopes and need to put stamps on them. Now as you're doing this someone comes along and starts putting new envelopes on the piles, or starts putting different stamps on them as well. Now, you're smart enough to ...


1

It depends on what you want to accomplish. If you are waiting for an event like a change to a column or a task completion, I would use the loop because it can help you catch things like if someone assigned to a task rejects the task, the loop can be used to catch that and reassign it. Using a pause feature would not let you do that and would just proceed ...


1

It's like everything in computer science: polling versus events. When you poll (querying the status of an object in a loop), there's 2 drawbacks: It may consume unnecessary resources since code runs for nothing most of the time. There may be a delay between the time the event actually occurred and the time you poll and know it occurred. While with an ...


1

You can use workflow email notification and Document Expiration Policy to reach your requirement. Create a workflow and attach it to the document library, set workflow starting manually, choose Send an Email in the "Actions" and put the content (e.g. library link /document link) as your requirement in the Email body to alert the owner. Then go to Document ...


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