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
0 answers
11 views

Update picklist using json

I'm trying to update the values of various picklist as well as their dependencies. I'm receiving an xml with the info of the dependencies between my picklists. I'm trying to update the values and the ...
  • 1
0 votes
1 answer
138 views

Get REST API for a XML Response

I am writing a REST API that simply gets a response for a url. However the challenging part is that the response is in xml format instead of json. I am not sure how to parse this xml and get specific ...
0 votes
0 answers
33 views

XML attribute-id line items not populating with AMPscript and JSON parse

Attempting to land attribute-id (price) data on "price" with XML below using ampscript and JAVA which is not showing a result for %%=v(@price)=%% in HTML body. XML <custom-attribute ...
  • 13
0 votes
0 answers
34 views

Apex + XmlStreamReader: Checking if XML element has text

I'm trying to use the XmlStreamReader class to read XML. I want to handle the scenario where the XML has an empty node, as with <Caption></Caption> in this example: <Book> <...
1 vote
0 answers
39 views

Trails Project didn't work the deployment

I have been trying to learn a bit about LWC. In this process I found a trail: https://trailhead.salesforce.com/content/learn/projects/quick-start-ebikes-sample-app In which, I have found a couple of ...
0 votes
2 answers
59 views

How to use Field(Row(BuildRowSetFromXML()) to fetch a field with a specific attribute-id from XML

Issue From the attached XML i am traying to read the value of "vertex_retail_delivery_fee" with below code. <custom-attribute attribute-id="vertex_retail_delivery_fee">0.27&...
0 votes
1 answer
45 views

lots of extra lines in layout xml files when deployed to git [closed]

I currently use Gearset to deploy to our Bitbucket repo. We don't quite have a perfect dev > branch > deploy process yet and some changes get made directly in production. This causes 2 sources ...
1 vote
1 answer
68 views

Ant migration tool - keep track as Change Set

Is there a way to deploy meta data through ant migration tool and keep track of this deployment in salesforce? In the same way as change set appear as inbound change set. thanks,
  • 473
0 votes
0 answers
45 views

How to read my xml in a link using ampscript

I have my xml in a link and I would like to parse ampscript, how could I read the XML in my ampscript? XML - <?xml version="1.0" encoding="UTF-8"?> <cart> <...
-1 votes
1 answer
99 views

Parsing XML with nested XML document

I am trying to parse the following XML. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=&...
0 votes
1 answer
98 views

Change profile name via XML

Profile pushed out to production with incorrect standards naming convention. Need to push this change via package / merge into branch. Really don't want to manually change the name. Using the ...
  • 703
0 votes
1 answer
126 views

why I cant retrieve Entitlement Process, which contains "__" in Name via Workbench

I have an issue with Workbench. I can't retrieve Entitlement Process (somecomponent__process), if this Entitlement Process contains "__" in name. I try to retrieve here: Single package ...
0 votes
0 answers
76 views

Salesforce XML Digital signature issue

We are trying to sign XML with certificate in Salesforce and send it later to the target system. There is a method Crypto.signXML(), which we use and which creates the needed digital signature blocks ...
0 votes
0 answers
124 views

Custom SOAP webservice response

I have this scenario, an App using a Salesforce instance have to change and use another Salesforce Instance but only url for the webservice and credentials can be modified in the App. New custom SOAP ...
1 vote
0 answers
125 views

UNSUPPORTED_MEDIA_TYPE Postman Error - Salesforce Composite Request with XML Payload not working

I created a composite XML payload to update a couple of fields in Salesforce. Used POST request by hitting this REST service https://test.salesforce.com/services/data/v54.0/composite/. I tried with ...
  • 51
1 vote
0 answers
87 views

Apex test class insert KML data into FSL__Polygon__c field FSL_KML__c

I am trying to insert a single polygon into FSL__Polygon__c object for testing. When I run this I get KML data structure is invalid. This is a direct pull from an existing entry. How can I insert this ...
0 votes
1 answer
49 views

Not able to list files under folder for dashboard through metadata api

I am trying to list all the files which are present inside a folder for the dashboard metadata type. for example:- I want to see what are the files which are inside the Service_Dashboards folder of ...
0 votes
1 answer
63 views

Get attribute from RSS feed

Within an RSS feed I am trying to target the img>src from the description tag <description>&lt;img src="https://www.website.com/content/dam/cmegroup/videos/metals-market-...
0 votes
1 answer
71 views

BuildRowSetFromXML with "attribute-id" with multiple data points? [closed]

I'm being asked to display some data coming through our XML feed in our emails. The data is coming through as a custom-attribute but appears as multiple data points that need to be displayed ...
0 votes
0 answers
111 views

Issue with Parsing a XML in Apex

I am trying to parse below xml in apex, where the xml contains a file properties inside <IndexDetails> section and the actual file blob is part of <Attachment>Attachment Blob Content </...
  • 1,499
-3 votes
1 answer
45 views

Parse String from XML

Additional things responseBody for parseXMLRecord method <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">...
  • 5
0 votes
2 answers
413 views

Read a word document (Docx) and modify it in Salesforce

How can we open/read a word document (docx) and modify it from Salesforce (apex, aura, lwc or Appexchange)? The document is a mail merge template. I need to do this, because mail merge is not ...
1 vote
1 answer
27 views

Map from block of xml

I have response xml <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS"> <recordset name="res"...
  • 5
1 vote
1 answer
343 views

Parsing XML with <![CDATA[ is giving wrong result and null

I am trying to parse an XML with ![CDATA where multiple attributes are embedded into ![CDATA tags. By referring to multiple suggestions on parsing XML with CDATA, I have implemented below sample code ...
  • 1,499
0 votes
0 answers
61 views

add custom Names space in wsdl generated from Apex soap webservice class

requirement: i need to expose the Soap service(from salesforce) and give the wsdl to client to consume/call my service. created global Apex class and webservice method : global with sharing class ...
  • 2,587
0 votes
1 answer
888 views

Error using inline dataloader: WARNING: sun.reflect.Reflection.getCallerClass is not supported

I'm trying to use the line loader and I'm getting this error data: I really have no idea why I'm getting this, I'll be adding my mapping: I will also leave the csv for the upsert: And the process-...
  • 265
0 votes
1 answer
161 views

How to build large single XML Document over multiple batches

I would like to understand if it's possible to generate large XML files using XmlNode and Document classes in Batch apex? Ideally, I would like the Dom.Document class variable to be stateful. However, ...
  • 616
0 votes
1 answer
344 views

What's the most efficient way to generate XML using apex? [closed]

Im currently using XmlNode and Document classes in apex to generate XML from sObject records. It works great for low volumes (up to 1000 records). However after that, I get CPU timeout. I can't see a ...
  • 616
0 votes
1 answer
173 views

Parse XML response

I have XML <?xml version="1.0"?> <xmldata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">' + <recordset name="...
  • 5
3 votes
1 answer
1k views

make LWC's targetConfig's property mandatory

How can I make some properties in the meta file mandatory? I have defined a few properties in below format <targetConfigs> <targetConfig targets="lightning__RecordPage"> &...
  • 427
0 votes
0 answers
18 views

How to combine Send Object with ListSend, ClickEvent and Subscribers Objects - sales force marketing cloud SOAP

I am trying to combine data between Send, ListSend, ClickEvent and Subscribers Objects Subscribers and ClickEvent I use SubscriberKey, ClickEvent and ListSend I use SendID So I am trying to figure out ...
1 vote
1 answer
115 views

How to write SQL inside XML SOAP request - salesforce marketing cloud API

I am new to SOAP. I am trying to get the Send Object information and I am able to pull all the data I need except <Properties>SendID</Properties> This is the request I make in postman <...
3 votes
0 answers
322 views

Remove default LWC Tooltip "This property supports using an expression to define its custom label"

In our organisation we have some LWC with configurable fields in the XML As you can see, some of them have description and others have not. Even for the ones that have a description, the help text ...
0 votes
1 answer
36 views

Heroku fails to build Java application with XSL transformation

I have just attempted to deploy onto Heroku a change to my Java 8 application, which includes an XSL transformation. The deploy fails because the Maven build fails, with the message: cannot find ...
0 votes
1 answer
66 views

RSS feed via Ampscript (with earlier sample code failing)

I am trying to create a content block in email-studio, using xml/rss feed to import content for display. I've used both (1) creating a standalone content block, and (2) inserting a code snippet ...
  • 113
0 votes
1 answer
290 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
1 answer
54 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 ...
  • 1,899
0 votes
1 answer
53 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 ...
  • 101
0 votes
0 answers
1k 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
1 answer
66 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?
  • 99
0 votes
2 answers
1k 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
1 answer
31 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
2 answers
162 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
1 answer
45 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
1 answer
439 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
1 answer
36 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
1 answer
144 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 ...
  • 33
0 votes
1 answer
264 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:...
  • 307
0 votes
0 answers
576 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 { (...
  • 307
0 votes
1 answer
366 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
2 3 4 5
7