Questions tagged [xml]

Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

-metadata.xml Salesforce Metadata Retrieve and Deploy

we have a problem with to deploy a package, the problem is the next We was retrieve the metadata from Workbrench Tools with to package.xml (Example: Profile) in this part we saw that file name of ...
0
votes
1answer
25 views

Is it possible to go to aparticular node in a xml?

I am wondering how can I search a node once I parse an XML, I need to go to the node (attached at the end of the question) "data-block" and loop through all the children to extract the value ...
0
votes
1answer
16 views

Merging Accounts on SOAP API While Preserving Data

I am working on some code right now to merge Accounts in Salesforce, but when I need to merge accounts I need to have certain fields preserved in case the victim account has something that needs to be ...
0
votes
0answers
63 views

Origin has been blocked by CORS policy

I understand there are lots of questions and answers related to CORS policy, but here I wanted to make sure if I'm understanding it right and solving it the right way. I have a visualforce page that ...
0
votes
1answer
30 views

Salesforce get Record types XML [closed]

I created new Record Type and now I can deploy it to PROD using Change set (Outbound/Inbound) but is there any option to get Record types XML in order I can push that XML to gitlab?
0
votes
2answers
34 views

Parsing XML to get child nodes

I am trying to parse the following XML Payload in Apex: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/...
0
votes
1answer
24 views

Parse xml form different nodes by id

I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in the method. <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/...
0
votes
2answers
112 views

Discover Schema of Source + Metadata XML formats

The Open Source Static Analyser PMD is now supporting not only Apex but also rules on arbitrary XML metadata. Using flexible XPath expressions that verify the structure and attributes of XML. I am ...
0
votes
1answer
39 views

Parse xml for getting data

I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in method. <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
37 views

XML request from apex

I need to post some data to server using XML. The XML body of my request is requestBody = '<?xml version="1.0" encoding="UTF-8"?><xmlreq><record name="...
0
votes
0answers
47 views

Error when deserealizing reply message from 'query' operation in .NET Core 3.1

I'm encountering the following error when using the query operation from the Salesforce SoapClient System.ServiceModel.CommunicationException: Error in deserializing body of reply message for ...
0
votes
0answers
19 views

XML is failing after escapeXML()

Today I faced a problem that my XML can't path a validation, after using the escapeXML() method. The reason is that '&' escaping as '&AMP_;' instead of '&amp_;'. Does anybody know the ...
0
votes
1answer
24 views

Parse XML on different levels

How to get value session-id from this xml. <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS"> <...
1
vote
1answer
46 views

Encountering 500 server error while parsing xml response in SSJS

I have req to get User record in Marketing cloud for which I am using SSJS to make SOAP API call and the response is in xml , I am passing the response to Ampscript as SSJS cannot cannot parse xml ...
0
votes
1answer
29 views

Unable to get all elements in List<Dom.XmlNode> [closed]

I'm trying to iterate through a List<Dom.XmlNode) in order to get all elements, but I am only able to get the first two (header - body) Here's my code: String xml='<soapenv:Envelope xmlns:...
0
votes
0answers
78 views

