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
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
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?