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
vote
1answer
24 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
38 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
66 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
0answers
9 views

how to specify DTD while creating XML using Dom.Document

I have created a XML using Dom.Document class but I do not know how to specify DTD. I want to add the DTD inside CD DATA after the start XML tag Here is the DTD: <!DOCTYPE Request [ <!ENTITY % ...
0
votes
1answer
17 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
43 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
0answers
40 views

What is the name for the following to be used in XML. Pushing the following using ANT migration tool

I am using ANT to deploy the Profiles to next sandbox but I am not able to find the name to be used for following in the xml file. The following are available in Profile ->System Permissions Access ...
0
votes
1answer
114 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
0answers
12 views

XML Incorrect Format

A costumer has implemented a button which through VF page makes a call to consume a web service, sending information of an opportunity, the related account and the contacts information. Typically, it ...
0
votes
0answers
42 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
29 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
25 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
57 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
39 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
33 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
25 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 ...
0
votes
0answers
13 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
15 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
32 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
125 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 ...
0
votes
0answers
138 views

Adding Picklist values in custom Picklist using xml

currently im trying to add values to a custom picklist we are using. Currently, after multiple days of trying, im able to create a new custom picklist like this: url2 = "https://telinform--TK20170328....
2
votes
1answer
170 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
67 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
103 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
47 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 ...
0
votes
1answer
31 views

Parse responsexml in salesforce

I am integrating salesforce with an external SAP Application and I am getting the following response XML <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:...
3
votes
1answer
219 views

How to use BuildRowSetFromXML with an “attribute-id” in SFMC?

I'm having trouble referencing a specific item in our order XML feed. I want to reference a specific "attribute-id", not the entire rowset. XML reference: <custom-attributes> <...
1
vote
1answer
23 views

Can I change the accepted Root element of ApexRest?

Possibly a bad question, I am exposing a simple ApexRest Class to accept post's from an external source. example bellow: @RestResource(urlMapping='/user_defined_type_example/*') global with sharing ...
4
votes
2answers
231 views

Using AMPScript to pull in RSS feed content in SFMC

I am attempting to pull in content from a blog feed using AMPscript but am experiencing some issues in attempt to do so. It is probably worth noting that all I need to pull in is the title, ...
1
vote
0answers
40 views

Creating the signature value of a digital signature “manually”?

I need to sign some xml. The issue is that I cannot use the native Salesforce Crypto.signxml() method because I need to sign the soap:body and place the signature in the soap:header element, and this ...
1
vote
1answer
106 views

How to build an integration with rest API in apex using XML

Situation I need to build a connection from Salesforce to "post" to a rest api. The recipient has given me XDS schema files of the data to be sent over. My Current Plan Build a sObject to be the ...
1
vote
0answers
61 views

GET XML via AMPScript

We are currently in the process of trying to get XML data in our marketing cloud emails. One of the solutions i am working on is trying to get the XML via amp script then populate the information via ...
1
vote
1answer
61 views

How can we convert XML to Native Objects when the XML includes “Date” and “Time” as elements?

I'm currently trying to determine whether we can replace our company's convoluted XML processing solution (based on XPath) with one based on @SfdcFox's XmlToJson solution. Unfortunately, the XML we ...
2
votes
2answers
62 views

Salesforce: Issues in removing the entire child node in an xml

I have an xml , and I tried to remove an entire child nodes using the xml DOM process. Even i use the remove child method , the result says true but if i print the dom it still holds that child ...
0
votes
0answers
35 views

Using Crypto.signXml() to assign Digital Signature to Header Block

I have been trying to Cypto.signXml() to sign by XML document. I want to get the Digest and Signature of the Body element but have it inserted into a Security element within the soap Header. The XML ...
0
votes
1answer
29 views

Visualforce Page Permission for all Profiles

I want to provide Visualforce Page permission to all profiles (Custom and Standard) in one single shot. I have 20 Profiles in the list and it will be tough to do it manually.
4
votes
1answer
49 views

How to assign a right curly bracket } as attribute value inside the markup of a lightning component?

In the markup of a lightning component I want to set this string a the value for a label-attribute: "label {1}" Let's take a lightning button as an example. But my question is unspecific and ...
0
votes
1answer
87 views

“&” Character in XML Displaying in AMPscript/Triggered Send

I have a Triggered Send erroring because of the & character being used in values. I have an XML column in one of my Data Extensions. I have some values that contain the & character. For ...
0
votes
1answer
107 views

AMPscript Error with XML

I have a Partner sending some data to a Triggered Email/Data Extension which includes a column for XML data. The trigger is erroring and not allowing the data to get to the Data Extension. Below ...
0
votes
1answer
106 views

XML-RPC support in Apex

We have an existing external system whose API documentation mention that the client system should support XML-RPC specification. To consume the services on this external system, can we directly do a ...
1
vote
0answers
293 views

Error when trying to deploy Lightning Page: “Error: You can't change a Lightning Page's associated template”

Relatively new to the SFDC world and I've come across this issue when trying to deploy Lightning pages to a new sandbox. When deploying my lightning page via workbench I get the following error: ...
1
vote
1answer
67 views

Return null value, if node not present in RSS-feed (ampscript)

I am trying to populate an e-mail with 5 images and text using ampscript and a RSS-feed. The RSS looks like this: <title>title</title> <link>foo.com</link> <enclosure ...
5
votes
1answer
70 views

Where can I find a mapping between a profile setting label and the underlying XML tag for a profile?

I am trying to audit a profile. I have a sheet with the labels in the profile, and I have the profile XML. But there is no simple concordance between something like this: <userPermissions> &...
1
vote
1answer
101 views

Apex Generation Failed - WSDL problem - SOAP

I'm trying to solve this problem with Salesforce. I'm trying to generate apex classes from WSDL (converted from WADL) Parsing works correcly without any errors and warning. But I can't generate the ...
0
votes
1answer
487 views

Apex multi level apex parsing

Below is the XML format needs to be parsed with apex: <?xml version="1.0" encoding="UTF-8"?> <Parents> <SubParent> <SuperParent> <Child> ...
0
votes
1answer
80 views

Get Decimal value from XML response

I know that we can get a string from XMLNode using a string and using String invoiceNumber = root.getChildElement('invoiceNumber', null).getText(); . But I need a decimal number from same XML. can ...
2
votes
1answer
50 views

Why am I not able to parse valid XML straight from the Salesforce Documentation, but JSON works fine?

On this particular page: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_methods.htm About halfway down, you'll see a method which I have included in my class @...
1
vote
0answers
73 views

Response as HTML instead of XML [closed]

How to get response as XML for below URL URL
2
votes
2answers
175 views

How to control the property name of a serialised object using Apex

BACKGROUND I need to generate the below JSON data: JSON { "Type": "ACCPAYCREDIT", "Status": "AUTHORISED", "Contact": { "ContactID": "eaa28f49-6028-4b6e-bb12-d8f6278073fc" }, "Date": ...
-1
votes
1answer
227 views

Parse XML values from a column in the DE?

I'm new with XML in SFMC, and I'm not sure if someone tried to execute the type of scenario, but I'm stuck with understanding the process of parse an XML payload form inside the SMFC. Is it even ...