forked from jeffdonthemic/node-red-contrib-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsoql.html
62 lines (60 loc) · 2.11 KB
/
soql.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<script type="text/javascript">
RED.nodes.registerType('soql', {
category: 'Salesforce',
color: '#C0DEED',
defaults: {
name: {
value: ""
},
query: {
value: ""
},
connection: {
value: "",
type: "connection-config",
required: true
},
fetchAll: {
value: false
},
returnJSON: {
value: true
}
},
inputs: 1,
outputs: 1,
icon: "salesforce.png",
label: function () {
return this.name || "soql query";
}
});
</script>
<script type="text/x-red" data-template-name="soql">
<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>
<div class="form-row">
<label for="node-input-query"><i class="fa fa-database"></i> Query</label>
<textarea id="node-input-query" style="width:300px"></textarea>
</div>
<div class="form-row" style="white-space:nowrap">
<label for="node-input-fetchAll"><i class="fa fa-list"></i> Fetch all result records</label>
<input type="checkbox" id="node-input-fetchAll" style="position:absolute;left:20px" />
</div>
</script>
<script type="text/x-red" data-help-name="soql">
<p>Executes a SOQL query.</p>
<pre>
select id, name
from contact
limit 2
</pre>
<p>message.payload contains an array of result objects.</p>
<p>The query can be configured in the node, however if left blank, the query should be set in an incoming message on <code>msg.query</code>.</p>
<p>See the <a href="https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl" target="_blank">Salesforce SOQL documentation</a> for more information.</p>
</script>