Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Power Automate When a record is created trigger

(0) ShareShare
ReportReport
Posted on by 10

Im working with power automate to send an email when an item is created and have done everything in this exercise on microsoft learn.

https://docs.microsoft.com/en-us/learn/modules/use-power-automate/11-exercise

The issue is when you start filling out fields to create an item in Business Central, the trigger "When a record is created" fires and since item cat code is blank the flow doesn't continue because the other condition is not met. I can resubmit the flow in the flow history and it will run as intended. The only way i have kind of get around this is to fill out Item cat code first but then it sends the email without all the information.

The flow is being triggered to early, before all the fields have info and its causing problems. Has anyone else run into this issue or something like it? Since this flow is taken straight from MS Learn, i will assume that there was some sort of update?

  8231.Flow.PNG

  • Mikey M Profile Picture
    Mikey M 10 on at
    RE: Power Automate When a record is created trigger

    Thank you that was awesome! I imagine i will have to use a lot of these because i don't see anyone filling out the item card faster than it's triggered.

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: Power Automate When a record is created trigger

    Different scenario but I have something mentioned in this blog which might help: joshanglesea.wordpress.com/.../

    You can build in a delay to the flow after the trigger. It’s not perfect but certain delays might need to be longer than others per circumstance.

  • Mikey M Profile Picture
    Mikey M 10 on at
    RE: Power Automate When a record is created trigger

    I had another flow that was based off a template that was very similar. The template adds an item to a sharepoint list when a new item is created. I went back to that one and its behaving in the exact same way, IE it's getting triggered too early to be of any use and adding mostly blank lines to a list. 

    Here is the template i was refering to
    Create an item in SharePoint when a record is created in Business Central | Microsoft Power Automate

    This is what's happening when i try to use it. Did they recently change how the trigger or Get Record behave? It's just strange that the lessons on MS learn and the templates are not in working order. 

    .flow-_2D00_2.PNG

  • Guy McKenzie Profile Picture
    Guy McKenzie 1,330 on at
    RE: Power Automate When a record is created trigger

    Have you tried using a template with the item category included?

    I suspect it would then work.

    Otherwise, I think your observation is correct that the flow will never meet the second condition.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans