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

learn more… | top users | synonyms

3
votes
1answer
27 views

PageReference: Redirect to built page

Can I build some XML or JSON in Apex and then redirect to it from a method that returns a PageReference object? public PageReference saveText() { PageReference p = new ...
0
votes
2answers
23 views

Retrieve value from XML response using SSJS in a SSJS Activity

Use a SSJS Activity I am getting a response in XML from an API call. I need to parse the XML for a specific value. Is this possible in a SSJS Activity?
0
votes
1answer
21 views

Null pointer exception when parsing XML

DOM.Document xmlDOC = new DOM.Document(); xmlDOC.load(xmlstring); DOM.XMLNode rootElement = xmlDOC.getRootElement(); for(DOM.XMLNode xmlnodeobj:xmlDOC.getRootElement().getChildElements()){ ...
0
votes
0answers
29 views

Failed to parse XML

When I tried to parse <!CDATA[]>in XML I am getting the below error Failed to parse XML due to: entity reference names can not start with character ' ' (position: TEXT seen ...To expand and ...
3
votes
2answers
33 views

How to copy one XML Dom onto another?

I have a need to merge one XML document into another. I'm hoping for a more direct way than the one I've come up with. Given two documents where I want to put B inside A, I can convert B to a ...
1
vote
1answer
36 views

Best Practices for generating large XML files

I currently have some requirements for an integration that I am doing and was curious if anyone had some feedback on the best initial approach. I am currently working on building out the structure ...
1
vote
1answer
26 views

I need to pass along with the dollar amount AND the Confirmation # for a transaction to ET Tracking

Is it possible to attach a confirmation number from My Website once a person transacts to ExactTarget tracking so that I'm also able to see it in the feed that comes through with the dollar amounts? ...
0
votes
0answers
16 views

Two Object with Same Schema - Effects of Actions on each other

I am asking this question for the curiosity ? I came across following Interview Question asked to someone - Q: "I have two identical objects with same schema. If I want any action performed on any ...
1
vote
1answer
13 views

Strange result after readMetadata() call

I'm noticing a strange behaviour in the Metadata API's readMetadata() method which affects my custom implementation. Please, find below screen shots describing the issue. I hope somebody can help me ...
2
votes
1answer
58 views

Implementing sObject.get(String fieldname) when using the Partner API

Recently I have been trying my hand at using the SOAP API (C#) to automate a data-migration between two SFDC instances. Because the destination instance is still being built, I am trying to use the ...
0
votes
1answer
36 views

Error parsing xml with special character

We have created an API We have programmed a client within sfdc using visualforce and apex controller. In order to parse the resp we are using xmlStreamReader utility. But getting below exception ...
1
vote
0answers
33 views

Falied to create new custom object using Force.com IDE

I have one force.com project with 2 new custom object to be created in the server. xmls for these objects like : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <CustomObject ...
2
votes
2answers
183 views

How to receive full XML response with CDATA embedded XML in apex callout to SOAP service

I'm currently working on a project, which requires flight status information from OAG's On-Demand Flight Status information service (WSDL). I can test the service with SOAPui. Request: ...
3
votes
3answers
169 views

Deploying destructiveChanges.xml - Error parsing package.xml

Wondering if someone can help me with this. I'm trying to delete some components with the migration tool (Ant). However when I try to deploy, I'm getting the following error: *********** ...
0
votes
0answers
16 views

I am Not getting the exact XmlOutput in the format i needed

xmlStreamWriter writer = new XmlStreamWriter(); writer.writeStartDocument('Utf-8','1.0'); // writer.WriteStartElement('null','response','null'); ...
1
vote
0answers
28 views

How to correct RSS XML file using AmpScript? Required for BuildRowsetFromXML to work

I'm trying to parse RSS feed to include it in the content of the email, I got the base script working, but I ran into trouble with some items descriptions that cause the BuildRowsetFromXML function to ...
0
votes
0answers
38 views

WebServiceCallout.Invoke() Method gives Issues in Namespace

Can Anyone Help me out in following case : For multiple namespaces callout feature is expecting second element to be in same name space as highest level element. In my wsdl, I have three namespaces ...
9
votes
1answer
122 views

What is the proper way to build an XML text node from a string that contains unsafe entities?

I'm having a problem with the Dom class and its automatic escaping of strings added via Dom.XmlNode.addTextNode(text) and I'm not sure if I am doing it wrong and this is expected behavior or if this ...
1
vote
2answers
36 views

What is the best way to create XML from a custom object and use that xml to create records of another custom object?

I have two custom objects . How to transfer the records from one custom object to another using xml ?
0
votes
0answers
17 views

Get XML from external system : Salesforce -Oracle

I have a custom object?(card) in salesforce with field (service order) . I would like to get information from oracle db that match this service order. What approach would be better? What about ...
0
votes
1answer
35 views

how to parse xml from apex- parsing results null

Hi I am trying to parse below xml <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" ...
0
votes
0answers
67 views

How to pass value to webservice class from vf page and return data to vf page

I have consumed one WSDL. When i passing the values(country=india) to that class in developer console, I am able to get the values in XML format. This indicates webservice is returning correct ...
3
votes
4answers
206 views

Rest API GET and POST

I have a general question regarding REST API (either JSON or XML) that I am trying to figure out before I go knee deep. Let's say I save a lead and send a webservices call to an external system that ...
1
vote
1answer
58 views

Looping through XML with AMPScript

I have a field that is receiving a list of values formatted in XML. I have a loop, however, the loop is only displaying one set of products. Below is the code I am using. <?xml version="1.0" ...
0
votes
0answers
13 views

Xml live data not pulling through from content area in exact target

I call the content like this: Set @xml = ContentAreaByName("My Contents\Name") In content area: %%before; httpget; 1 "http://url"%% The url works because I have tested it and it returns the ...
1
vote
1answer
124 views

How to form SOAP XML request to update Salesforce dara

Is anyone has some idea how can i use DOM or XmlStreamWriter to generate SOAP XML request for Salesforce? Can we use these classes to generate SOAP XML request or not? I tried following code but ...
1
vote
1answer
62 views

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

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
29 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
1answer
46 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
51 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 ...
2
votes
1answer
192 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
230 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
33 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 ...
3
votes
1answer
77 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
108 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
73 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
21 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
237 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
104 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
93 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
31 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
45 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
43 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
174 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
223 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
233 views

XML to String indentation

I have the following code in my controller public PageReference generateDocument() { XmlStreamWriter writer = new XmlStreamWriter(); ...
1
vote
1answer
71 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
345 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
132 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
136 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?