Skip to content

Convert

Converts content between CSV, JSON, or XML.

Parameters

NameDescriptionAllowed ValuesRequiredDefault
contentIndexesList of content indexes to include or excludeinteger (list)
contentTagsList of content tags to include or exclude, matching anystring (list)
csvWriteHeaderWrite a header row when converting to CSVbooleantrue
excludeContentIndexesExclude specified content indexesbooleanfalse
excludeContentTagsExclude specified content tagsbooleanfalse
excludeFilePatternsExclude specified file patternsbooleanfalse
excludeMediaTypesExclude specified media typesbooleanfalse
filePatternsList of file patterns to include or exclude, supporting wildcards (*)string (list)
inputFormatFormat of the input contentCSV
JSON
XML
mediaTypesList of media types to include or exclude, supporting wildcards (*)string (list)
outputFormatFormat of the output contentCSV
JSON
XML
retainExistingContentRetain the existing contentbooleanfalse
xmlListEntryTagName of the XML tag to use for list entries when converting to XMLstringlistEntry
xmlRootTagName of the root XML tag to use when converting to XMLstringxml

Input

Content

Input content to act on may be selected (or inversely selected using the exclude parameters) with contentIndexes, mediaTypes, and/or filePatterns. If any of these are set and the content is not matched, the content is passed through unchanged.

Output

Content

Converts each content from the inputFormat to the outputFormat. The name of the new content will be the input content name plus the file suffix associated with the outputFormat.

If retainExistingContent is true, each content will be retained, followed by its transformed content.

Errors

  • On failure to convert content

Notes

  • Provides a best effort conversion as there isn't a reliable canonical way to convert between formats.

Contact US