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.
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.
@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 alternative
Answers
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