You need to sign in to do that
Don't have an account?
Rajkumar CV 12
How to get value for a single field in List<SObject>?
Hello All,
I have a List<SObject> which has various fields inside it. I need to get the value of one field inside the list and store it as a string.
The size of the list is 1 is all the cases.
List<SObject> values = UpdateActionMap.get(keyIteration);
String busiType = (String) values. ....... ?
Can anyone help me how to achieve this?
I have a List<SObject> which has various fields inside it. I need to get the value of one field inside the list and store it as a string.
The size of the list is 1 is all the cases.
List<SObject> values = UpdateActionMap.get(keyIteration);
String busiType = (String) values. ....... ?
Can anyone help me how to achieve this?
String busiType = String.valueOf( values[0] );
Let me know if it helps.
Try storing your result in a list<string> Anudeep