Skip to main content

Notifications

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

How to get No. Series from PayHeader.AssistEdit function (Lookup)

Posted on by 10

Hi,

So, I am working on a bank statement import from a Report. The idea is that on the request page the user inputs the Bank Account No. and No. Series using lookups. I managed to get it all working, but can't figure out on how to get only No. Series that are related to Bank Statements. Tried to use the AssistEdit function from the PaymentHeader table that sorts on only relevant No. Series and got the filtered No. Series that I want (pic below). Now the problem is that when I chose the No. Series it dose nothing and does not save my values because this function only returns a Boolean. 

pastedimage1679043765090v2.pngpastedimage1679043968315v3.pngpastedimage1679044045156v4.png

I know this is not right and is just to show you what I'm talking about. (this code returns a false and finds the first No. Series it finds from the list)

Thank you in advance for any tip and help!

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: How to get No. Series from PayHeader.AssistEdit function (Lookup)

    Thank you for sharing.

  • Suggested answer
    Fabrika Profile Picture
    Fabrika 10 on at
    RE: How to get No. Series from PayHeader.AssistEdit function (Lookup)

    Managed to solve the problem by myself. Here is the code I have used if anyone is interested or will need to do something like that someday.

    Cheers!

    pastedimage1679051693995v1.png

  • Fabrika Profile Picture
    Fabrika 10 on at
    RE: How to get No. Series from PayHeader.AssistEdit function (Lookup)

    ps. adding the AssistEdit function from the Payment Header table...

    pastedimage1679044574827v1.png

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 Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans