Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.

0
votes
0answers
20 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
21 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
59 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
28 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
52 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
42 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
24 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
75 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
15 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
147 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
23 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
22 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
43 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
28 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
38 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
17 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
7 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
47 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
52 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
66 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
50 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
125 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
42 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
40 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
76 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
220 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
37 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
31 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
47 views

Response as HTML instead of XML [closed]

How to get response as XML for below URL URL
2
votes
2answers
119 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
140 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 ...
0
votes
0answers
20 views

Tried to read XML stored into DE as text and print but it output is null

Code: %%[ var @xml,@email set @email=email set @xml=xml ]%% Emial:%%=v(@email)=%% XML=%%=v(@xml)=%% DE: email | xml ssingh297@sapient.com | <from&...
1
vote
2answers
501 views

Pulling *full* Profile XML without hitting metadata limit?

Need: I have a profile configured for the 'Salesforce Platform' license type, and need a version of it that works for the 'Salesforce' license (you can't clone a profile across license types using the ...
0
votes
1answer
1k views

Method does not exist or incorrect signature: void format(String) from the type Date

The below code is throwing error Line 2931: Xmlstreamwriter.writeCharacters((Account.Date_From__c==null)?'':Account.Date_From__c.format('MM/dd/yyyy hh:mm a')); Compile Error: Method does not ...
0
votes
1answer
191 views

XML object creation. Is there any documentation?

I'm currently working on adding custom fields to an object. However I can't find any documentation or something like this which would indicate me to what should I do to create for example picklist or ...
2
votes
1answer
43 views

Getting Empty String while xml parsing

I'm parsing XML using apex but I'm not getting text value in case when data in the form of cDATA, I'm getting an empty string. below is my code. in my case, I m getting an empty string when parsing ...
1
vote
1answer
43 views

Empty XML Fallback?

I'm trying to put some code that pulls in product names, but if that field is blank, I'm getting this error: XML parameter cannot be null or an empty string. Function Name: TransformXML Parameter ...
6
votes
1answer
57 views

Is there a XSD for validating metadata XML files?

So in order to run many parallel projects, we are exporting our metadata to XML within version control. As a result we often have to merge changes from multiple projects that affect the same file (a ....
8
votes
1answer
302 views

Pass null to webservice number field?

What does properly formed XML look like when attempting to pass in a null value for a number field? Let's say I have a SOAP endpoint defined as follows: webservice static void save(MyObject__c ...
1
vote
0answers
26 views

Error while upload data from vf page to excel sheet [closed]

I faced following error while uploading data from vf page to excel sheet.Could you please help me how to resolve this issue. {table}, base64 = function(s) { ...
0
votes
1answer
39 views

Issue while push the code from branch to sandbox

I faced an issue 'valueSettings invalid at this Location in type picklist'.Could you please help me out from this issue. Thank you. regards, Suresh
1
vote
1answer
30 views

Is it possible to group XML content by date with AMPscript?

I want to group the XML content with AMPscript by days. To show headlines in this order: 14 May Headline 1 Headline 2 15 May Headline 3 Headline 4 16 May Headline 5 Headline 6 Headline 7 The ...
0
votes
1answer
112 views

Corrupted Salesforce Objects?

Running into an issue I don't think I've ever seen before. I was recently handed a rather old backup(2+ years) of an old Salesforce org. My initial hope was that I could recreate this org, but im ...
0
votes
1answer
107 views

XML file generated by a SOAP API callout

I developed an API callout to a SOAP webservice, the external system return me an error, how can i see XML file generated by a SOAP API callout?
5
votes
1answer
495 views

Profile Field Level Security missing in XML when retrieve profile changes from scratch org

In our DX project we maintain 4 profiles (3 custom and the System Administrator profile). When a scratch org is created I can push the project and everything deploys correctly including the profiles ...
3
votes
0answers
79 views

How to populate XML

I saved an XML template file like the below in a library. Please note the text ApplicationTypeHolder and SubmissionTypeHolder in the file. I modified the original XML file and added those texts there. ...
1
vote
1answer
552 views

How to download a file created by APEX

When user clicks the download button in VF page, the apex code has to generate a xdp file on the fly and should get downloaded in the user machine. The below code creates the attachment. I don't know ...
1
vote
1answer
197 views

Allow Nulls for input parameters in Apex Custom Web Service [closed]

We are enabling few custom web services through Apex to insert data into custom objects. Here we have different data types like Double, Date, Boolean, String. For the inputs of any type except String,...
5
votes
1answer
3k views

Property 'tab' not valid in version 42.0

When trying to push an existing application to a new Spring '18 org, I get the following error: Property 'tab' not valid in version 42.0. The application XML is as follows: <?xml version="1.0" ...
5
votes
1answer
148 views

Named Credential - Merge fields in managed package

I'm working on a managed package where a requirement, out of our hands, is to authenticate to a SOAP API via WS-Security. I was hoping we'd take the strategy of using Named Credentials. This would ...