Give me real time examples of write records smart service and delete record smart services
Discussion posts and replies are publicly visible
hi malleswarik1280 an example of using
write record smart service:
Employee On boarding
When a new employee joins a company, the HR department can use the "Write Records" smart service to create a new employee record in the system. The service can populate fields such as employee name, employee ID, department, manager, start date, etc.
Delete record smart service:
Data Clean up:
Periodically, organizations may perform data cleanup activities to remove redundant or obsolete records from the system. The "Delete Record" smart service can be utilized to automate this process, ensuring that the database remains optimized and clutter-free.
malleswarik1280 said:Give me real time examples of write records smart service and delete record smart service
we have delete records web api templates. so i want to delete a particular record in a table.how can I pass particular record to delete.can anyone tell me what I need to pass in query parameters
Is it Service backed record type ??
No source as data base
Then Where do you got stuck?? Pass the Unique Id's .Delete records permanently erases your record data in table .(Soft delete is widely used).
i tried but it is giving 404 error
You tried ... what? More context please.
And you need to adapt my code snippet to your use case.
Please provide more details about your configuration. If you provide screenshots that would be more helpful
You are passing value from Queryparameter but your casting uses http!request.body (Which is null). Can you correct it please
If you changed the HTTP method from POST to DELETE, you need to modify the expression code to use the value passed as a parameters instead of the body.
Changing the method would have been a great information to start with, because when you say that you used the template, we expect that you did not modify the fundamental implementation.
now i changed method as post still I get 500 error.can you please tel me In clear .i didn't get
Unknown said: http!request.body (Which is null).
You ignored this. In your local!value it uses http!request.body change it to queryparameter or instead of passing value from queryparameter use body to pass record id.
yes i changed still i am getting error
yes in casting also i changed to query parameters but it is not coming