Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

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 68,341 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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans