-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2374 from boltdesignsystem/hotfix/v4.6.2-code-sni…
…ppet-and-teaser Hotfix v4.6.2
- Loading branch information
Showing
8 changed files
with
562 additions
and
299 deletions.
There are no files selected for viewing
246 changes: 246 additions & 0 deletions
246
docs-site/src/pages/pattern-lab/_patterns/999-tests/code-snippet/15-code-snippet-table.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
<div class="c-bolt-code-snippet" data-mode="light"> | ||
<pre><code>{ | ||
"FullName": "OpportunityEvents_chn_OpportunityChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Name"}, | ||
{"name": "CloseDate"}, | ||
{"name": "Probability"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "OpportunityEvents__chn", | ||
"selectedEntity": "OpportunityChangeEvent" | ||
} | ||
} </code></pre> | ||
</div> | ||
|
||
<bolt-table> | ||
<table> | ||
<thead> | ||
<tr> | ||
<td style="width: 50%;">Element</td> | ||
<td style="width: 89%;">Value</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Method</td> | ||
<td><code>POST</code></td> | ||
</tr> | ||
<tr> | ||
<td>Request URL</td> | ||
<td>Instance URL received in the access token response with a | ||
<code>/services/data/v51.0/tooling/sobjects/PlatformEventChannelMember</code> | ||
part, for example | ||
<code>https://sales-sample-URL.my.salesforce.com/services/data/v51.0/tooling/sobjects/PlatformEventChannelMember</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in an | ||
<samp>OpportunityEvents__chn</samp> | ||
channel member for an Opportunity entity | ||
</td> | ||
<td> | ||
<div class="c-bolt-code-snippet some-other-class" data-mode="light"> | ||
<pre><code>{ | ||
"FullName": "OpportunityEvents_chn_OpportunityChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Name"}, | ||
{"name": "CloseDate"}, | ||
{"name": "Probability"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "OpportunityEvents__chn", | ||
"selectedEntity": "OpportunityChangeEvent" | ||
} | ||
} </code></pre> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in an | ||
<samp>OpportunityEvents__chn</samp> | ||
channel member for an Opportunity entity | ||
</td> | ||
<td> | ||
<div class="c-bolt-code-snippet some-other-class" data-mode="light"> | ||
<pre><code>{ | ||
"FullName": "OpportunityEvents_chn_OpportunityChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Name"}, | ||
{"name": "CloseDate"}, | ||
{"name": "Probability"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "OpportunityEvents__chn", | ||
"selectedEntity": "OpportunityChangeEvent" | ||
} | ||
} </code></pre> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in a <samp>WorkOrderEvents__chn</samp> | ||
channel member for a Work Order entity | ||
</td> | ||
<td> | ||
<pre><code>{ | ||
"FullName": "WorkOrderEvents_chn_ WorkOrderChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Subject"}, | ||
{"name": "WorkOrderNumber"}, | ||
{"name": "Priority"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "WorkOrderEvents__chn", | ||
"selectedEntity": "WorkOrderChangeEvent" | ||
} | ||
} </code></pre> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</bolt-table> | ||
|
||
<bolt-table> | ||
<table> | ||
<thead> | ||
<tr> | ||
<td style="width: 50%;">Element</td> | ||
<td style="width: 89%;">Value</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Method</td> | ||
<td><code>POST</code></td> | ||
</tr> | ||
<tr> | ||
<td>Request URL</td> | ||
<td>Instance URL received in the access token response with a | ||
<code>/services/data/v51.0/tooling/sobjects/PlatformEventChannelMember</code> | ||
part, for example | ||
<code>https://sales-sample-URL.my.salesforce.com/services/data/v51.0/tooling/sobjects/PlatformEventChannelMember</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in an | ||
<samp>OpportunityEvents__chn</samp> | ||
channel member for an Opportunity entity | ||
</td> | ||
<td> | ||
<div class="c-bolt-code-snippet some-other-class" data-mode="light"> | ||
<pre><code>{ | ||
"FullName": "OpportunityEvents_chn_OpportunityChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Name"}, | ||
{"name": "CloseDate"}, | ||
{"name": "Probability"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "OpportunityEvents__chn", | ||
"selectedEntity": "OpportunityChangeEvent" | ||
} | ||
} </code></pre> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in an | ||
<samp>OpportunityEvents__chn</samp> | ||
channel member for an Opportunity entity | ||
</td> | ||
<td> | ||
<div class="c-bolt-code-snippet some-other-class" data-mode="light"> | ||
<pre><code>{ | ||
"FullName": "OpportunityEvents_chn_OpportunityChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Name"}, | ||
{"name": "CloseDate"}, | ||
{"name": "Probability"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "OpportunityEvents__chn", | ||
"selectedEntity": "OpportunityChangeEvent" | ||
} | ||
} </code></pre> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Sample request body of JSON type with enrichment fields | ||
added in a <samp>WorkOrderEvents__chn</samp> | ||
channel member for a Work Order entity | ||
</td> | ||
<td> | ||
<pre><code>{ | ||
"FullName": "WorkOrderEvents_chn_ WorkOrderChangeEvent", | ||
"Metadata": { | ||
"enrichedFields": [ | ||
{"name": "OwnerId"}, | ||
{"name": "Subject"}, | ||
{"name": "WorkOrderNumber"}, | ||
{"name": "Priority"}, | ||
{"name": "LastModifiedDate"}, | ||
{"name": "LastModifiedById"}, | ||
{"name": "IsClosed"}, | ||
{"name": "AccountId"}, | ||
{"name": "CreatedById"}, | ||
{"name": "CreatedDate"} | ||
], | ||
"eventChannel": "WorkOrderEvents__chn", | ||
"selectedEntity": "WorkOrderChangeEvent" | ||
} | ||
} </code></pre> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div slot="caption">This is a table caption</div> | ||
</bolt-table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.