Document.load() fails: System.XmlException: Failed to parse XML due to: only whitespace content allowed before start tag and not {

I am getting the following error when tying to use the Document.load() method for my xml: System.XmlException: Failed to parse XML due to: only whitespace content allowed before start tag and not { (...
0
votes
1answer
23 views

Failed to Parse WSDL:External schema import not supported

While parsing the WSDL in throws an error as External schema import not supported Error: Failed to parse wsdl: Found schema import from location http://crcind.com/csp/samples/SOAP.ByNameDataSet.cls?...
-1
votes
1answer
35 views

AMPscript loop is showing incorrect output

I am trying to create AMPscript to parse through an XML payload and output the correct status in each classification. However, currently, my code is outputting every status in every classification I ...
0
votes
1answer
41 views

Why does my AMPscript only loop once?

I am trying to display multiple results using this loop. However, it will only loop through the first set of results from the XML. AMPscript: %%[ VAR @ShipmentsReleasedRows SET @ShipmentsReleasedRows ...
0
votes
0answers
19 views

ampscript reading from XML RSS feed node attribute <enclosure

based on the xml below I am trying to get the value from the node <enclosure I have tried the below line in AMPScript but it has not worked Set @imgages_urls = BuildRowsetFromXML(@xml,"//...
1
vote
0answers
33 views

Importing a 1024bit key into SF

we are integrating into a government system (yep one of those!) they have given us a PFX certificate and I have managed to use openssl and java keystore to convert it to a JKS file When I tried to ...
0
votes
1answer
33 views

Ampscript - BuildRowSetFromString with multiple inputs

I need to convert the following string [{"productName":"Product1","productPrice":100,"deliverByDate":"04/13/2021","giftMessage":{"...
1
vote
2answers
88 views

How to validate LWC's XML properties?

I have two properties configured through XML, they are two currencies for currency converter app, so they cannot be the same, but I don't know how to prevent this if a user types the same value for ...
0
votes
0answers
35 views

how to read file in content version object in apex

I have uploaded the XML file in notes and Attachments that file saved in the Content Version object so I need to read the file and insert it with respective fields in the Account object. Now I worked ...
0
votes
1answer
50 views

Insert/update parse xml content file in address filed in the Account/Contact object

My requirement I have an XML file with a large number of address data. I need to Insert/Upload it to the Salesforce Account object in the address field. This is the output I need to get. This code I ...
0
votes
1answer
58 views

Unable to parse xml data with address in Account object with address field

My requirement I have XML data with a set address I need to insert all XML address data into the Account object with the Address field respectively. any solution to this. My updated code: If I insert ...
0
votes
0answers
156 views

org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

My salesforce organization outbound messages suddenly stopped working.i got this error message In outbound messages monitor I looked some resources on the internet, About this error they say, ...
0
votes
1answer
27 views

Outbound XML Payload and Heap Governor Limits

Greetings my fellow SF Experts, I have a massive outbound XML integration that I need to build in salesforce (Multiple XSD schemas with several thousand lines of xsd elements). Waiting for official ...
0
votes
1answer
47 views

XMl parse data to insert into contact fields respectively

For example, if I have XML data with address records, I need to insert the address data of XML into Address fields in the Account object respectively Can you please help... Update the code public ...
0
votes
1answer
149 views

External Service - Parsing XML/JSON

I am trying to implement an integration with a third-party system to Insert Products into Salesforce. I have created the External Service, consumed the schema, and was also able to make a call to the ...
0
votes
0answers
18 views

How to Add Docusign Signature and Date Tags to Dynamic PDF Creation [duplicate]

I'm trying to determine if it is possible to embed the Docusign Signature and Date tags into apex code that dynamically generates a PDF file using XMLStreamWriter. The PDF file is generated from the ...
0
votes
0answers
77 views

Empty lines after each line in LWC meta files

After sfdx force:source:retrieve -x manifest/package.xml my meta files (only LWC) have empty empty lines after each line. Before retrieve: <LightningComponentBundle xmlns="http://soap.sforce....
2
votes
1answer
49 views

Apex stub from an xml with attributes

I have created apex stub classes from a wsdl and invoked a external SOAP webservice from it. The response is an xml with attribute in elements. I need to extract the value (which is 'PPPPPP' when wd:...
0
votes
0answers
57 views

Convert large XML into PDF format as attachment

<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"> <pdf> <head> <link name="NotoSans" type=...
0
votes
1answer
87 views

What is the Workflow metadata type?

I've got a couple of XML metadata files in a workflows folder, the contents of the files are really basic: <?xml version="1.0" encoding="UTF-8"?> <Workflow xmlns="...
2
votes
1answer
50 views

Error pushing -meta.xml to scratch org: The processing instruction target matching "[xX][mM][lL]" is not allowed

I was attempting to use the SFDX CLI to push the following file to a scratch org: force-app>main>default>messageChannels>SettingCategory_Selected.messageChannel-meta.xml <?xml version=&...
0
votes
1answer
31 views

How can I escape the the double quoted xml in AMPscript

After I use http call to get xml from an endpoint, i got this xml; "<root><listing bedrooms="3" bathrooms="2.0" /><listing bedrooms="" bathrooms="...
0
votes
1answer
194 views

Flexipage deployment error

Error while deploying the flexipage in 21 sandbox ,, it is working fine by retrieving from the VS code Kindly help error: Property 'itemInstances' not valid in version 46.0
0
votes
0answers
68 views

How to get CDATA text whether in APEX or Javascript from the below RSS feed example I only end up with null values

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:abacus="http://www.abacusemedia.com/webvisioncloud/" xmlns:media="http://www.abacusemedia.com/...
1
vote
1answer
279 views

How to respect non-self-closing br tags when apex parsing HTML with "Dom.Document" class

I'm trying to parse an HTML string. This string comes from a Salesforce rich text editor's content. It's a field saved on a record. String html = '<p>hello<br>goodbye</p>' String ...
1
vote
1answer
308 views

Failed to parse XML

I've getting a problem when trying to parse an XML. The logs says: System.XmlException: Failed to parse XML due to: markup not allowed inside attribute value - illegal < (position: START_TAG seen ....
0
votes
0answers
74 views

Automatically export data from Salesforce

I created a script to automatically extract data from Data Loader. I tried testing the SOQL in the dev console and it's showing the correct data, but when I used it in XML file the process is ...
3
votes
0answers
134 views

sfdx force:source:push error Push Failed. [XML parse error]

I created lwc for embbeding in Community and push it to a scratch org by using the command "sfdx force:source:push" but I got the error: Error parsing file: LWC Metadata Xml Parser: ParseError at [...
1
vote
2answers
963 views

Error parsing file: 'RecordAfterSave' is not a valid value for the enum 'FlowTriggerType'

I am trying to deploy the Flow-meta.xml file using vs code with salesforce dx to my scratch Org. I am getting the error 'Error parsing file: 'RecordAfterSave' is not a valid value for the enum '...
0
votes
2answers
36 views

IF EMPTY pulling from XML DE

I am attempting to embed this script inside email body but getting an error when looking for empty tax data. I am interested to populate the word "FREE" from @EstimatedFreightAmount if no data exists ...
0
votes
1answer
247 views

Using AMPscript to pull XML from DE

I'm trying to create an email that pulls XML from a field in a data extension but my ampscript knowledge is very limited. The DE field that the XML is under is a text field called 'attribute' and ...
1
vote
1answer
40 views

Ant Migration tool : Running a Subset of Tests in a Deployment

In the build.xml , is there a way to specify a list of test classes to be added for running on deployment from a external file instead of hard coding it in the build.xml https://developer.salesforce....
0
votes
0answers
94 views

new XSLTProcessor() fails in lwc

I am playing around a bit with lwc and the open-source version of it. I tried to copy my open source lwc component into my saleforce project but now I am getting an error message that does not really ...
1
vote
0answers
233 views

SFMC XML data extract - input file name wildcards

We are using an automation that is triggered by a file drop on the FTP. In this automation there is a Convert XML Data Extract Activity to convert the dropped XML file to a CSV file which can be ...
0
votes
0answers
122 views

How to convert XML to Change Set

I usually get XML package to Deploy via ANT but sometimes ANT doesn't work appropriately. In emergencies, I don't get time to fix the issue. So i wonder if I could get a way to convert XML to Change ...

1
2 3 4 5
7