Skip to main content
sarathkumr268295
December 23, 2022
Question

Data store Entity

  • December 23, 2022
  • 9 replies
  • 0 views

Hi,

Can anyone tell the difference between Write to Data Store Entity Smart Service and a!writeToDataStoreEntity() function??

I am asking in the context of place of usage. As best practices, what are the specific places we can use the above mentioned?

And is there a way to catch the error occuring while writing to DB using Write to Data store entity smart service???

Thanks in advance

9 replies

December 23, 2022

The smart service is used in a process model, where you find the smart services on the palette to drag onto your model. The function is used in an interface or a webAPI. You can check the documentation for any smart service regarding the errors provided, whether an error occurred and the specific error text. 

sarathkumr268295
December 25, 2022

I cant find any error parameter for Write to Data Store Entity smart service. Is there any way to configure that smart service to catch errors occuring while storing in DB?? Is there any plugin related to that???

December 26, 2022

Write to Data Store Entity Smart Service is used in Process model to write the data in DB whereas a!writeToDataStoreEntity() function is used in Interface to directly send the data from the interface to the DB, also if you want to check errors in Write to Datastore entity Smart services you can check it in Process details in that Errors, You can only see this when you execute your Process model  

sarathkumr268295
December 26, 2022

The problem is that if error occures, the flow doesnt continue further. I want the flow to continue even if there is error and based on success or error, I want to divert the flow and send appropriate message. Is there any plugin related to this requirement with success and error parameters for write to data store entity smart service?

December 26, 2022

You can use XOR gate Flow if there is an error you can send it to one node and if there is Success you can send it to another node for example look at this image, this is a sample image configure according to your needs