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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

(0) ShareShare
ReportReport
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!

I have the same question (0)
  • Fabrika Profile Picture
    10 on at

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

    pastedimage1679044574827v1.png

  • Suggested answer
    Fabrika Profile Picture
    10 on at

    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

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Thank you for sharing.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,366 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,175 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans