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

learn more… | top users | synonyms

2
votes
0answers
42 views

Metadata API Call: Web service callout failed

I am creating sample example from http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/ I am getting following exception on Click of the button Whats wrong? Web ...
1
vote
1answer
45 views

OPEN CTI XML definition file What is it and how it works?

I'm working now with open CTI and my question is related to the CTI XML definition file. I would like to know how it works, I saw it has many sections and many items, but it affects my code, what can ...
1
vote
1answer
332 views

Calling an external REST service in apex

I need to make a call to an external xml-rpc service in apex. I have written this little apex code: public static void callPBA() { HttpRequest req = new HttpRequest(); HttpResponse res = new ...
1
vote
0answers
107 views

REST API Request using text/xml returns UNSUPPORTED_MEDIA_TYPE

The documentation tells us that XML, however un-hip, can be used as a request format. The reality seems to be only HTTP 415 errors with UNSUPPORTED_MEDIA_TYPE. Class: ...
4
votes
1answer
73 views

Calling custom apex as REST with XML results

So you want to call your Apex classes from outside salesforce via RESTful HTTP and need XML resurned even though it's uncool. The official documentation suggests it's supported by simply adding the ...
4
votes
1answer
67 views

Wrong Tags Parsing XML from API

I am trying to parse a file from our meeting server with XML data. The data is structured like this: <results> <status code="ok"/> <principal-list> <principal ...
2
votes
1answer
81 views

UPDATE on CustomField using the SOAP Tooling API

I'm using the SOAP Tooling API to try and update a CustomField (posting to /services/Soap/T/29.0) The method signature is SaveResult[] update(sObject[] sObjects) - and CustomField extends sObject so ...
1
vote
1answer
95 views

XMLStreamWriter: Cannot User getText on START_ELEMENT

I have a requirement to get the text of the Start Element of XML. I'm using the XMLStreamWriter class. If My XML is as follows <errorReturned errorCode="100">This is a ...
2
votes
1answer
706 views

Salesforce Callout Exception

I created a Salesforce client using "Generate class from WSDL" feature. When i try to call the web service, throws the following error: "System.CalloutException: Web service callout failed: ...
8
votes
1answer
458 views

How to mass populate State & Country picklist values

I have played with the State & Country picklist value UI for adding them, and it works OK for small amounts, but it is not meant for batches. I have 760 additional states I need to add for various ...
4
votes
2answers
537 views

Difficulty Parsing XML

I am having difficulty parsing the XML returned from a webservice callout. In the past, I've always been able to use XMLstreamreader, but it does not seem to work with formatting of the XML from this ...
1
vote
1answer
185 views

Create a custom Apex class or custom object at run time

We have a need where we need to parse an xml schema and dynamically create a custom object with fields at run time. Have any of you guys done this and if so can you share code snippets? If the custom ...
6
votes
1answer
145 views

Is there a way to get the SOQL behind a report?

I have a (reasonably) Year on Year analysis summary report that I use in Salesforce and I would like to create this report in SOQL or at least create the SOQL equivelant to return the same results, ...
2
votes
1answer
309 views

Unexpected Error while trying to perform simple Upsert

When sending the following XML and CSV, I get this error on the Bulk Data Load Job Detail screen: Got an unexpected error while processing BULK-API. Contact support with error ID: ...
0
votes
1answer
165 views

How to get field Name from Map

I am trying to map CSV file with Salesforce Account field using XML. I am getting Account field from Map. But when i use the name i am getting error. Error: Compile Error: Method does not exist or ...
0
votes
1answer
336 views

How to get all the child text from a xml file

I need to get all the values from child node <fields> <field1>Name</field1> <csv1>field1</csv1> </fields> But i ...
0
votes
0answers
146 views

How to write into an existing document

i have uploaded a doc and trying to access it from my Apex code. But now i need to insert some information into my doc. How can i do this i tried it by using my code public class readXmldemo{ ...
0
votes
0answers
649 views

Writing into XML file from Apex code

I have created a xml file and uploaded into document. I am reading the xml file from my apex code. I am able to add more nodes into the xml file by using addressNode.addChildElement and also tried ...
1
vote
1answer
242 views

PHP Soap API returning XML string

I have successfully connected to SalesForce using the Soap API and the Force.com toolkit for php. When returning records, however, I am getting part xml responses: SELECT Id, Name, ...
1
vote
1answer
177 views

Using Apostrophes in Apex

I am sending an Http request who's body contains XML payload. Data sent over can have apostrophes which causes my palyload to error out. XML payload looks something like ...
2
votes
2answers
581 views

Issues using XmlStreamReader

I have an XML response, using XmlStreamReader I am getting data. The data is encapsulated between <Requisition> </Requisition>. The response XML contains multiple 'Requisition' tag set. ...
3
votes
1answer
2k views

XML parsing using XMLstreamreader

I am trying to parse through an XML which looks something like <e:UDFs> <e:UDF name="Comments_20for_20Approvers">Cloning req 379023 - bypassing ...
3
votes
1answer
119 views

Where to edit XML for “Lookup Filter” in Force.com

I created custom lookup fields for my custom object in web UI. Some of these lookup fields have lookup field filters. I need to create the same filter for many other similar lookup fields. I ...
2
votes
2answers
2k views

apex program to create and download a file

So I'm trying to find a way to download a report from salesforce programmatically, to a local machine. so, I've found the XMLStreamWriter class, and am writing the XML just fine... I'm just wondering ...
0
votes
0answers
141 views

Need to display a helpText beside a tab

Extension to my Previous Question which is placed here "Hyperlink in help text which comes from XML" My requirement was changed Now and it was a bit tough one.... :( My xml is something like this ...
2
votes
3answers
300 views

Is there an xml equivalent for the JSON formatting methods in apex?

Is there any method to take an xml string or a DOM.document object and get a nicely formatted string of the xml (like serializepretty does for JSON)? I'm fairly certain the answer is no but just ...