Table 'TempBlob' is marked for removal. Reason: Replaced by BLOB Storage Module

tomasevicstefan
Member Posts: 51
Hi all,
How shall we call Codeunit.Run(CodeunitID, TempBlob) if TempBlob will be removed in future?
Thanks
How shall we call Codeunit.Run(CodeunitID, TempBlob) if TempBlob will be removed in future?
Thanks
0
Best Answer
-
Hi,
Since TempBlob is'nt a table anymore the current Codeunit.Run will not work in the future.
"Workaround": Create a procedure and just pass the TempBlob Codeunit or Streams.
However this is not really a generic approach and won't work in scenarios where the Codeunit ID is somehow determined by your business logic.
As long as it's supported there's nothing wrong with using Codeunit.Run with the TempBlob table.
Since (as announced at Techdays) interfaces are going to be a thing in Business Central, maybe we get possibility to pass in an interface implementation into a Codeunit (-> Dependency Injection). However I wouldn't count on that.
So either refactor your solution to get rid of the Codeunit.Run calls with the Tempblob, or wait and hope for MS to give us something handy to deal with this scenario.
/Wisa
Austrian NAV/BC Dev5
Answers
-
I also need to know the answer to this please!0
-
Hi,
Since TempBlob is'nt a table anymore the current Codeunit.Run will not work in the future.
"Workaround": Create a procedure and just pass the TempBlob Codeunit or Streams.
However this is not really a generic approach and won't work in scenarios where the Codeunit ID is somehow determined by your business logic.
As long as it's supported there's nothing wrong with using Codeunit.Run with the TempBlob table.
Since (as announced at Techdays) interfaces are going to be a thing in Business Central, maybe we get possibility to pass in an interface implementation into a Codeunit (-> Dependency Injection). However I wouldn't count on that.
So either refactor your solution to get rid of the Codeunit.Run calls with the Tempblob, or wait and hope for MS to give us something handy to deal with this scenario.
/Wisa
Austrian NAV/BC Dev5 -
@Wisa123 thanks for your reply. I will try with Name/Value Buffer table, because it has blob field and functions to set and get values, and it's buffer table. Hope that this will work, can't wait for Microsoft to deliver alternative0
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