Wednesday, May 2, 2012

Rich Text to Plain Text in SharePoint Client Side Object Model

It took me a while to figure out how to do this, so I thought it would be worthwhile to document it on the Internet as no matter how I searched I could not find a good solution. Basically I have a SharePoint field of type FieldMultiLineText (or SPFieldMultiLineText on the server object model). In the server object model there is the GetFieldValueAsText() method. But there was no such method in the CSOM. In the CSOM it is used like this:

string myString = item.FieldMultiLineText[Field_Name]

Simple enough!


4 comments:

Unknown said...

What is "item" in your case? In my code "item" is an element in a ListItemCollection and it does not offer the "FieldMultiLineText"-property.

Help would be great!

alex lee said...

we create best clothing to wear for our customers.We make all kinds of clothing accessories for men and women.Just come and see for yourself:Plain Poloshirts

Anonymous said...

Mmorpg
instagram takipçi satın al
tiktok jeton hilesi
tiktok jeton hilesi
antalya saç ekimi
referans kimliği nedir
instagram takipçi satın al
metin2 pvp serverlar
ınstagram takipçi satın al

Anonymous said...

En son çıkan perde modelleri
Mobil onay
mobil ödeme bozdurma
HTTPS://NFTNASİLALİNİR.COM
Ankara evden eve nakliyat
trafik sigortası
DEDEKTÖR
web sitesi kurma
Aşk romanları

Post a Comment