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

learn more… | top users | synonyms

0
votes
1answer
30 views

How to get the list of values from the Soap Response?

I am hitting a web service method. This Web service method returns values in the XML format. When I am trying to get this element. I am getting a single ElementName with the following code in debug ...
3
votes
1answer
20 views

Salesforce Apex SOAP Request to Google AdWords API

I am attempting to make a call from an Apex class that I created to the Google AdWords API via SOAP Request. I am new to SOAP so I am not sure exactly how to make the call. I have generated 2 classes ...
3
votes
1answer
16 views

Is it safe to trim my permission set files?

We recently added some permission sets to our managed package. We created them by point-and-click in our org and downloaded them via the Force.com migration tool. We found that the files were huge ...
0
votes
1answer
26 views

Updating custom settings fields from XML

Is it possible with Mavensmate to update fields from the XML on a custom settings object? I updated the .object file and in Mavensmate hit deploy to server. It seems that Salesforce did not to apply ...
0
votes
2answers
41 views

How can I create this JSON structure using inner classes?

I am trying to create a JSON payload in a VF controller to send to middleware. I tried to use JSONGenerator.writeStringField(String, String) but kept getting error: "Can not write a field name, ...
1
vote
0answers
22 views

XML and XSL using transformXML(xml, xsl)

Im trying to make html content for an triggered sent email. The client can only delivery the xml in one format, and I cant get my XSL to work, when the xml have prefixes. The Salesforce documentation ...
2
votes
1answer
33 views

How to Create Records from XML Data?

This is the webservice response I am Getting in XML Format. <?xml version="1.0"?> <ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01"> <ListOrdersResult> ...
1
vote
0answers
89 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
61 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
39 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
15 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
126 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
139 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
45 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 PageReference(...
0
votes
2answers
46 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
45 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()){ For(...
0
votes
0answers
89 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
50 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 string,...
1
vote
1answer
117 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
31 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
18 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
18 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
128 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
140 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 ...
2
votes
0answers
58 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 xmlns="...
2
votes
2answers
528 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: <soapenv:...
3
votes
3answers
311 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
21 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'); List<AVTRRT__Config__c> ...
1
vote
0answers
40 views

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

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
74 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
241 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
48 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
24 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
80 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/" xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
103 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 values(...
3
votes
4answers
720 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
91 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
15 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
274 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
98 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
41 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
2answers
79 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
83 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 xmlns:s="http://www.w3....
2
votes
1answer
391 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
401 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 Error"...
0
votes
0answers
38 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
91 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 = "<order_items><item&...
0
votes
1answer
135 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
121 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 this?...
0
votes
0answers
22 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 ...