Questions tagged [xml]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
21 views

SFMC XML data extract - input file name wildcards

We are using an automation that is triggered by a file drop on the FTP. In this automation there is a Convert XML Data Extract Activity to convert the dropped XML file to a CSV file which can be ...
0
votes
0answers
28 views

How to convert XML to Change Set

I usually get XML package to Deploy via ANT but sometimes ANT doesn't work appropriately. In emergencies, I don't get time to fix the issue. So i wonder if I could get a way to convert XML to Change ...
1
vote
1answer
34 views

Process AMPscript SOAP API response

I've built an XML SOAP API request which retrieves the names of all Automations within our BU. It looks like this: SET @endpoint = "https://[endpoint key -censored].soap.marketingcloudapis.com/...
0
votes
1answer
32 views

XML extract whole element block as string [closed]

Is there a way in Salesforce (using Streams / DOM) to extract the whole XML block as a string. Use Case- We have a callout response in XML, and want to store a portion of the response as a file on ...
2
votes
1answer
223 views

Metadata Equivalent of the System Permission “Connect Org to Customer 360 Data Manager”

I'm currently experiencing the error "You may not modify the permission Connect Org to Customer 360 Data Manager while editing a Standard Profile". I've checked in the destination org that this is ...
1
vote
1answer
40 views

Error when loading an XML String into Dom.Document.load()

I'm trying to construct an XML with attributes from and object (in this case Account). public string createXmlFromAccount(Account acc){ String sResOutPut = ''; Contact[] theContacts = [SELECT id ...
3
votes
0answers
28 views

What causes leftover XML to exist in files when a component is deleted via the UI?

I've had interesting situation come up today when doing a metadata validation on a very large package. An error was occurring on a Page Layout where it was expecting that a QuickAction should also be ...
1
vote
0answers
97 views

Lightning App - My Utility bar doesn't show

This topic continues this one from yesterday, the context remains : While migrating an org from Classic to Lightning, I'm trying to deploy and add a Utility Bar ; I'm using Workbenchn, following this ...
1
vote
1answer
51 views

Decoding pipe symbol in apex

In a response of a callout, I am getting a XML. Sometimes, values contains encoded value of Pipe symbol as given below <Name>Test &#124; Shift Happens: Test data </Name> I am ...
0
votes
0answers
30 views

Applying XML Namespaces without Prefixes in XML Doc

I am still relatively new to XML in Apex and I am trying to reproduce the following XML: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/...
1
vote
1answer
68 views

Parsing XML string with DOM.Document removes attributes?

Hello fellow Salesforce devs! I hope this question haven't been asked before, but i havent found any articles explaining the same issue so here it goes. Im trying to parse an XML string that we get ...
1
vote
2answers
241 views

Inserting HTML Markup in Custom Label Value

I'm using Custom Labels for a specific message and I'd like to insert a link into that message, e.g., <a href="http://my.domain.com">Go here to login</a>. I tried this using entity ...
1
vote
1answer
76 views

Set HttpWebRequest to Accept = application/xml

If I am querying using the following, then Function CallSFDCAPI works. services/data/v41.0/query?q=Select+Id+FROM+Vendor__c" I am required get the response in XML format. But how can i get the ...
0
votes
1answer
186 views

Dom Document generation by APEX code

I am writing APEX to generate DOM document. I want to generate <TOTALVOLUME units="m3">1.0</TOTALVOLUME>. Parent node for TOTALVOLUME is consignmentBody and I am trying Below code to ...
0
votes
0answers
17 views

how to specify DTD while creating XML using Dom.Document

