API - Deep Insert not working in custom entity

wait
Member Posts: 53
Hi, I'm creating custom API in NAV 2018, I used pages 5475 and 5476 as a reference.
I think I have done my pages with the same architect, the same properties set and same functionality as the standard pages but when I try to do deep insert into my custom entity only the header data get's created and no triggers in the subpage get touched and nothing get's created (works like a charm in the standard pages).
I tried to copy standard API pages to new numbers, gave them new entity names and then I got the same results as with my custom entity, the header data got created but nothing happened with the subpage, nothing got created and no triggers touched. I think this tells me that there is some step I'm missing when adding a new entity with a subpage rather than something is wrong with my entities.
Is it possible this has something to do with the Integrate API's function in the API Setup or is it possible I need to create codeunit similar to 5476 for this to work?
I think I have done my pages with the same architect, the same properties set and same functionality as the standard pages but when I try to do deep insert into my custom entity only the header data get's created and no triggers in the subpage get touched and nothing get's created (works like a charm in the standard pages).
I tried to copy standard API pages to new numbers, gave them new entity names and then I got the same results as with my custom entity, the header data got created but nothing happened with the subpage, nothing got created and no triggers touched. I think this tells me that there is some step I'm missing when adding a new entity with a subpage rather than something is wrong with my entities.
Is it possible this has something to do with the Integrate API's function in the API Setup or is it possible I need to create codeunit similar to 5476 for this to work?
0
Best Answer
-
Argh! I spent way to much time figuring out that the name property needs to be the same as the EntitySetName property when linking then API page and the subpage together. I think I read the whole internet on the NAV API and this was never mentioned.
1
Answers
-
Argh! I spent way to much time figuring out that the name property needs to be the same as the EntitySetName property when linking then API page and the subpage together. I think I read the whole internet on the NAV API and this was never mentioned.
1
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