web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Logic Apps not picking up record mentioned by subscription???

(0) ShareShare
ReportReport
Posted on by 379

Hey Everyone:

I have a need to execute a logic app when a customer payment record is changed in Business Central.  This pattern that I describe here works for other records.  It does not work for customer payments, however, and I was hoping someone could either point me in the right direction, or validate that I'm not crazy?

The proposal is simple - here is the logic app:

pastedimage1679001114082v1.png

The system correctly gives me an id when the record in Business Central changes:

pastedimage1679001186411v2.png

pastedimage1679001265253v3.png

So far so good.  This is the record that the system just alerted me changed, as verified by the system ID in the webhook and the system ID on the screen.  But when I try to get that record:

pastedimage1679001369744v4.png

(That's the input) it gives me this:

pastedimage1679001447597v5.png

And bombs right out.  It cannot find the record, it seems.  Being a (somewhat) smart man, I decided to run this through Postman, too.  And I get:

pastedimage1679001516493v6.png

This is by calling:

api.businesscentral.dynamics.com/.../{{TenantID}}/sandbox/api/v2.0/companies({{CompanyID}})/customerPayments(7e094726-36c4-ed11-9a88-002248b18ec2)

So, seemingly, what I'm faced with here is:

- record x is changed

- the webhook is updated and notifies the logic app

- the logic app initiates, takes the row number

- record x doesn't appear to exist in the same table that called it

Am I nuts?  Did I do something wrong?  Why on earth would this work for one type of document and not another, especially when I can clearly see the system ID on the screen?  Thoughts?  Advice?  Bueller?

Thanks.

-J

 

I have the same question (0)
  • James McCullough Profile Picture
    379 on at

    No one has responded yet, but I've made a discovery.  In the case of cash receipts journals (at least) the subscription / get record combination only seems to work when it comes to posting in a cash receipt journal that was created **AFTER** the subscription has been created.  It seems that any cash receipt entered in a journal that precedes the creation of the subscription fails, but works the other way around.

    If anyone has any insight on this and could validate / verify / laugh at me, I'd appreciate it.

    Thanks!

    -J

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

  • Nitin Verma Profile Picture
    21,790 Moderator on at

    If you have posted the cash receipt journal, it will not be accessed. In that case you logic app can only be work if its not posted.

  • James McCullough Profile Picture
    379 on at

    Sorry man, that's not even close what I reported, but thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans