Update data to DB

Hi,

I'm having problem with scripting for updating value to DB,
I have and object with below structure
Client(
          IdAccess,
PhoneNo,
Email,
Password
)

How to manipulate and object from query below for instance to update an email address to another value from "http!request.queryParameters.email"? I need this for saving it to DB! or any simple way to do only for updating field?
local!clientAccess: a!queryEntity(
entity: cons!ITR_CONS_Client,
query:
                              a!query(
                              logicalExpression:a!queryLogicalExpression(
                                        operator:"AND",
                                        filters:{
                                        a!queryFilter(
                                                  field: "PhoneNo",
                                                  operator: "=",
                                                  value:http!request.queryParameters.userId
                                        ),
                                        a!queryFilter(
                                                  field: "Password",
                                                  operator: "=",
                                                  value:http!request.queryParameters.oldPassword
                                        )
                                        }
                              ),
                              pagingInfo: a!pagingInfo(
                                        startIndex: 1,
                                        batchSize: 50
                              )
                              )
).data

OriginalPostID-269252

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data