Questions tagged [xml]
Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
358
questions
0
votes
1
answer
41
views
I am trying to convert Salesforce data to XML tags. End goal is to be able to import into MS Project. This will make the job of operations team easier
So our operations team usually works on MS Project to manage our Projects, tasks,milestones, timelines and status. However, we also have a custom built solution on Salesforce for the same purpose. Now,...
0
votes
1
answer
34
views
XSD file for custom labels
I'm trying to generate an XSD for the customlabels.xml file. The idea is to generate this file and validate the custom labels file as part of the pipeline so that errors can be detected early on.
The ...
0
votes
1
answer
25
views
How to add profile with updated field permissions in package.xml?
I want to update a profile with some field level permissions and then deploy this on another sandbox. How can I add this in package.xml?
Below is the sample XML Code for this:
<?xml version="1....
0
votes
2
answers
51
views
call querySelectorAll function in Apex XML Parser?
I have the following XML stored in a field from API,
I need to extract this data to store it as records to related list of the current object.
<steps id="0" last="9">
<...
-1
votes
1
answer
61
views
Convert XML to DataTable
I have following XML format returning from API.
I need to extract in LWC Datatable.
XML 1:
<steps id="0" last="4">
<step id="2" type="ValidateStep"&...
0
votes
1
answer
25
views
Copy one xml and generate another with modified values
I need to copy one xml and need to generate another xml file. The purpose of creating another xml file is to have modified data. I'm using below code
public static void parseXMl(String strResp){
...
0
votes
0
answers
190
views
Deployment Error Says Report Folder is Missing
I'm deploying an sfdx project from VSCode. I'm getting errors on all of my report files that say "Cannot find folder:StoryNavigator." The folder and reports are in my package, so I'm not ...
0
votes
1
answer
51
views
Set Default Page Layout for Record Type in XML File
Can I add a default page layout to a record type xml file?
I'm deploying an sfdx package to various client organizations and I want to set a default page layout in each record type XML file. I can't ...
1
vote
0
answers
53
views
How do you handle changes to xml files across different feature branches?
We have different teams all working in the same Salesforce instance. While these teams usually have their own permission sets/objects/whatever that they work in, there are times when we find ourselves ...
0
votes
1
answer
45
views
Converting a custom xml attribute to a useable AMPscript valuue
I am using several AMPscript blocks to import xml order data from Commerce Cloud into a Marketing Cloud Data Extension, ex:
set @P18_orderno = concat("//order/product-lineitems/product-lineitem[...
0
votes
1
answer
181
views
How to bind variable in .js-meta.xml file of LWC component?
Javascript :
import { LightningElement, api } from 'lwc';
export default class ApcApiArticle extends LightningElement {
@api prevPart;
connectedCallback() {
this.sfdcBaseURL = window.location....
0
votes
1
answer
202
views
Headless Quick Action Not Working As Expected
I have an aura component being used as a wrapper around a LWC that is in a lightning action on the highlights panel of the lightning page. When I attempt to create the LWC as a "...
0
votes
0
answers
166
views
How to find out if a schedule triggered flow is running as a batch from the xml metadata?
This is the xml of schedule triggered flow. How to know if it is changing a batch of records?
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce....
0
votes
1
answer
349
views
How to determine the type of flow using the XML metadata file of the flow?
How do I determine whether a flow is a Screen Flow, Schedule-Triggered Flow or Record-Triggered Flow etc. from the metadata?
Here is a flow of type Screen Flow:
rule.flow
<?xml version="1.0&...
0
votes
1
answer
177
views
My Search Filter Lightning Web Component isn't Working and I'm Not Sure Why
The purpose of my LWC is to search the name of an account and return a list of associated contacts. Every time I try and search for an account in the search bar nothing happens, and I am not sure why.
...
0
votes
1
answer
77
views
Parse XML fails with NullPointerException when attribute is xlmns only
I got a sample XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<RootNode>
<Sample1 xmlns:key1="yyy">
<Sample11>ABC</Sample11&...
1
vote
1
answer
189
views
Run a JavaScript App on Salesforce Community page
A 3rd party wrote a very simple JavaScript web app. I have HTML code, the JavaScript file, and an XML file. I am wondering if there is a way to use this on a Salesforce Community page without ...
0
votes
1
answer
123
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
93
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 ...
2
votes
1
answer
477
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
54
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
48
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
2k
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 ...
1
vote
1
answer
283
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 ...
1
vote
1
answer
390
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
62
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
118
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 ...
1
vote
1
answer
454
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 ...
0
votes
2
answers
657
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 ...
2
votes
1
answer
382
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 ...
0
votes
1
answer
1k
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
95
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 ...
1
vote
0
answers
251
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
208
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
145
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
125
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,
0
votes
0
answers
133
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
283
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
493
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 ...
0
votes
1
answer
422
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
350
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
462
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 ...
1
vote
0
answers
180
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
156
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
122
views
Get attribute from RSS feed
Within an RSS feed I am trying to target the img>src from the description tag
<description><img src="https://www.website.com/content/dam/cmegroup/videos/metals-market-...
0
votes
1
answer
190
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
69
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">...
1
vote
2
answers
2k
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
83
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"...
1
vote
1
answer
2k
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 ...