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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add items to a sharepo...
Power Automate
Answered

Add items to a sharepoint list from SQL

(0) ShareShare
ReportReport
Posted on by 12

Good morning,

I am trying to update a sharepoint list, adding items contained in a SQL table.
I can't set the cycle with the correct values, can someone help me?

 

Thanks

Valerio

Categories:
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Valerio 

    What do you mean by cycle?

    Can you share screenshots and elaborate more?

  • Valerio Profile Picture
    12 on at

    Hi Mira,

    I mean a for each.

    I used a "get rows" and would like to create an element for each row retrieved from the SQL table.

    Thank you

     

    Valerio_0-1597649869107.png

     

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Valerio

    What you are placing in the screenshot is correct what is the issue you are facing? 

  • Valerio Profile Picture
    12 on at

    I don't know, now it works: D

     

    but i have this problem:

    The parameter with the value "" @items ('Apply_to_ each')? ['DATE_CONTRACT'] "'in path' item / DATE_x0020_CONTRACT 'with type / format' String / date-no-tz 'is not convertible to type / format" String / date-time ".".

     

    could you help me?

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Valerio 

    Try to format the date as expression in place of setting the field directly.

    formatdatetime(@items ('Apply_to_ each')? ['DATE_CONTRACT'] ,'dd/MM/yyyy')

     

    If this post helps you with your problem, please mark your as Accepted solution.

    If you like my response, please give it a Thumbs Up.

    MG (Naturally Curious)

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Valerio ,

     

    Please add a Compose action before the create item action to save the DATE CONTRACT dynamic content from the SQL server and share the output of the compose with use so we could better understand the issue on the date.

    Please make sure the date should be date time as below:

    yyyy-MM-ddTHH:mm:ssZ

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Valerio Profile Picture
    12 on at

    Good morning,

    sorry for the delay, I solved it by simply entering the date in SQL as a string.

    Now I'm updating the flow to update the list if there have been any changes and to add the new items

     

    Valerio_0-1597919193443.png

     

    Can you see any errors?

    The execution is successful, I do not get an error but the rows are not updated and or inserted

    Thanks so much

     

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Valerio

    HAve you opened the history run and followed it to check what might gone wrong? 

  • Valerio Profile Picture
    12 on at

    yes, I solved

    Grazeie

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard