Use of the recordToDocument service

Hi,

I’m working on a project and we need to convert a record list into a XML document. I’m using the recordToDocument service and it happens that I cannot convert the record into this xml. I only see the header (as needed by our customer, but I can see neither the tag names nor their values. Can you tell me how to do it, please?

Thanks

Ana

MAP yourRecList to recList in a record like this:

rec/root/recList

where rec and root are defined as records and recList a record list.

Then recordToDocument will give you an XML like this, if yourRecList has two fields f1 and f2 ( and you move rec to boundNode in service in parameters ):

<?xml version="1.0"?> 1 2 3 4

Consider setting encode parameter to true (HTML encodes special characters if any). If you define your record outside the flow, set recordName accordingly ( folder:record or folder.subfolder:record ).

/mikael