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 / Apply to each erroring...
Power Automate
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

 

Categories:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    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

  • MD8 Profile Picture
    2 on at

    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
    Microsoft Employee on at

    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

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 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard