Skip to content

Instantly share code, notes, and snippets.

View alexed1's full-sized avatar

Alex Edelstein alexed1

View GitHub Profile
global with sharing class GenerateFlow {
public GenerateFlow() {
}
@InvocableMethod(label='GenerateFlow' )
public static List<FlowGenResult> GenerateFlow(List<FlowGenRequest> parameters){
String res = '';
try{
@alexed1
alexed1 / gist:5027c135a15be7973cd2d6fc8b0a952f
Created September 26, 2017 18:36
simple metadata import export using jsforce
var express = require("express");
var bodyParser = require("body-parser");
var module = require('module');
var fs = require("fs");
var jsforce = require('jsforce');
var curEnv= './env/mobile1.env';
var dotEnv = require('dotenv').config({path: curEnv});
var app = express();
app.use(bodyParser.json());
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>postTarget</name>
<value>
<stringValue>User User</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>postTarget</name>
<value>
<stringValue>User User</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>postTarget</name>
<value>
<stringValue>User User</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>postTarget</name>
<value>
<stringValue>User User</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
import { LightningElement, api, track } from "lwc";
export default class DynamicTypeCpe extends LightningElement {
_inputVariables = [];
_builderContext = {};
_elementInfo = {};
_typeMappings = [];
_flowVariables;
_elementType;
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
<fieldUpdates>
<fullName>UpdateRating</fullName>
<field>Rating</field>
<literalValue>Hot</literalValue>
<name>UpdateRating</name>
<notifyAssignee>false</notifyAssignee>
<operation>Literal</operation>
<protected>false</protected>
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<masterLabel>datatableV2</masterLabel>
<description>This component allows the user to configure and display a datatable in a Flow screen.</description>
<apiVersion>49.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__FlowScreen</target>
</targets>
<targetConfigs>
@alexed1
alexed1 / gist:ece799b0fb63c42a166738f1ce462dae
Created July 3, 2020 15:48
package with multiple package directories
{
"packageDirectories": [
{
"path": "force-app",
"package": "CollectionActionsA",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"default": false
},
{