Are we able to do Posting Cross company ?

julkifli33
Member Posts: 1,092
Hi All,
are we able to do posting cross company?
for example I login to Company A.
but I want to post for Company B.
I can insert data from company A to B, but when post it, it seems still read data from Company A.
By the way i am using cloud bc.
are we able to do posting cross company?
for example I login to Company A.
but I want to post for Company B.
I can insert data from company A to B, but when post it, it seems still read data from Company A.
By the way i am using cloud bc.
0
Best Answer
-
You cannot run codeunits across companies. Even if you could, any record references they make would refer to the current company. Possible solution I see is to build a process that queues info to be posted from Company A to be processed by company B.There are no bugs - only undocumented features.0
Answers
-
Not directly. You might be able to design some sort of interface using Scheduler.
Are you sure your data in the other company is being inserted (and validated) correctly? If you are using "ChangeCompany" to achieve this, remember that function only works on the tabledata for the record you set it on. If any validation logic references other tables, those tables are read from the current database. This can result in incorrect validation results.
There are no bugs - only undocumented features.0 -
Hi @bbrown ,
yes upon inserting I also not using Validate.
I inserted manually..
all are correct.
only the posting cant be done.0 -
You cannot run codeunits across companies. Even if you could, any record references they make would refer to the current company. Possible solution I see is to build a process that queues info to be posted from Company A to be processed by company B.There are no bugs - only undocumented features.0
-
Hi @bbrown
thanks for you advise.
btw i solved this issue.
i create job queue in company B, so that in company B will post this entries.
Thanks.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions