{
"sections": [
"title",
"description",
"file_information",
"directory_location",
"fields",
"wsdl_segment",
"declarative_metadata_sample_definition"
],
"title": "DataWeaveResource - Metadata API",
"description": "Represents the DataWeaveScriptResource class that is generated for all DataWeave scripts. DataWeave scripts can be directly invoked from Apex.",
"file_information": ".dwl",
"directory_location": "dw",
"fields_columns": [
"type",
"required",
"description"
],
"fields": {
"apiVersion": {
"type": "double",
"required": true,
"description": "The API version for this component."
},
"isGlobal": {
"type": "boolean",
"description": "When set to true, the generated DataWeaveScriptResource class is global."
},
"isProtected": {
"type": "boolean",
"description": "Not used."
}
},
"wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n\n\n \n \n \n\n\n \n \n \n \n \n \n \n\n```",
"declarative_metadata_sample_definition": [
{
"description": "csvToContacts.dwl",
"code": "%dw 2.0\ninput records application/csv\noutput application/apex\n---\nrecords map(record) -> {\n FirstName: record.first_name,\n LastName: record.last_name,\n Email: record.email\n} as Object {class: \"Contact\"}"
},
{
"description": "csvToContacts.dwl-meta.xml",
"code": "\n\n 58.0\n true\n"
}
]
}