This Pilot Update is for Salesforce customers participating in the Spring '18 pilot for Flow Local Actions.
Local Actions that run on Spring '18 orgs are not compatible with Summer '18. Summer '18 versions of the sample actions made available as part of the pilot are available at lightningflow.net and will need to be installed when your org running Local Actions is upgraded to Summer '18.
You may need to remove the old Local Action from any flows in which you've installed it. (If you are getting an error message “Error parsing file: 'localAction' is not a valid value for the enum 'InvocableActionType'” then you have a flow that still has a saved reference to the old version. See “InvocableActionType Change”, below.
If you have created Local Actions using the Spring '18 pilot, you will want to be aware of the following:
Existing Local Actions require the following changes to work with Summer '18:
flowruntime:availableForLocalInvocableActions
” to “lightning:availableForFlowActions
”. This change is made in the “cmp” file of your lightning component file set.Other transition notes:
In cases like this change “localAction” to “component” to avoid the error message:
Error parsing file: 'localAction' is not a valid value for the enum 'InvocableActionType'
invoke : function(component, event, helper) {
var args = event.getParam("arguments");
return new Promise(function(resolve, reject) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = $A.getCallback(function() {
if (this.readyState === 4) { // DONE
if (this.status >= 200 && this.status < 300) {
var response = JSON.parse(xhttp.responseText);
component.set("v.churnVal", response);
resolve();
} else {
var errorText = "";
if (this.status === 0) {
errorText = 'Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.';
} else {
errorText = this.statusText;
}
reject(new Error(errorText));
}
}
});
var customerId = component.get("v.customerId");
xhttp.open("GET", "https://upp57qbj5b.execute-api.us-west-1.amazonaws.com/production/customer/"+customerId+"/churn", true);
xhttp.send(null);
});
}