Preview:
<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (c) 2018, salesforce.com, inc.
 All rights reserved.
 Licensed under the BSD 3-Clause license.
 For full license text, see LICENSE.txt file in the repo root  or https://opensource.org/licenses/BSD-3-Clause
-->
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
    <actionCalls>
        <name>churn</name>
        <label>churn</label>
        <locationX>257</locationX>
        <locationY>169</locationY>
        <actionName>c:getRESTData</actionName>
        <actionType>component</actionType>
        <connector>
            <targetReference>screen</targetReference>
        </connector>
        <inputParameters>
            <name>customerId</name>
            <value>
                <numberValue>46.0</numberValue>
            </value>
        </inputParameters>
        <outputParameters>
            <assignToReference>churnValue</assignToReference>
            <name>churnVal</name>
        </outputParameters>
    </actionCalls>
    <interviewLabel>Sample - GetRESTData Action Component {!$Flow.CurrentDateTime}</interviewLabel>
    <label>Sample - GetRESTData Action Component</label>
    <processType>Flow</processType>
    <screens>
        <name>screen</name>
        <label>screen</label>
        <locationX>255</locationX>
        <locationY>321</locationY>
        <allowBack>true</allowBack>
        <allowFinish>true</allowFinish>
        <allowPause>true</allowPause>
        <fields>
            <name>text</name>
            <fieldText>churn value is : {!churnValue}</fieldText>
            <fieldType>DisplayText</fieldType>
        </fields>
    </screens>
    <startElementReference>churn</startElementReference>
    <variables>
        <name>churnValue</name>
        <dataType>Number</dataType>
        <isCollection>false</isCollection>
        <isInput>false</isInput>
        <isOutput>false</isOutput>
        <scale>2</scale>
    </variables>
</Flow>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter