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
0answers
27 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
30 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
36 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
20 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
18 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
20 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
53 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
36 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
105 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
90 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
38 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
73 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
397 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
61 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
73 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
30 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
71 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
95 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
88 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
93 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
52 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
294 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
163 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
33 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
630 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
150 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
35 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
199 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
1k 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
174 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
436 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
51 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
712 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
251 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
86 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
160 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
290 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
239 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 ...
4
votes
0answers
40 views

Extending metadata xml without overwriting in org

I'm creating a 2GP managed packaged that adds a custom tab to the Service Console. While developing in a scratch org, the metadata pulled into my project includes a customised version of the Service ...
2
votes
0answers
157 views

Outbound messaging, one org to another, can I reference in Apex, the class referred to by the Notifications element in the Outbound Messaging WSDL

I am trying to receive an outbound message sent from a workflow in one Salesforce org, using a SOAP webservice method in another Salesforce org. This would be a nice-to-have, if I can't get this ...
1
vote
0answers
27 views

Uploading Self Signed Cert Through MetaData SOAP

I am trying to understand the right way to format a SOAP POST in order to upload a self-signed certificate into a scratch org. Based on here: https://developer.salesforce.com/docs/atlas.en-us....
1
vote
0answers
43 views

How to reset a label in a CustomObjectTranslation back to its original value using the Ant Migration Tool?

I use a Case object with a custom field having an API Name of ExampleField__c and a Label of Example Field. Lets say I have a translation file for a Case object and there's a section for the Example ...
2
votes
1answer
73 views

Can we analyze PMML models in Salesforce?

Is there any piece of Apex code or Managed Package that is able to read and parse PMML models, and then evaluate them on a given set of data? I cannot find anything directly, and hoped some of you ...
0
votes
0answers
343 views

Setting page orientation when VF is exported to excel

I am trying to format excel file that is exported for VisualForce page. I am able to export the data in a table with cell width that I need. For printing, I want to set the page orientation:Landscape ...
2
votes
1answer
482 views

System.XmlException: start tag unexpected character =

This is the full error: System.XmlException: start tag unexpected character = (position: END_TAG seen ...<source> Bicycling</source><media:contenturl=... @1:688) So from my ...
0
votes
0answers
213 views

Mock HTTP Call Out In Test to Return XML

I am very new to HTTP Callouts and now I am in the testing phase. My HTTP Callout returns XML This is the link. I input a company already, soulcycle, in case anybody wanted to see what was being ...
1
vote
2answers
248 views

Row Count error

I wrote a code that reads that xml data and extracts all the values, separate the First Name from the Last Name and updates the DE, but I am still getting an error: "Invalid index (parameter 2) ...
1
vote
0answers
58 views

Update DE using data from BuildRowsetFromXml

I have an xml export that I need to use in order to send email to the users from the xml, to separate the ContactName in to FirstName and LastNameand and also to update a DE. The content of the xml is ...

1
2 3 4 5 6