Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Changing date format from ISO 8601 and trouble with null or blank when sending an email

Posted on 3 Dec 2024 14:54:19 by
Hello, first off please note that I am a beginner to power automate.  The main goal of this flow is to take data that shows multiple customers and multiple products from an excel table and then collect them together in separate emails so that the Salesperson can contact the customer and let them know if there are any late products. 
 
The first issue is that I have a Get Item - List Rows Present in a Table that is set to ISO 8601 because I couldn't get anything else to work to change the date in the html table for the email to actually show a date.  It was originally showing as a number like 45590 (i.e., 10/25/2024).  I have tried the expression adddate and others, but it always came up as an error in the flow.  I changed to ISO 8601 and now the flow works but any help to fix this so that the correct format (MM-dd-yyyy) shows would be super useful. 
 
The second issue is that when it goes through the Apply to Each loop, there are some areas that are blank at the end of my table.  When the emails get sent, once it comes to a blank or null, it triggers a failure.  But all of the other emails get sent.  So, I have limited knowledge with power automate, and these issues are very hard to me.  Maybe not to someone who knows what to do.
 
Any and all help to fix this flow is greatly appreciated!!
 
Thanks,
Categories:
  • creativeopinion Profile Picture
    creativeopinion 9,897 on 04 Dec 2024 at 00:26:05
    Changing date format from ISO 8601 and trouble with null or blank when sending an email
    @SW-03121430-0​​​​​​​
    It's hard to offer any recommendations without seeing your full flow and the logic behind it. If you are using the new designer, toggle it off and click each action to expand it. Upload a screenshot of your flow in edit mode.
     

    In this video tutorial I’ll go over how to avoid these common mistakes when using the Apply to Each action in a Power Automate flow:
    1️⃣ Looping through a Single Item
    2️⃣ Creating Unnecessary Nested Loops
    3️⃣ Looping through an Unfiltered Array

    At the end of the video I share a few helpful insights when it comes to using the Apply to Each action in your flow.

    IN THIS VIDEO:
    ✓ How to avoid the Apply to Each action with a single item array
    ✓ How to use the item() function to access dynamic content in an array
    ✓ How to prevent unnecessary nested Apply to Each action loops
    ✓ How to use the Select action
    ✓ How to convert an array to a string with the Select action
    ✓How to use the Filter Query field
    ✓ How to count the number of items in an array
    ✓ How to use a condition control
    ✓ How to use the concurrency control
    ✓ How to set a top count
    ✓ How to use Compose actions for troubleshooting
     
    ---
     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.
    1️⃣ Cross-Referencing Data
    2️⃣ Filtering by Key
    3️⃣ Substring Matching
    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

    IN THIS VIDEO:
    ✓ 3 Ways to Use the Filter Array Action
    ✓ How to use the Scope Action to Group Actions
    ✓ How to Check the Number of Items returned from a Filter Array Action
    ✓ How to Cross-Reference Data in Excel with a SharePoint List
    ✓ How the Filter Array Action Works
    ✓ How to Access the Dynamic Content from a Filter Array Action
    ✓ How to Filter Items by a Key
    ✓ How to Filter Items by Matching a Substring
    ✓ How to Use Multiple Conditions in a Filter Array Action
     
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard

Featured topics