Share all details about your problem, including any error messages you may have received.
Hello team!
I have this requirement for a Web-Services application. To do “Update Account” operation, I need to send in the body, the “lastModified” date of the target account. To get this value updated, I need to reach the /user endpoint, to retrieve it.
My current solution, is to just add this to Account Aggregation, and have it as an attribute in the account, but let’s say, someone goes directly into the app, and modifies the account, and we have not aggregated first. If we try to update the account without an updated “lastModified” date, the API will return an error.
How can I do a single account aggregation, to update the “lastModified” value, before going to the Update Account endpoint? My thought was to do it with Get-Object endpoint, but I do not know how to call it in the Update Account endpoint.
For Get-Object, how can I call it before the Update Account?
And for the Before Operation Rule, do I need to do an HTTP call in Java to make it work? Or can I run the Get-Object via code?
For Before Operation Rule you can do a HTTP call in your rule. The restClient object is already available in the rule and can be used to do an HTTP call.