Pregunta

¿Cómo representar una imagen a través de CAML? Tengo una lista y estoy tratando de crear una instancia de la lista mediante la adición de datos a través de CAML

 <Data>
      <Rows>
        <Row>
          <Field Name="Title">Promotion 2</Field>
          <Field Name="Promotion Image">/SiteCollectionImages/PR.gif</Field>

        </Row>
      </Rows>
    </Data>
¿Fue útil?

Solución

¿Has probado:

<Field Name="Promotion Image"><![CDATA[[<IMG SRC="/SiteCollectionImages/PR.gif"/>]]></Field>

Otros consejos

Esto hizo el truco:

<Field Name="Promotion Image"><![CDATA[<IMG SRC="/SiteCollectionImages/PR.gif"></IMG>]]></Field>

Gracias Magnus

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top