I have created a XML using Dom.Document class but I do not know how to specify DTD. I want to add the DTD inside CD DATA after the start XML tag Here is the DTD: <!DOCTYPE Request [ <!ENTITY % ...
0
votes
1answer
24 views

Encoding windows-1255

I have created an apex class which created an xml using: xmlW.writeStartDocument('windows-1255','1.0'); but I get the following error: Underlying stream encoding 'UTF-8' and input parameter for ...
0
votes
1answer
46 views

How can I use BuildRowsetFromXML to pull XML content from a Data Extension? [closed]

I need to be able to pull this data out and display it in the email content. My understanding is that I need to use BuildRowsetFromXML to parse the XML. <Details> <Detail> ...
0
votes
0answers
43 views

What is the name for the following to be used in XML. Pushing the following using ANT migration tool

I am using ANT to deploy the Profiles to next sandbox but I am not able to find the name to be used for following in the xml file. The following are available in Profile ->System Permissions Access ...
0
votes
1answer
374 views

get the field layout metadata from record page

I wanna get fields from a record page. So tried to use metadata query in apex, but it did not look working well. Below is the code that I tried. What should I write in the code to get fields metadata ...
0
votes
0answers
14 views

XML Incorrect Format

A costumer has implemented a button which through VF page makes a call to consume a web service, sending information of an opportunity, the related account and the contacts information. Typically, it ...
0
votes
1answer
123 views

How to display checkbox in custom custom visualforce page for CPQ quote?

I am trying to generate a quote document using custom visualforce page for steelbrick CPQ. I need to display a checkbox in a column (it does not have to be associated with any field). I tried using , ...
0
votes
1answer
42 views

BuildRowsetFromXml is returning empty nodes

I am trying to get the first name from the order confirmation but the field AMPscript returns is empty. This is my code: %%[ var @firstName var @lastName var @email var @products var @subscriberKey ...
0
votes
2answers
64 views

How to add text identifier using addChildElement method in apex XML request formation

How to do i construct the xml request formation in apex,required output format is pasted here. <ns:Email EmailType="03"><ns:EmailAddress>temp@mail.com</ns:EmailAddress> </ns:...
1
vote
1answer
146 views

Bulk API V1 Query - ResultId missing when running concurrent Bulk Jobs

When querying for the result ids of a batch on a closed Bulk (v1) query job, sometimes the result id is not returned; instead the full returned xml is: <result-list xmlns="http://www.force.com/...
0
votes
0answers
116 views

Populate XML with XSD Schema

I was provided an XML schema that (I think) I should be able to utilize to build out the XML string that I need to send to a web service. The two documented items in the Apex Developer Guide talk ...
4
votes
0answers
36 views

Extending metadata xml without overwriting in org

I'm creating a 2GP managed packaged that adds a custom tab to the Service Console. While developing in a scratch org, the metadata pulled into my project includes a customised version of the Service ...
2
votes
0answers
52 views

Outbound messaging, one org to another, can I reference in Apex, the class referred to by the Notifications element in the Outbound Messaging WSDL

I am trying to receive an outbound message sent from a workflow in one Salesforce org, using a SOAP webservice method in another Salesforce org. This would be a nice-to-have, if I can't get this ...
1
vote
0answers
22 views

Uploading Self Signed Cert Through MetaData SOAP

I am trying to understand the right way to format a SOAP POST in order to upload a self-signed certificate into a scratch org. Based on here: https://developer.salesforce.com/docs/atlas.en-us....
1
vote
0answers
26 views

How to reset a label in a CustomObjectTranslation back to its original value using the Ant Migration Tool?

I use a Case object with a custom field having an API Name of ExampleField__c and a Label of Example Field. Lets say I have a translation file for a Case object and there's a section for the Example ...
2
votes
1answer
43 views

Can we analyze PMML models in Salesforce?

Is there any piece of Apex code or Managed Package that is able to read and parse PMML models, and then evaluate them on a given set of data? I cannot find anything directly, and hoped some of you ...
0
votes
0answers
225 views

Setting page orientation when VF is exported to excel

I am trying to format excel file that is exported for VisualForce page. I am able to export the data in a table with cell width that I need. For printing, I want to set the page orientation:Landscape ...
0
votes
0answers
197 views

Adding Picklist values in custom Picklist using xml

currently im trying to add values to a custom picklist we are using. Currently, after multiple days of trying, im able to create a new custom picklist like this: url2 = "https://telinform--TK20170328....
2
votes
1answer
275 views

System.XmlException: start tag unexpected character =

This is the full error: System.XmlException: start tag unexpected character = (position: END_TAG seen ...<source> Bicycling</source><media:contenturl=... @1:688) So from my ...
0
votes
0answers
96 views

Mock HTTP Call Out In Test to Return XML

I am very new to HTTP Callouts and now I am in the testing phase. My HTTP Callout returns XML This is the link. I input a company already, soulcycle, in case anybody wanted to see what was being ...
1
vote
2answers
150 views

Row Count error

I wrote a code that reads that xml data and extracts all the values, separate the First Name from the Last Name and updates the DE, but I am still getting an error: "Invalid index (parameter 2) ...
1
vote
0answers
54 views

Update DE using data from BuildRowsetFromXml

I have an xml export that I need to use in order to send email to the users from the xml, to separate the ContactName in to FirstName and LastNameand and also to update a DE. The content of the xml is ...
0
votes
1answer
38 views

Parse responsexml in salesforce

I am integrating salesforce with an external SAP Application and I am getting the following response XML <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:...
4
votes
1answer
355 views

How to use BuildRowSetFromXML with an “attribute-id” in SFMC?

I'm having trouble referencing a specific item in our order XML feed. I want to reference a specific "attribute-id", not the entire rowset. XML reference: <custom-attributes> <...
1
vote
1answer
23 views

Can I change the accepted Root element of ApexRest?

Possibly a bad question, I am exposing a simple ApexRest Class to accept post's from an external source. example bellow: @RestResource(urlMapping='/user_defined_type_example/*') global with sharing ...
4
votes
2answers
298 views

Using AMPScript to pull in RSS feed content in SFMC

I am attempting to pull in content from a blog feed using AMPscript but am experiencing some issues in attempt to do so. It is probably worth noting that all I need to pull in is the title, ...
2
votes
0answers
58 views

Creating the signature value of a digital signature “manually”?

I need to sign some xml. The issue is that I cannot use the native Salesforce Crypto.signxml() method because I need to sign the soap:body and place the signature in the soap:header element, and this ...
1
vote
1answer
218 views

How to build an integration with rest API in apex using XML

Situation I need to build a connection from Salesforce to "post" to a rest api. The recipient has given me XDS schema files of the data to be sent over. My Current Plan Build a sObject to be the ...
1
vote
0answers
65 views

GET XML via AMPScript

We are currently in the process of trying to get XML data in our marketing cloud emails. One of the solutions i am working on is trying to get the XML via amp script then populate the information via ...
1
vote
1answer
77 views

How can we convert XML to Native Objects when the XML includes “Date” and “Time” as elements?

I'm currently trying to determine whether we can replace our company's convoluted XML processing solution (based on XPath) with one based on @SfdcFox's XmlToJson solution. Unfortunately, the XML we ...
2
votes
2answers
89 views

Salesforce: Issues in removing the entire child node in an xml

I have an xml , and I tried to remove an entire child nodes using the xml DOM process. Even i use the remove child method , the result says true but if i print the dom it still holds that child ...
0
votes
1answer
75 views

Visualforce Page Permission for all Profiles

I want to provide Visualforce Page permission to all profiles (Custom and Standard) in one single shot. I have 20 Profiles in the list and it will be tough to do it manually.
4
votes
1answer
77 views

How to assign a right curly bracket } as attribute value inside the markup of a lightning component?

In the markup of a lightning component I want to set this string a the value for a label-attribute: "label {1}" Let's take a lightning button as an example. But my question is unspecific and ...
0
votes
1answer
113 views

“&” Character in XML Displaying in AMPscript/Triggered Send

I have a Triggered Send erroring because of the & character being used in values. I have an XML column in one of my Data Extensions. I have some values that contain the & character. For ...
0
votes
1answer
134 views

AMPscript Error with XML

I have a Partner sending some data to a Triggered Email/Data Extension which includes a column for XML data. The trigger is erroring and not allowing the data to get to the Data Extension. Below ...
0
votes
1answer
148 views

XML-RPC support in Apex

We have an existing external system whose API documentation mention that the client system should support XML-RPC specification. To consume the services on this external system, can we directly do a ...

1
2 3 4 5 6