Add xml2json
func, expandReference parseXML(body)
#444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short Description
Add
xml2json
function and improveparseXML
functionWhy ?
The implementation team has ongoing project in partnership with vera team. This project will have an automated workflow that will take data from SunSystem which has a SOAP API to Salesforce. To make the transformation process easy, We need an adaptor function that can be used to convert the xml response to a json object.
Implementation Notes #446
Add
xml2json(xmlString, options, callback)
function that uses xml2js package. This function will takexml
string and convert it tojson
object.This PR also contain improvements for
parseXML
function. The first argument of theparseXML
function was not usingexpandReferences
which makes it hard to access data fromstate
in job code.Review Checklist
dev only changes don't need a changeset.