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

Community site session details

Session Id :
Power Automate - Building Flows
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

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,409 Moderator on at
    Re: Add items to a sharepoint list from SQL

    @Valerio 

    What do you mean by cycle?

    Can you share screenshots and elaborate more?

  • Valerio Profile Picture
    12 on at
    Re: Add items to a sharepoint list from SQL

    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,409 Moderator on at
    Re: Add items to a sharepoint list from SQL

    @Valerio

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

  • Valerio Profile Picture
    12 on at
    Re: Add items to a sharepoint list from SQL

    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,409 Moderator on at
    Re: Add items to a sharepoint list from SQL

    @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
    on at
    Re: Add items to a sharepoint list from SQL

    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
    Re: Add items to a sharepoint list from SQL

    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,409 Moderator on at
    Re: Add items to a sharepoint list from SQL

    @Valerio

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

  • Valerio Profile Picture
    12 on at
    Re: Add items to a sharepoint list from SQL

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard