Reading an individual data point by column name in c#

Hello,

I am new to Uipath robots and I am hoping for a smidge of help. I have s stored procedure that will return a single row of data.

In my example, I want to return the data from the table by the column name (Id), then store that data in a variable.

I seem to be having some problems with my syntax, where can I look for an answer?

Hi,

Can you try just "id" instead of row("id").ToString?

Regards,

Hi @Tristan_Stumpf

We don’t need get row item,

Put row(“id”). tostring in the message box and try … thanks

Hi,

It should be row["id"].ToString() because he uses C#.

Regards,

I didn’t notice that @Yoichi thanks for explaining…

1 Like

Thanks so much Yoichi,

when I tried that the syntax worked but I got this error (“Assign: Column ‘Id’ is read only.”)

as if It were trying to write to the object or something.

Hi,

Can you share screenshot of your workflow( or the activity)?

Regards,

I was able to reboot studio and your solution is working great now!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.