We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Update a row/field in RightNow, where the criteria is not primary key to search the row

Accepted answer
4
Views
3
Comments
edited Jun 11, 2018 8:14PM in Integrations and APIs 3 comments

Content

The Below is the block of code where I search for a row using ID of that table, but my search criteria needs one more column along with the primary key. How do I add that column in search criteria in the below code block.

We would like to create the update query with the "and" condition from the column that is not the primary key.
Eg.
We would like to update the status to "Complete" for the ID = 123 "and" 124 for the regular SQL we would like something like below.

update Artrim set STATUS_ID= '3', COMMENT = 'Update Pending to Complete' where STATUS_ID= '2' and ID in (123, 124);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!