Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Power Automate: Trigger for Posted Sales Invoice does not return correct SystemId

(0) ShareShare
ReportReport
Posted on by
I posted about this issue in the Power Automate community, but maybe there is not enough overlap with Business Central users over there.
 
When I start a flow from a Posted Sales Invoice using the For a selected record V3 trigger, the flow will always fail because the SystemId that the trigger returns cannot be found in the salesInvoices table 112.

The reason is that the trigger returns the Draft Sales Invoice SystemId field and not the SystemId from table 112. The Draft Sales Invoice SystemId is not part of the API. So there is no way for me to know which Posted Sales Invoice the flow was triggered from.

This issue is identical in the public API v2.0.

Has anyone else run into this issue?

 

/gabeng_0-1698689979149.png/

 















 






 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,595 Super User 2024 Season 2 on at
    Power Automate: Trigger for Posted Sales Invoice does not return correct SystemId
    Hi, Standard APIs such as Sales Order and Sales Invoice do not directly use the Sales Header or Sales Invoice Header table, but use an intermediate table.
    For example,
     
    You can delete TABLE112 in the above steps and it should be ready to use.
    Here are two simple examples. Although they are not exactly the same as yours, I hope they can give you some tips.
     
    Thanks
    ZHU

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! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans