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

learn more… | top users | synonyms

1
vote
0answers
38 views

Issue while exporting data in Excel format from Visualforce

There is a VF Page where we have Export button There is no issue when exporting single record excel opens but while exporting multiple records excel is getting corrupted . Please Help!!! This Class ...
3
votes
2answers
53 views

Map one xml to List of SObject?

I am quite new in Xml parsing. i am having a XMl <company> <account> <id>8c98a6be</id> <label>4356</label> <reference>4356</reference> ...
1
vote
0answers
32 views

Is there any way to get the ID of a Process Builder to apex class?

I want to get the ID's of all the Process Builder (that I created) into an Apex Class. Is there any way to do this by means of Metadata API (or) Is there any API directly to retrieve them?
0
votes
0answers
14 views

XML - BuildRowSetFromXML() - Can we retrieve a value within a <dc:date> or other “<dc:”… tag?

I'm Interested in working with the value in 'dc:date' within this XML. I've tried referencing it with this but have not had much luck: BuildRowsetFromXML(@xml,"//item/dc:date",1) Here is the XML ...
0
votes
1answer
66 views

converting xml response using Document class and xmlNode

I have to actually generate the following xml into a dom object, but failing to do so. This is my actual XML response : <Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"> ...
0
votes
0answers
76 views

How we can send http request with XML data and binary attachment?

Currently while doing integraion with one of client server. We need to send attachment. Sever accepts attachment in binary form along with the XML data(file attribute). i.e. The XML Payload have two ...
3
votes
1answer
35 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
30 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
35 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
52 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
44 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
60 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
29 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
17 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
15 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
87 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
91 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
46 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
386 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
247 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
20 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
34 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
60 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
180 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
44 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
20 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
58 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
91 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
425 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
75 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
14 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
207 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
80 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
35 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
63 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
75 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
300 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
325 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
36 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
83 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
123 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
103 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
330 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
130 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
106 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
35 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
56 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
45 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
229 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 ...