As discussed on this forum page (https://community.nintex.com/t5/Nintex-Workflow-Cloud-Forum/NWC-and-Smartsheet/m-p/215571) I'd really like to be able to get a Smartsheet row based on a cell value.
If not that, I'd like to at least call by row number (rather than row ID) so that I can engage the looping mechanism discussed on the forum.
Thanks!
If I need to get a specific cell from a specific row, I still need to do the above steps, but once I have the row I also need to find the particular cell in that row with the desired column id, and get the value (or Display Value) of that cell.
I did realize this can be made much easier with the "Query JSON" action, when using the results from a Get Sheet web request action. (Unfortunately, I can't use my custom Xtension "Get Sheet" action because Nintex always seems to throw slashes before quotes in the results, making it an invalid JSON format....)
$.rows.[?(@.cells..value=='SEARCH VARIABLE' && @.cells..columnId== SEARCH COLUMN ID)].cells.[?(@.columnId== DESIRED COLUMN ID)].value
The above returns the value of a specific column from each row in the sheet that has a specific value in a specific column. This kind of functionality would be awesome if it was built into the existing actions.
For further explanation my use case is nearly identical to the situation discussed on this forum page: https://community.nintex.com/t5/Nintex-Workflow-Cloud-Forum/NWC-and-Smartsheet/m-p/215571
If I wanted to find and apply an update to a row in a sheet, normally I'd follow this set of steps:
1. If not known, determine desired Sheet ID by using "Get Sheets" action and looping through sheets until desired sheet is found, then store the ID
2. Use the Sheet ID to get the contents of the sheet. There is no "Get Sheet" action, so this must be a Web Request or custom Xtension.
3. Loop through rows of sheet return in step 2 until desired row is found, then store the ID of that row.
4. Update the row using the "Update a Row" action.
Step 2 is the only part that actually interacts with Smartsheet and doesn't have a built in action to support it.