Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Apply to each erroring due to '@body('Create_HTML_table')' returning type 'String'

(0) ShareShare
ReportReport
Posted on by 2

Hi 

 

I am in need of some expertise with my current issue.

 

I'm in the process of creating a flow that is meant to check a sharepoint list, calculate the a 90 day grace period and send an email of the items in their grace period. 

 

At the moment the flow errors on the apply to each step:

 

MD8_0-1678203475511.png

Here is an overview of the flow currently

 

MD8_1-1678203600804.png

 

MD8_2-1678203621556.png

 

  • v-chengfen-msft Profile Picture
    on at
    Re: Apply to each erroring due to '@body('Create_HTML_table')' returning type 'String'

    Hi @MD8 ,

    The time format needs to follow the IOS8601 specification, and must be consistent with the SharePoint format, so that it can be compared

     

    Here is a link about get items filter query for your reference:

    Power Automate get items examples - SPGuides

     

    Best Regards

    Cheng Feng

  • MD8 Profile Picture
    2 on at
    Re: Apply to each erroring due to '@body('Create_HTML_table')' returning type 'String'

    Hi Chen,

     

    Thank you for your above solution. I updated my flow to it but I did however get an error in the Get_items action:

     

    The expression "field_14 gt '2023-03-08T16:10:02.3028655Z' and field_14 lt'2023-06-06" is not valid. Creating query failed.

     

    I suspect it may have to do with my date field including time as well?

     

    Many thanks

    Melissa

     

  • v-chengfen-msft Profile Picture
    on at
    Re: Apply to each erroring due to '@body('Create_HTML_table')' returning type 'String'

    Hi @MD8 ï¼Œ

    I made a template for your reference:

    vchengfenmsft_2-1678240059655.png

    Triggered once a month;
    Get items : Filter out all items whose date is from today to 90 days later through filter query

     

    vchengfenmsft_1-1678240026173.png

    Send an Html form for each record and send it to the Person user in this column

    vchengfenmsft_3-1678240157328.png

    Here is a link about get items filter query for your reference:

    Power Automate get items examples - SPGuides

     

    Best Regards

    Cheng Feng

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492