Timeline for List has no rows for assignment to SObject error in apex test class
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 19, 2018 at 18:37 | comment | added | DavidSchach | @curdual Can I just chime in and say that I would define selectedRole as an Id, not a String. While it is, technically, a String, the system will ensure that the value of selectedRole is always fitting the Id constraints (length, etc) so I tend to define IDs as such. Maybe I'm nit-picking, but it's just what I do. | |
Mar 19, 2018 at 13:31 | vote | accept | curdual | ||
Mar 19, 2018 at 13:31 | comment | added | curdual | Great! Just the explanation I need. Thank you so much David for your help :)) | |
Mar 19, 2018 at 13:00 | history | answered | David Reed | CC BY-SA 3.0 |