locked
Retrieving image from sales literature item only returns 2000 characters RRS feed

  • Question

  • I am trying to retrieve the image attached to the sales literature item with the following query 

    "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
                              <entity name='product'>
                                <attribute name='name' />
                                <attribute name='productid' />
                                <attribute name='productnumber' />
                                <attribute name='description' />
                                <attribute name='statecode' />
                                <attribute name='productstructure' />
                                <link-entity name='productsalesliterature' from='productid' to='productid' intersect='true'>
                                  <link-entity name='salesliterature' from='salesliteratureid' to='salesliteratureid' >
                                    <link-entity name='salesliteratureitem' from='salesliteratureid' to='salesliteratureid' alias='as'>
                                        <attribute name='title' />
                                        <attribute name='filename' />
                                        <attribute name='documentbody' type='string' />
                                        <attribute name='attacheddocumenturl' />
                                    </link-entity>
                                  </link-entity>
                                </link-entity>
                              </entity>
                            </fetch>"

    I can get the images but they are all only 2000 characters long.

    Is there any way to increase this limit or can someone provide me with a better way to retrieve these images?

    Thursday, March 9, 2017 10:51 AM