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

learn more… | top users | synonyms

1
vote
1answer
34 views

Why is Salesforce metadata in XML format by default and not JSON? [on hold]

When I explore the metadata from Salesforce page layouts, workflows or objects via an IDE, the metadata is all in XML format. Why is this? Why would the metadata not be in JSON, for example? Is XML ...
0
votes
0answers
21 views

Removing all buttons on related lists across all page layouts through the metadata

I need to remove all buttons on related lists across all page layouts. I work with the metadata as this is a package with releases, so ultimately, I need the changes reflected in the .layout files. ...
3
votes
0answers
16 views

How to Create Documentation for Workflows using XML?

Question: How can I use an org's XML (retrieved from Eclipse or MavensMate) to "automate" my documentation? In other words, is there a way to "convert" or manipulate the XML for each workflow into a ...
0
votes
0answers
15 views

Bad Request Soap Exacttarget Response

I am trying to create a line in the Data Extension , but returns an error Bad Request. My URL: https://webservice.s6.exacttarget.com/etframework.wsdl My XML: <s:Envelope ...
1
vote
1answer
18 views

What XML support salesforce provides in apex

(i) Is it possible to directly serialize/deserialize sObject record to xml in apex code? (ii) Is it possible to serialize/deserialize apex object to/from xml?
0
votes
2answers
37 views

SOAP API: <faultcode>UNKNOWN_EXCEPTION</faultcode>

I'm trying to authenticate via the SOAP API. I ported my code form a python script that worked perfectly. When I try to implement in JS (Google App Script specifically), I get an "Unknown Server ...
0
votes
0answers
26 views

New XML parsing trigger rejects any code coverage from its test class!

I just wrote this simple XML parser trigger to temporarily help me update a diagnostic object with additional integration data, without having to request the integration to run for all records. I ...
2
votes
1answer
35 views

Possible to return node name from BuildRowSetFromXML() function?

