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
20 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
58 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
14 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
43 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
46 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
11 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
18 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
46 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
37 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
16 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
34 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
34 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
40 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
22 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="...
1
vote
1answer
23 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
25 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
84 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
39 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
162 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
136 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
51 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
94 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
464 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
0answers
74 views

Got Version Mismatch as elivery Failure Reason in Outbound Message

Let's say I have Mule Soft Flow with HTTP Listener having in response message following DataWeave expression: %dw 2.0 ns soapenv http://schemas.xmlsoap.org/soap/envelope output text/xml --- soapenv#...
0
votes
2answers
34 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
90 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
32 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
82 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
151 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
105 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
vote
1answer
104 views

Process AMPscript SOAP API response

I've built an XML SOAP API request which retrieves the names of all Automations within our BU. It looks like this: SET @endpoint = "https://[endpoint key -censored].soap.marketingcloudapis.com/...
0
votes
1answer
77 views

XML extract whole element block as string [closed]

Is there a way in Salesforce (using Streams / DOM) to extract the whole XML block as a string. Use Case- We have a callout response in XML, and want to store a portion of the response as a file on ...
3
votes
1answer
302 views

Metadata Equivalent of the System Permission “Connect Org to Customer 360 Data Manager”

I'm currently experiencing the error: "You may not modify the permission Connect Org to Customer 360 Data Manager while editing a Standard Profile". I've checked in the destination org ...
1
vote
1answer
228 views

Error when loading an XML String into Dom.Document.load()

I'm trying to construct an XML with attributes from and object (in this case Account). public string createXmlFromAccount(Account acc){ String sResOutPut = ''; Contact[] theContacts = [SELECT id ...
3
votes
0answers
37 views

What causes leftover XML to exist in files when a component is deleted via the UI?

I've had interesting situation come up today when doing a metadata validation on a very large package. An error was occurring on a Page Layout where it was expecting that a QuickAction should also be ...
1
vote
0answers
851 views

Lightning App - My Utility bar doesn't show

This topic continues this one from yesterday, the context remains : While migrating an org from Classic to Lightning, I'm trying to deploy and add a Utility Bar ; I'm using Workbenchn, following this ...
1
vote
1answer
208 views

Decoding pipe symbol in apex

In a response of a callout, I am getting a XML. Sometimes, values contains encoded value of Pipe symbol as given below <Name>Test &#124; Shift Happens: Test data </Name> I am ...
0
votes
0answers
46 views

Applying XML Namespaces without Prefixes in XML Doc

I am still relatively new to XML in Apex and I am trying to reproduce the following XML: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/...
1
vote
1answer
288 views

Parsing XML string with DOM.Document removes attributes?

Hello fellow Salesforce devs! I hope this question haven't been asked before, but i havent found any articles explaining the same issue so here it goes. Im trying to parse an XML string that we get ...
1
vote
2answers
2k views

Inserting HTML Markup in Custom Label Value

I'm using Custom Labels for a specific message and I'd like to insert a link into that message, e.g., <a href="http://my.domain.com">Go here to login</a>. I tried this using entity ...
1
vote
1answer
243 views

Set HttpWebRequest to Accept = application/xml

If I am querying using the following, then Function CallSFDCAPI works. services/data/v41.0/query?q=Select+Id+FROM+Vendor__c" I am required get the response in XML format. But how can i get the ...
0
votes
1answer
509 views

Dom Document generation by APEX code

I am writing APEX to generate DOM document. I want to generate <TOTALVOLUME units="m3">1.0</TOTALVOLUME>. Parent node for TOTALVOLUME is consignmentBody and I am trying Below code to ...
0
votes
1answer
33 views

Encoding windows-1255

I have created an apex class which created an xml using: xmlW.writeStartDocument('windows-1255','1.0'); but I get the following error: Underlying stream encoding 'UTF-8' and input parameter for ...
0
votes
1answer
52 views

How can I use BuildRowsetFromXML to pull XML content from a Data Extension? [closed]

I need to be able to pull this data out and display it in the email content. My understanding is that I need to use BuildRowsetFromXML to parse the XML. <Details> <Detail> ...
0
votes
1answer
803 views

get the field layout metadata from record page

I wanna get fields from a record page. So tried to use metadata query in apex, but it did not look working well. Below is the code that I tried. What should I write in the code to get fields metadata ...
0
votes
1answer
317 views

How to display checkbox in custom custom visualforce page for CPQ quote?

I am trying to generate a quote document using custom visualforce page for steelbrick CPQ. I need to display a checkbox in a column (it does not have to be associated with any field). I tried using , ...
0
votes
1answer
96 views

BuildRowsetFromXml is returning empty nodes

I am trying to get the first name from the order confirmation but the field AMPscript returns is empty. This is my code: %%[ var @firstName var @lastName var @email var @products var @subscriberKey ...
0
votes
2answers
210 views

How to add text identifier using addChildElement method in apex XML request formation

How to do i construct the xml request formation in apex,required output format is pasted here. <ns:Email EmailType="03"><ns:EmailAddress>temp@mail.com</ns:EmailAddress> </ns:...
1
vote
1answer
342 views

Bulk API V1 Query - ResultId missing when running concurrent Bulk Jobs

When querying for the result ids of a batch on a closed Bulk (v1) query job, sometimes the result id is not returned; instead the full returned xml is: <result-list xmlns="http://www.force.com/...
0
votes
0answers
297 views

Populate XML with XSD Schema

I was provided an XML schema that (I think) I should be able to utilize to build out the XML string that I need to send to a web service. The two documented items in the Apex Developer Guide talk ...

1
2 3 4 5 6