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
1 answer
32 views

How to conditionally render an LWC component based off of an XML <property> selection?

So I am rather stuck on this issue I am facing, being new to Salesforce. If someone may be able to point me the way to understand the issue a bit better... Issue: I have three image types in my XML ...
0 votes
0 answers
37 views

Invalid value specified for function parameter

I keep getting the error: Invalid value specified for function parameter. when trying to Preview my email using xml Below is the html I have at the top of my email. 'attributes' refers to a data ...
-1 votes
0 answers
24 views

can we send notes and attachments along with xml using rest api in salesforce?

I would like to know if we can send notes and attachments along with xml data using rest api.
0 votes
0 answers
53 views

"LWR3008: Error" from LWC component in Flow on a digital experiences page

I'm working on a form that is going on a digital experiences website. I've made the form using Flow, and I have one screen that contains a LWC. The LWC and flow has no errors in Preview and Debug mode ...
1 vote
0 answers
35 views

SOAPUI: Invalid Foreign Key Relationship name Product2

I'm trying to upsert an OrderProduct (OriderItem) on my order with below message <soapenv:Body> <urn:upsert> <urn:externalIDFieldName>Order_Product_Number_AS400__c<...
0 votes
0 answers
27 views

How can I make Forms Manager retrieve/deploy to org?

Currently, users must edit or upload a Forms Manager record in order to make changes. I would like to know if there is a way to use metadata xml to retrieve/deploy a template to my org. This will also ...
1 vote
2 answers
184 views

Is it possible to define and add Picklist values to a Package.XML file

As a user, I would like to add the following picklist values for Opportunity Type. Value 1 - New Business Value 2 - Expansion Value 3 - Renewal Is there a way to define this in the package.xml so ...
  • 121
1 vote
1 answer
56 views

Adding Object Settings into a Package.XML

I would like to enable Field History Tracking for the Account, Opportunity, Contact and Lead objects. I understand that I need to include the Setting's type in the Package.XML and I did so for the ...
  • 121
1 vote
1 answer
65 views

How to configure an XML file with a dropdown menu

I'm trying to recreate a LWC. I want to receive the values from the little popup menu on the digital experience page in my LWC and to format it like this: I'm not sure how I would get the dropdown to ...
0 votes
1 answer
29 views

How to reference Parent values when using GetChildElement to create new records via Apex

I have an Apex Class that is calling out from Salesforce to our Accounting system to pull back revenue data into Salesforce. It does so by querying for a Contract record in the accounting system, ...
1 vote
0 answers
26 views

problems with adding Child node to existing XML elements

I am trying to parse html in apex class using XML Parser Document and XML Nodes classes. At one point I need to add another xml which is present as string with me to one of the nodes as child node in ...
  • 41
1 vote
1 answer
113 views

How to insert documents in Package.XML

How do you correctly insert documents (more specifically images in a document) in the package.xml manifest. Scenario: I am trying to create an unlocked package and with that package, I would like to ...
  • 121
0 votes
2 answers
242 views

How is help text rendered?

The "Focus" field below has some help text that appears when the mouse is hovered over the info icon and disappears when the mouse leaves the icon: I needed to take a screenshot of the help ...
  • 115
2 votes
1 answer
230 views

How to edit XML in zip document and save changes?

How to edit XML in zip document and save changes? I get the desired file, replace the data, but I don't understand how to download it back to the zip file. The data in the console changes, but not in ...
  • 21
0 votes
0 answers
79 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
572 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
62 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
121 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
72 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
101 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
79 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
91 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,
  • 485
0 votes
0 answers
69 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
193 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
253 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
218 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
105 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
265 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
248 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
119 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
96 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
95 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
124 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 ...
-3 votes
1 answer
58 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
896 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
44 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
937 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,521
0 votes
0 answers
89 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,668
1 vote
1 answer
1k 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-...
  • 295
0 votes
1 answer
322 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, ...
  • 636
0 votes
1 answer
746 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 ...
  • 636
0 votes
1 answer
353 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
2k 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
1 vote
1 answer
200 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
560 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
61 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
90 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
478 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
87 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,935
0 votes
1 answer
120 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 ...
  • 121

1
2 3 4 5
7