web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / create list items from...
Power Automate
Unanswered

create list items from onother list

(0) ShareShare
ReportReport
Posted on by 271

Hi ,

Could someone please help me determine the best way to create/Update a SharePoint list?

In my flow, I am creating a new SharePoint list based on the items from a source list. The source list is 

Aysan_2-1684190496136.png

 

 

The flow is creating another list and  breaking it by daytime into daily time entries as following 

Aysan_4-1684190617779.png

 

in the flow, I tried to use the select action to get the Mon to Sun values 

Aysan_5-1684190832685.png

 

Aysan_6-1684190903621.png

I was wondering if there is a way that I can loop thru the "Select 2" output and add each item to the Hours column?

 

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Aysan 

     

    just to confirm, these highlighted values are hours right ?

     

    Nived_Nambiar_0-1684204107420.png

     

    Also from title, we would be getting date range from source list, am i right ?

     

     

     

    Also 

  • Aysan Profile Picture
    271 on at

    Hi Nived,

    Thank you for your reply, yes, the Mon-Sun columns are hours , and the Title is the combination of the employee name and weekstart and weekend coming from power app which I could break down successfully, I just need a way to  get the hours too 

    thank you 

  • Aysan Profile Picture
    271 on at

    @Nived_Nambiar 

    Please let me know if you have any questions , I appreciate all the help

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Aysan 

     

    You can try like this 

     

    I have created a source timesheet like below format

     

    Nived_Nambiar_0-1684259671679.png

     

    [the 2 columns sun, bill to are present at right side which cannot be seen due to screen]

     

    Now i have designed flow like below

     

    Step 1:

     

    Intialize a hours variable of object datatype

     

    Nived_Nambiar_1-1684259745463.png

     

    Step 2: Get items from mainlist using get items 

     

    Nived_Nambiar_2-1684259779700.png

     

     

    Step 3: loop through each item from output of get items action as per step 2

    Inside the loop, set the hours variable like below

     

    Nived_Nambiar_3-1684259829043.png

     

    Now use another loop after set variable action like below

    Nived_Nambiar_4-1684259886873.png

     

    inside the above loop use create item in another list like below

     

    Nived_Nambiar_5-1684259937233.png

     

    Expression: 

    split(items('Apply_to_each')?['Title'],'-')?[0]
     
    This represents Name of employee [ I have renamed title column to employee name column in my second list]
     
    Nived_Nambiar_6-1684260010962.png

     

    expression used: 

    formatDateTime(addDays(split(items('Apply_to_each')?['Title'],'-')?[1],items('Apply_to_each_2')),'yyyy-MM-dd')
     
    Nived_Nambiar_7-1684260044652.png

     

    expression: 

    variables('hours')?[string(items('Apply_to_each_2'))]
     
    Bill to is the variable taken from get item action output. 
     
     
    Flow output would be like this 
     
    Nived_Nambiar_8-1684260110060.png

     

    Note: I haven't added anything under Billto in my first list, that's why nothing appears in project column.

     

     

    Hope it helps !

     

    Mark it as solution if it resolves your query !

     

  • Aysan Profile Picture
    271 on at

    @Nived_Nambiar Thank you so much. I really appreciate your help 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard