-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathregister.html
More file actions
86 lines (85 loc) · 4.06 KB
/
register.html
File metadata and controls
86 lines (85 loc) · 4.06 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
<lightning-card title="Register a streaming event source">
<div class="slds-var-p-horizontal_large">
<lightning-combobox
label="Event type"
name="regEventType"
value={regEventType}
options={regEventTypes}
onchange={handleValueChange}
placeholder="Select type"
class="slds-var-m-bottom_medium"
></lightning-combobox>
<template if:true={isPushTopicReg}>
<p class="slds-var-m-bottom_small">
Customize and execute the following code in Apex to register
a new PushTopic:
</p>
<p class="slds-textarea push-topic-code">
PushTopic pushTopic = new PushTopic();<br />
pushTopic.Name = 'ClosedCaseUpdates';<br />
pushTopic.Query = 'SELECT Id, Subject FROM Case WHERE
Status=\'Closed\'';<br />
pushTopic.ApiVersion = 65.0;<br />
pushTopic.NotifyForOperationCreate = true;<br />
pushTopic.NotifyForOperationUpdate = true;<br />
pushTopic.NotifyForOperationUndelete = true;<br />
pushTopic.NotifyForOperationDelete = true;<br />
pushTopic.NotifyForFields = 'Referenced';<br />
insert pushTopic;
</p>
</template>
<template if:true={isGenericReg}>
Navigate to the
<a href="/lightning/o/StreamingChannel/list"
>Streaming Channel</a
> tab to register a generic event.
</template>
<template if:true={isPlatformEventReg}>
Navigate to the
<a href="/lightning/setup/EventObjects/home">Platform Event</a
> page in Setup to register a custom platform event.
</template>
<template if:true={isStandardPlatformEventReg}>
Standard platform events do not need to be registered. See
<a
rel="noopener noreferrer"
target="_blank"
href="https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_objects_list.htm"
>documentation</a
>.
</template>
<template if:true={isStandardCDCReg}>
Navigate to the
<a href="/lightning/setup/CdcObjectEnablement/home"
>Change Data Capture</a
> page in Setup to activate a change data capture event.
</template>
<template if:true={isCustomChannelPEReg}>
Custom channels cannot be declared via the user interface.
Follow these
<a
rel="noopener noreferrer"
target="_blank"
href="https://developer.salesforce.com/docs/atlas.en-us.240.0.platform_events.meta/platform_events/platform_events_custom_channel_configure.htm"
>metadata deploy instructions</a
>.
</template>
<template if:true={isCustomChannelCDCReg}>
Custom channels cannot be declared via the user interface.
Follow these
<a
rel="noopener noreferrer"
target="_blank"
href="https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_custom_channel.htm"
>metadata deploy instructions</a
>.
</template>
<template if:true={isMonitoringReg}>
Streaming must be enabled in
<a href="/lightning/setup/EventManager/home">Event Manager</a
> in order to receive Monitoring Events.
</template>
</div>
</lightning-card>
</template>