Questions tagged [loop]
Loops are a type of control flow structure in programming in which a series of statements may be executed repeatedly until some condition is met.
36
questions
0
votes
0
answers
19
views
Power flow to create a CSV table from two sharepoint lists based on a reference
I have two lists in sharepoint, need export but problem is with data from second list. Export needs datas from both lists.
LIST A contains Name, Surname, Age
LIST B contains Name, Hobbies, Sports, ...
0
votes
0
answers
518
views
"Filter Array" action returns 0 elements
I'm looping trough an simple array with string-values.
I want to filter another array with each item() of the loop:
The "Loop TrainingID" returns the exact value AM_AMiaL_ but when I use ...
0
votes
1
answer
405
views
Power Automate: Loop through SELECT
I want to send a personalized email with additional infos to hundreds of employees. The informations are stored in a massive Excel file.
My goal is to create a Flow which runs every morning, filters ...
0
votes
1
answer
366
views
Get a specific value from array
I'm having this situation
Inside a loop I'm having one more loop where I append specific values to a specific array. What if later I want to access the Trend value from the third array?
I know how to ...
0
votes
2
answers
207
views
Looping Parsed JSON creates double Apply to Each
I've got a list with ~4500 Elements.
With Select I took the output of the Get Elements.
Now I parsed the Select-output with the Parse JSON
Now I want to loop through the output and put Name, Email ...
1
vote
2
answers
2k
views
Flow is stuck at Apply to each
I have one flow that removes the special characters from string.
I am using Apply to each action. Everything was working fine but today I noticed that all of sudden all the instances of the flow are ...
1
vote
1
answer
21
views
Loop not ending when if statement condition fails - SP2010
In SP2010, I'm trying to move files from one library to another using Powershell. The condition for file move is that the files should be greater than 3 years/1095 days from the date of creation.
I'm ...
0
votes
1
answer
184
views
How to loop through this csv file with multiple values in one column
I'm trying to get the following code (originally taken from https://gallery.technet.microsoft.com/office/SharePoint-online-57f24eca) to read through a CSV file where one of the columns has two user ...
1
vote
1
answer
32
views
Workflow If-else loop not sending notifications to a group address but sends to individual email address in a variable. I'm confused
I have created a if-else loop in SharePoint Designer 2013 and added a variable named "SDG_Email"
For example, if value in the form of SDG is "SDG Connectivity"
Set Variable "SDG_Email" to value "...
0
votes
0
answers
86
views
Workflow "suspended" after creating a timed loop in a workflow
Recently discovered "timed" loops in Workflows, that allow me to loop based on a chosen variable (say 3 weeks, therefore loop 3 times). However, the workflow shows "suspended" under the workflow ...
0
votes
1
answer
1k
views
Item Update "Value does not fall within the expected range"
If I run each line individually, it works. But If I try to run the script with the for each loop, I get:
Exception calling "Update" with "0" argument(s): "Value does not fall within the expected ...
0
votes
1
answer
101
views
Getting undefined when using getEnumerator
I'm calling a function to enumerate through a list of items with a particular ID\foreign key. When there are no items listed I get the appropriate response back, however, if any records are available ...
0
votes
1
answer
34
views
Site Workflow for Microfeed
Re this post:
Generating an email alert workflow not working
I created a Site Workflow, but I'm not sure how to create the Loop, or the condition "The contents of this loop will run repeatedly while ...
0
votes
1
answer
82
views
Workflow web service call looping
I have a SharePoint Designer 2013 workflow that is calling a web service method I have created and hosted on a server.
The workflow in the browser workflow history seems to be triggered only once, ...
1
vote
1
answer
44
views
Getting always extra button on display .. 1 button dont have any ID
I am having problem while looping.
I am always getting an extra button. Please help.
{this.state.items.map(myitems1 => {
return (
<div key={myitems1.Id}>
<span>{...
0
votes
1
answer
60
views
Why is my loop not iterating?
I have a blog list (SP2016) which I am using to display news items.
On the blog list I have a workflow which sets the Created by(Author) field to system account. for a better ux I am capturing the ...
0
votes
3
answers
530
views
SyntaxError: unexpected token: '+='
I'm looping through records and setting a variable according to an if statement. I'm trying to build the output variable with the results of all the looped records into one string using +=. I'm ...
0
votes
1
answer
677
views
How to split string condition on array with powershell script. Exporting SharePoint library data on csv file
i am trying export library data into CSV file. i had used string functionality on my script to get content. my script was working fine but i am getting output in single string (or) one column. My ...
1
vote
2
answers
332
views
How to perform nested CAML operations using promises?
Team,
I have 3 lists, (a) Issues (b) Risks (c) Incidents. I want to...
1 - Run a CAML query against (a) Issues list to get all the issues not closed.
2 - then run a loop through the titles, and use ...
0
votes
0
answers
33
views
Workflow to check for substring in field in each item of a List
How can I build a workflow to incrementally check each item of a List for a certain substring? I have a list of over 900 items and need to check for a certain substring within a Multiple Lines of Text ...
0
votes
1
answer
601
views
How do I print SP list rows in PowerShell?
A basic question, yet I'm stuck (I'm still a beginner):
I currently have a SharePoint List with two printers in it, and I have the following code:
$l = Get-PnPList -Identity "TellerstandPrinters"
$...
3
votes
4
answers
4k
views
Pause in Workflow Loop even when condition is met - SPD
I have created a workflow in SPD as shown below:
When an item is created, the Status is set to "Requested", the Reviewer Response is set to Pending and an email is sent to the responsible Reviewer. ...
1
vote
2
answers
3k
views
Powershell For Loop to add a semicolon after each value [closed]
I want to loop through a collection of items and append semicolon after each item.
Example Output values from mycollection:
5590
6063
1213
Expected Output:
5590;6063;1213
Below is my code.
for (...
1
vote
1
answer
3k
views
Looping Email Workflow with Condition
i need to create a email loop workflow with condition but i confused to create on sharepoint designer, example flowchart below
is there who know to create it?
0
votes
0
answers
38
views
SP Designer 2013 Workflow - Trigger from a record,run through multiple records and update 1 record
I have a "Owners" list and a "Metrics" list.
In "Owners" list, each owner has a individual record created for him.
In "Metrics" list,each owner has multiple records assigned to him. In each record,...
0
votes
2
answers
697
views
Reset/Clear date variable in workflow loop (using REST API calls)
I use Sharepoint Online and Sharepoint Designer 2013 workflows.
I have a loop workflow that uses variables in date format. When the loop starts again it uses the variable from the first loop.
...
2
votes
1
answer
1k
views
SharePoint 2010 using REPLACE and FIND functions multiple times in a calculated field
I'm working on a SharePoint 2010 site where I have a field which contains three letter characters which are separated by a hyphen e.g. AMO-SMF.
I have created a calculation which can FIND and ...
1
vote
1
answer
2k
views
An error occurred while enumerating through a collection
I want to find all LookUpFields on SharePoint and copy them to a new SingleLineofText Field but everytime i get the same error >
An error occurred while enumerating through a collection: Collection ...
0
votes
1
answer
167
views
Pause Vs Loops approaches
Lately I worked on a workflow that had to be restarted each day I used the Pause approach but I couldn't make it work, do you think Loops could handle the repetitions better than the Pause or are they ...
0
votes
1
answer
698
views
Sharepoint designer 2013 - Loop versus wait for item update
When would you use a "loop" in a list workflow versus "wait for item update"?
Advantages/disadvantages of each.
Thanks.
0
votes
2
answers
912
views
Workflow loop - annual reminder
I'm trying to set up a reminder for users to review their documents annually. Using SharePoint 2013.
The basic idea is that if a document is uploaded on the 18th of January, then every year on the ...
1
vote
1
answer
268
views
Can I put multiple Loops in a Workflow?
I have 3 respective alerts: 1 year, 6 months, 90 days.
I set up 3 Stages. Then I set up a loop for my 90 day alert to run the loop every two min. for testing. It works. But when I try to create a ...
0
votes
1
answer
51
views
Send mail on a specific date but supress if date changes
I have a simple sharepoint list with a user id a deactivation date and a field indicating that the email has been sent.
The goal is for sharepoint to send an email warning the user id that their ...
0
votes
2
answers
145
views
After Pausing, Sharepoint Designer Workflow Email is Appending Data when a New Email is Sent
I hope I explain this well enough and have provided enough information. Spent over a week on this and not really found any answers on the web...
I have a list setup for my team on Sharepoint 2013. ...
3
votes
1
answer
151
views
Recurring email notification to all list entry
I have a list (contains hundreds of items) which I need to send email notification for each item's creator on every end of quarter.
Is SharePoint workflow able to loop through the list and triggered ...
0
votes
1
answer
2k
views
How to Break Loop in Parallel Block - Designer 2013
I have a List called Test1 and below are the controls (only for testing purposes).
Below is my Designer 2013 workflow associated with the list above:
The workflow does the following:
When a user ...