Getting Calculated Column Value using CSOM

%3CLINGO-SUB%20id%3D%22lingo-sub-1106872%22%20slang%3D%22en-US%22%3EGetting%20Calculated%20Column%20Value%20using%20CSOM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1106872%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20Server%20Side%20Object%20Model%20code%20for%20getting%20the%20Calculated%20Column.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%3CSPAN%3ESPFieldCalculated%20cf%20%3D%20(SPFieldCalculated)item.Fields%5B%22Down%20Time%20Duration%22%5D%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20req.DownTimeDuration%20%3D%20cf.GetFieldValueAsText(item%5B%22Down%20Time%20Duration%22%5D)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20equivalent%20code%20in%20CSOM%26nbsp%3B%20for%20getting%20the%20value%20of%20Calculated%20Column%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1106872%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

I have Server Side Object Model code for getting the Calculated Column.

    SPFieldCalculated cf = (SPFieldCalculated)item.Fields["Down Time Duration"];
    req.DownTimeDuration = cf.GetFieldValueAsText(item["Down Time Duration"]);

 

What is the equivalent code in CSOM  for getting the value of Calculated Column ?

0 Replies