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...
Unanswered

Create recurring Sales Invoice question

(0) ShareShare
ReportReport
Posted on by 142
Hello everyone. 
I created Table called Import Traffic. And there I have following fileds: 'Customer No.', 'Posting Date', 'Document Date', 'Fiscalization Type', 'Document Type', 'Responsibility Center', 'Salesperson Code'. and some filed for like on sales line 'Quanity', Amount, etc.
I created an action and when I run action I want to create Sales Invoices, on this logic:
If we have three records:  Three different Customers, in any way, we will create three invoices. If we have on two records one Customer, and on one record another customer, but If on all three records we have all different Responsibility Centers, we will create also three Invoices. 
If we have three records: Same customer on three records, and two Responsibitlity centers, and Three different Posting Dates, we will create three Invoices, but If we have, all 7 fields ('Customer No.', 'Posting Date', 'Document Date', 'Fiscalization Type', 'Document Type', 'Responsibility Center', 'Salesperson Code) same for all tree records we will create just one Invoice, but three Sales Line Records for that Invoice.
Like to count how many different combination we have of that 7 fields, and to create that many invoices.
After create I store Sales Invoice No into Import Traffic, for every row, if that row went to Invoice.
Maybe looks little confused, but I don't have a way to explain different.
Do you know how to do that.?
Thank you :)
I have the same question (0)
  • ManishS Profile Picture
    86 on at
    What is the Key for your customised table, are all 7 fields the key, if yes then you need to find the record already exists, if does add up the amount and if not then create a new line.
     
    You can find the record using Get function for unique record as per your keys.

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,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,045 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans