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).
In my example where the record has the primary key field "commentid", the body would be
{"commentid":50}
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
yes in casting also i changed to query parameters but it is not coming
You need to add some info to the BODY!
I posted an example already.
i need to pass both body and query parameters is it correct
1.If you want to pass value from body your request looks like this.
2.If you want to go with queryparameters your request looks something like this.
Hope it clarifies .
see this agian i am getting error
Query parameters are not in JSON ...
Yeah i forgot to remove it ,it's odd i'm not getting the error when i'm using tojson for query parameters
Thanks team
Did you finally solved it?