forked from jeffdonthemic/node-red-contrib-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathchatter.html
48 lines (46 loc) · 1.43 KB
/
chatter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script type="text/javascript">
RED.nodes.registerType('chatter', {
category: 'Salesforce',
color: '#C0DEED',
defaults: {
name: { value: '' },
connection: { value: '', type: 'connection-config', required: true }
},
inputs: 1,
outputs: 1,
icon: 'salesforce.png',
align: 'right',
label: function() {
return this.name || 'chatter';
}
});
</script>
<script type="text/x-red" data-template-name="chatter">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-connection"><i class="fa fa-plug"></i> Connection</label>
<input type="text" id="node-input-connection">
</div>
</script>
<script type="text/x-red" data-help-name="chatter">
<p>Creates a Chatter feed item</p>
<p>The action uses the following properties:</p>
<ul>
<li>
<code>msg.payload</code> (required): the message body
</li>
<li>
<code>msg.ParentId</code> (optional): the parent id the chatter post belongs to. If omitted goes to the current user
</li>
<li>
<code>msg.RelatedRecordId</code> (optional): related record id
</li>
<li>
<code>msg.title</code> (optional): Title for the chatter post
</li>
</ul>
<p>Return a JSON object with the insert results
</script>