How do i represent an image through CAML?
-
09-09-2019 - |
Question
How do i represent an image through CAML? I have a list and im trying to create a list instance by adding data through CAML
<Data>
<Rows>
<Row>
<Field Name="Title">Promotion 2</Field>
<Field Name="Promotion Image">/SiteCollectionImages/PR.gif</Field>
</Row>
</Rows>
</Data>
Solution
Have you tried:
<Field Name="Promotion Image"><![CDATA[[<IMG SRC="/SiteCollectionImages/PR.gif"/>]]></Field>
OTHER TIPS
this did the trick:
<Field Name="Promotion Image"><![CDATA[<IMG SRC="/SiteCollectionImages/PR.gif"></IMG>]]></Field>
thanks Magnus
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow