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
-1 votes
1 answer
39 views

Parsing a SAML request

I have a Base64 payload I need to decode and edit, and then encode again. The encoded Base64 is an XML file I need to modify, or at least extract values from it. How can I work with the Blob? Can't ...
user avatar
  • 1
-1 votes
1 answer
40 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=&...
user avatar
0 votes
1 answer
29 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 ...
user avatar
  • 703
0 votes
1 answer
67 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 ...
user avatar
0 votes
0 answers
36 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 ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
1 vote
0 answers
34 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 ...
user avatar
  • 51
1 vote
0 answers
28 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 ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
0 votes
1 answer
39 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-...
user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
42 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 </...
user avatar
  • 1,439
-3 votes
1 answer
33 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">...
user avatar
  • 5
0 votes
2 answers
106 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 ...
user avatar
1 vote
1 answer
22 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"...
user avatar
  • 5
1 vote
1 answer
72 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 ...
user avatar
  • 1,439
0 votes
0 answers
34 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 ...
user avatar
  • 2,507
0 votes
1 answer
204 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-...
user avatar
  • 1
0 votes
1 answer
62 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, ...
user avatar
  • 616
0 votes
1 answer
108 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 ...
user avatar
  • 616
0 votes
1 answer
56 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="...
user avatar
  • 5
3 votes
1 answer
355 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"> &...
user avatar
  • 405
0 votes
0 answers
14 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 ...
user avatar
1 vote
1 answer
64 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 <...
user avatar
3 votes
0 answers
176 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
32 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 ...
user avatar
  • 113
0 votes
1 answer
64 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 ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
  • 1,899
0 votes
1 answer
32 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 ...
user avatar
  • 101
0 votes
0 answers
539 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 ...
user avatar
0 votes
1 answer
47 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?
user avatar
  • 99
0 votes
2 answers
312 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/...
user avatar
0 votes
1 answer
29 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/...
user avatar
0 votes
2 answers
141 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 ...
user avatar
0 votes
1 answer
43 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/...
user avatar
0 votes
1 answer
207 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="...
user avatar
0 votes
0 answers
96 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 ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
0 votes
1 answer
31 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"> <...
user avatar
1 vote
1 answer
100 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 ...
user avatar
  • 33
0 votes
1 answer
146 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:...
user avatar
  • 153
0 votes
0 answers
363 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 { (...
user avatar
  • 153
0 votes
1 answer
175 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?...
user avatar
-1 votes
1 answer
41 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
0 votes
0 answers
31 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,"//...
user avatar
  • 1
1 vote
0 answers
40 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 ...
user avatar
  • 95
0 votes
1 answer
78 views

Ampscript - BuildRowSetFromString with multiple inputs

I need to convert the following string [{"productName":"Product1","productPrice":100,"deliverByDate":"04/13/2021","giftMessage":{"...
user avatar
1 vote
2 answers
169 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 ...
user avatar

1
2 3 4 5
7