Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I developed a custom field type for List, now I am trying to get list data using SharePoint list web services in "K2 workflow" I can get all fields values except this custom field type as I am not sure if I need to parse it to what type.

e.g. if its a string we use


for double we use

double d = float.NaN;                                   
double.TryParse(childNode.Attributes[columnID].Value, out d);
ID = d;

Wonder what it gonna be like to parse a custom field type whose format is 1.1.1 and its class is inheriting from "SPFieldText" but when I try to prase it like string, it gives me Object reference not set..

share|improve this question

1 Answer 1

up vote 0 down vote accepted

We can get custom field values just like default ones but I was confused at that time,


however its recommended to check if field exists before getting its value as otherwise it will break your code,

Hope it helps if someone else come across same issue :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.