I'm attempting to loop through an XML block and return the node names in addition to the values. Anyone know if that's possible? %%[ var @xml, @lineitems set @xml = ...
0
votes
1answer
68 views

Login to Salesforce from Salesforce using soap and xml request

I am new for integartion.Now i want to Login into Salesforce from Salesforce using soap and xml request,so that if i give username and password of other developeredition and click login button,i can ...
0
votes
0answers
35 views

How to make AutoFitHeight work?

Rendering my visualforce page as an Excel file. I have tried using tag <Row ss:AutoFitHeight="1">. It works if I do not merge the cells, but it does not work during merge. How do I resolve ...
0
votes
0answers
20 views

Kind of Lost --> How Do I reference the XML in my Email Template when Triggering an Email via API? [duplicate]

I'm lost, and need some guidance. I've built a Purchase Confirmation email and when testing I reference a Data Extension and everything works fine. However, when I want to move the data reference to ...
1
vote
1answer
48 views

Apex Generation Failed Unable to find schema for element

I am trying wsdl for first time. When I try to generate from wsdl to my salesforce. I am getting error : Error Apex Generation Failed Unable to find schema for element; ...
1
vote
1answer
60 views

XML and AMPscript — how do I “BuildRowSetFromString” using data from my API post?

I'm trying to build a confirmation email whereupon we create a rowset from a string within the API post. We currently do this without issue when evaluating data from a Data Extension, but I can't ...
2
votes
1answer
55 views

Parse XML fails with null object dereference

I have below code that fails to execute in developer console, I receive the following error: Attempt to de-reference a null object. Can someone please help here? Apex class: public class ...
0
votes
0answers
15 views

Parse XML data shown on Page in a list

I have below page and it's corresponding class that shows xml data on the vf page. VF Page: <apex:page standardcontroller="Marketing_Information_HS__c" extensions="DependantPicklistCon" ...
1
vote
0answers
19 views

Apex DOM get children at nth level

I have got the XML of the following format: <parNode> <parNode2> <parNode3> <parNode4 name="name1"> <flags attrVal="1" /> ...
2
votes
1answer
31 views

Get tab delimited data from the XML node

I am doing a web service call and get XML response back. I need to extract the data within the XML node and create a map out of it. The issue is not the XML but the way the data is present in the ...
1
vote
1answer
64 views

Getting field value dynamically while using describefieldresult

What I have to do is to get all fields of an sObject and converting it into xml runtime. I have all the fields. And I get field name and field label in xml tag. What I want is field value instead of ...
1
vote
1answer
79 views

Removing/Adding XML child nodes through code

Does anyone have any idea on how to remove/add child nodes to an XML through apex code? For example, i have an XML: <?xml version="1.0" encoding="UTF-8"?> <BookTitle> <Book Title="1st ...
2
votes
1answer
98 views

XML to String indentation

I have the following code in my controller public PageReference generateDocument() { XmlStreamWriter writer = new XmlStreamWriter(); ...
1
vote
1answer
27 views

How to set “MailingAddress” (address type) field on contact through Bulk API?

I'm having problem setting the "MailingAddress" field on Contact sObject. I'm trying with the following: <?xml version="1.0" encoding="UTF-8"?> <sObjects ...
2
votes
1answer
130 views

Error converting HttpResponse to Dom.Document

I am calling the Tooling API from Apex in order to find out if a Custom Field has been created. Here is my code: HttpRequest req = new HttpRequest(); req.setHeader('Authorization', ...
3
votes
1answer
113 views

For a new class should i upload meta.xml to github?

I know this is a dumb question but I never faced this situation. When I write a new class and need to push the class to svn/git do I need to upload the -meta.xml file also? or just the .cls file?
0
votes
0answers
71 views

Salesforce package.xml

I am creating a XML file. How can we add related lists, tabs, sub-tabs in a XML file? Can anyone give me an idea?
2
votes
2answers
358 views

<soap:body> vs <env:body> Request XML is not generating properly: SOAP integration

I am trying to integrate AddressDoctor with my Salesforce App. Below is the service I am using. AddressDoctor Webservice Validator and description The service needs the request to be in format of ...
0
votes
2answers
96 views

How to read xml file from local drive on click of button without using browse option?

I want to get the string value of an xml file which is stored in a predefined location in my local system(D:\Product Files). The problem is I don't want to use the browse option & want to read ...
0
votes
0answers
236 views

XML Multiple Excel WorkSheets Enhanced Functionality

The code below has been modified from this solution: How to generate excel files with the multiple sheets in VisualForce which does work but I was looking to add extra functionality such as freezing ...
0
votes
1answer
163 views

Generate Tree View from XML in VF Page

Below is my XML:- <Category> <ID>1</ID> <Name>Root</Name> <Type>NA</Type> <Children> <Category> <ID>3</ID> ...
0
votes
0answers
32 views

Adding “DOCType” while generating XML using DOM

I am working on one integration requirement which uses XML over HTTP. Here I am using DOM writer to generate the XML. Everything works fine except I am not able to add DOCType statement within it. ...
0
votes
0answers
29 views

Dynamic XML generate

I may code I want to create a XML which I need no to hardcode the nodes and need to be dynamic that is. If new node get added the user can add it. For that I have a custom setting where I am saving my ...
0
votes
0answers
146 views

XML parsing in APEX and display the VF

Please explain me how to do xml parsing into apex to show this XML data into visualforce page and also insert this XML Data into custom object. <?xml version="1.0" encoding="UTF-8"?> ...
1
vote
0answers
43 views

NA4 Is Splitting - Updating URLs On Buttons And Other Admin-Level Places (not Apex)

Original question related to this: Searching "everything" in Salesforce So there was an answer involving an "ant script", which is no use to me. I am comfortable enough (I thought) ...
0
votes
0answers
51 views

Parse XML with attributes APEX Salesforce

I have this string: '<FormSubmit><Field name="FirstName">test1</Field><Field name="Email">test2</Field></FormSubmit>' How can I parse that to an xml object so I ...
0
votes
1answer
70 views

Parse XML APEX Salesforce

I have this string: <FormSubmit><Field name="Patient.Email">test</Field></FormSubmit> How can I parse that to an xml object so I can get the value from the patient.email ...
0
votes
1answer
80 views

How to pull child content using AMPscript from XML variable

We are using a ET data extension where one of the fields stores an XML file from our external API. We have to extract the values and parse them to assign for each parent/child contained within the ...
1
vote
1answer
226 views

Deploying Business processes with ANT

I have tried to deploy business processes with ant. I seem to have the syntax wrong. I am seeing Entity type: 'businessProcesses' is unknown <?xml version="1.0" encoding="UTF-8"?> <Package ...
0
votes
1answer
43 views

Can't create a Task for a Contact through Bulk API

I noticed that I can create a Task under a Contact manually, through Salesforce UI, but I can't create it through the Bulk API. Can anyone explain me why and if possible, how to overcome this? I ...
0
votes
0answers
311 views

How to generate an XML namespace prefix manually

I have created a class by using wsdl 2 apex and consuming a wsdl file provided by BizTalk. Previously I have consumed a similar .Net web services and have never ran into any issues. Now when the ...
0
votes
1answer
81 views

Outbound messages and simplexml_load_string (PHP) string comparison

I am trying to use an IF statement in PHP to set a variable based on the value of an object returned by an outbound message being processed with simplexml_load_string(). It seems that comparing the ...
0
votes
0answers
58 views

i need to split a 'export to excel' file in to multiple sheets and need to put style and logo

I am not able to modify it. please help to meet my requirement. Thank you in advance. How to generate excel files with the multiple sheets in VisualForce I saw this code. but unable to modify this ...
0
votes
1answer
37 views

When exactly would a Calloutexception occurs in Salesforce?

I am trying to send a XML from Salesforce to an external system and callout exception occurs time and again . It is occurring sometime but working fine most of the times . What are the cases when a ...
1
vote
1answer
43 views

Eclipse IDE changing class status to 'deleted' does not stick

I am trying to delete a class in production.I have deleted 2 classes successfully by changing the status of the corresponding metadata.xml to deleted.But in one class while I am trying to change the ...
0
votes
1answer
220 views

Using DOM to parse API Response. How to get subchild elements?

I know there are some questions on this topic already. I have tried to implement them myself, but I've been stuck and need to try and get some help. I am a new graduate on my first project at a new ...
0
votes
1answer
1k views

XML Parsing using apex in salesforce

I want to do XML Parsing into apex. Please help me to do parsing in apex. see below XML Data. Please explain me how to do xml parsing into apex to show this XML data into visualforce page and also ...
0
votes
1answer
122 views

XML parsing attributes using XMLstreamreader

I am trying to parse through an XML which looks something like This is a xml response of an image which i need to render in my page,can somebody help me out to parse this through XmlStreamReader . ...
3
votes
0answers
121 views

Any way to validate XML against XSD file in Apex?

Im currently using an apex class with Dom.Document to generate an XML file which then gets sent off to an external endpoint. I would like to be able to validate the XML file against an existing XSD ...
2
votes
0answers
194 views

Error in request then using WSDL2APEX

Im facing an issue when I try to import my WSDL into Salesforce and generate APEX code from this one. When I add a targetnamespace to my second schema in the following file, which is required in ...
0
votes
1answer
67 views

Unable to create SOAP request for inserting child object

I have a scenario where i need to perform create opertion.I have imported the Enterprise salesforce wsdl and trying to perform create operation on a junction object. I have a junction object ...
0
votes
0answers
14 views

Convert <sf:> tags to another formats

I am new to SF so I don't know much more about it, I am getting a record from SF api for a call details of a number so it returning me data in tags like I am unable to get data from these tags, ...
1
vote
1answer
543 views

How to parse response with XMLStreamReader or DOM?

Hi Team I am getting the below response from a webservice call <response> <status>sucecss</status> <Message>xyz..........</Message> </response> I have trying to ...