Skip to content

Instantly share code, notes, and snippets.

@afawcett
Created September 26, 2016 09:25
Show Gist options
  • Save afawcett/59595a58416cd339cc6d3fd7a2341ffb to your computer and use it in GitHub Desktop.
Save afawcett/59595a58416cd339cc6d3fd7a2341ffb to your computer and use it in GitHub Desktop.
Definition of the TaskReminder Flow
<?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>
<name>OwnerId</name>
<value>
<elementReference>UserId</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>Subject</name>
<value>
<elementReference>NoteTempalte</elementReference>
</value>
</inputParameters>
</actionCalls>
<formulas>
<name>UserId</name>
<dataType>String</dataType>
<expression>{!$User.Id}</expression>
</formulas>
<interviewLabel>MyReportNotificationFlow {!$Flow.CurrentDateTime}</interviewLabel>
<label>MyReportNotificationFlow</label>
<processType>AutoLaunchedFlow</processType>
<startElementReference>TaskReminder</startElementReference>
<textTemplates>
<name>NoteTempalte</name>
<text>Report subscription notification was received for report {!ReportName}, record count was {!RecordCount}.</text>
</textTemplates>
<variables>
<name>RecordCount</name>
<dataType>Number</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
<scale>2</scale>
</variables>
<variables>
<name>ReportName</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment