I am inserting multiple records of cdt type to database in writetodatabaseentity() function. I want to get those records which are not successfully added to database. How to achive this?
Discussion posts and replies are publicly visible
Hi Sudiptab,
I don’t think you can use the onError for this use case. What I would suggest is to identify the potential reasons why a dB update/insert would fail for the scenario that you’re working on and the. build an expression that will validate your CDT array for potential errors before calling the write to datastore smart service. This way you will know what rows will fail before an unnecessary DB call.
Regards,
Sunil Zacharia