Generated: 2025-01-27 15:30:00 UTC
Analysis Tool: WSDL Diff Analyzer v2.0
Files Compared: metadata-64.wsdl vs metadata-65.wsdl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SvgChartGeneratorFlowAction { | |
public class ChartInput { | |
@InvocableVariable(label='Bar Labels (e.g. Jan, Feb, Mar)' required=true) | |
public List<String> labels; | |
@InvocableVariable(label='Bar Values (e.g. 10, 20, 15)' required=true) | |
public List<Integer> values; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class CMTService { | |
public List<CMTWrapper> getCMTs() { | |
List<CMTWrapper> cmtWrappers = new List<CMTWrapper>(); | |
List<CMT__mdt> cmts = [SELECT Example_Field_1__c, Example_Field_2_c FROM CMT__mdt]; | |
for(CMT__mdt c : cmts) { | |
CMTWrapper cmtWrapper = new CMTWrapper(c.Example_Field_1__c, c.Example_Field_2__c); | |
cmtWrappers.add(cmtWrapper); | |
} | |
return cmtWrappers; |
Requirement
Perform XSLT transform on XML returned from the Salesforce Metadata API retrieve operation (also requires unzip). Based on the code in https://github.com/financialforcedev/apex-mdapi
Solution
Adapting the metadataretrieve.page in the above repository. The original page passed the client side unzipped files from the MD retrieve zip file back to the server to add to the view state for display. As the XSLT is done client side, the above page is much simpler, the unzipped files are just handled client side and added dynamically to the page DOM.
Implementaiton Notes
- XSLT is loaded from a static resource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class EinsteinSentimentAction { | |
public class Request { | |
@InvocableVariable | |
public String recordId; | |
@InvocableVariable | |
public String document; | |
@InvocableVariable | |
public String modelId; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName"> | |
<aura:attribute name="record" type="Object" /> | |
<aura:attribute name="componentRecord" type="Object" /> | |
<aura:attribute name="recordError" type="String" /> | |
<force:recordData | |
aura:id="recordLoader" | |
recordId="{!v.recordId}" | |
layoutType="FULL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
CustomMetadata.Operations | |
.callback( | |
// Platform event for deploy status | |
MetadataDeployment__e.getSObjectType(), | |
MetadataDeployment__e.DeploymentId__c, | |
MetadataDeployment__e.Result__c) | |
.enqueueUpsertRecords( | |
// Metadata record type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class EinsteinAction { | |
public class Prediction { | |
@InvocableVariable | |
public String label; | |
@InvocableVariable | |
public Double probability; | |
} | |
@InvocableMethod(label='Classify the given files' description='Calls the Einsten API to classify the given ContentVersion files.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<actionCalls> | |
<name>TaskReminder</name> | |
<label>TaskReminder</label> | |
<locationX>21</locationX> | |
<locationY>32</locationY> | |
<actionName>NewTask</actionName> | |
<actionType>quickAction</actionType> | |
<inputParameters> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
<target name="cloud9.github.init"> | |
</target> | |
<target name="sync.from.cloud9"> | |
<sync todir="src/classes" verbose="true"> | |
<fileset dir="${basedir}/classes"> | |
<exclude name="**/.c9/**"/> | |
</fileset> | |
</sync> |
NewerOlder