tag:blogger.com,1999:blog-60704452209563518502024-03-19T01:48:28.134-07:00Salesforce Easy LearnBalaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.comBlogger264125tag:blogger.com,1999:blog-6070445220956351850.post-17183564327970612632023-10-29T04:37:00.003-07:002023-10-29T04:37:21.474-07:00How to include a screen flow in a Lightning Web Component<p> Hi,</p><p>Assume you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation".</p><p>To include the above flow in your component , <span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;"> </span><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;">set the</span><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;"> </span><code componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="box-sizing: border-box; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 1em;">lightning-flow</code><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;"> </span><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;">component's</span><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;"> </span><code componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="box-sizing: border-box; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 1em;">flowApiName</code><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;"> </span><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;">attribute to the name of the flow that you want to use. The component includes navigation buttons (Back, Next, Pause, and Finish), for users to navigate within the flow.</span></p><p><span style="background-color: rgba(255, 255, 255, 0.97); color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px;">Eg:</span></p><pre class=" language-html" componentreference-bundledoc_bundledoc="" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="background-color: white; background-image: linear-gradient(rgb(255, 255, 255) 50%, rgb(250, 250, 249) 50%); background-size: 2.625rem 2.625rem; border-radius: 0.25rem; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #000814; direction: ltr; font-family: Consolas, "Bitstream Vera Sans Mono", Courier, monospace; font-size: 0.875rem; hyphens: none; line-height: 1.2em; margin-bottom: 0.75rem; margin-top: 0.5em; overflow: auto; padding: 1em; tab-size: 4; word-break: normal;"><code class=" language-html" componentreference-bundledoc_bundledoc="" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; direction: ltr; font-family: Consolas, "Bitstream Vera Sans Mono", Courier, monospace; font-size: 1em; hyphens: none; line-height: 1.2em; tab-size: 4; word-break: normal; word-spacing: normal;"><span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #043b7e;"><span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box;"><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;"><</span>template</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">></span></span>
<span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #043b7e;"><span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box;"><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;"><</span>lightning-flow</span>
<span class="token attr-name" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #c42a00;">flow-api-name</span><span class="token attr-value" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #00674d;"><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">=</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">'</span>Quick_Contact_Creation<span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">'</span></span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">></span></span>
<span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #043b7e;"><span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box;"><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;"></</span>lightning-flow</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">></span></span>
<span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #043b7e;"><span class="token tag" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box;"><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;"></</span>template</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" lwc-qbgiun1h62="" style="box-sizing: border-box; color: #000814;">></span></span></code></pre><div><p componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="background-color: rgba(255, 255, 255, 0.97); box-sizing: border-box; color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; margin: 0px 0px 0.75rem; padding: 0px;"><br /></p><p componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="background-color: rgba(255, 255, 255, 0.97); box-sizing: border-box; color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; margin: 0px 0px 0.75rem; padding: 0px;"><br /></p><p componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="background-color: rgba(255, 255, 255, 0.97); box-sizing: border-box; color: #080707; font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; margin: 0px 0px 0.75rem; padding: 0px;"><b>Reference:</b></p><p componentreference-bundledoc_bundledoc="" lwc-qbgiun1h62="" style="background-color: rgba(255, 255, 255, 0.97); box-sizing: border-box; margin: 0px 0px 0.75rem; padding: 0px;"><span style="color: #080707; font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;"><span style="font-size: 13px;"><a href="https://developer.salesforce.com/docs/component-library/bundle/lightning-flow/documentation">https://developer.salesforce.com/docs/component-library/bundle/lightning-flow/documentation</a></span></span></p></div>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-7627854145228501702023-10-28T10:59:00.002-07:002023-10-28T10:59:42.134-07:00HTML Template Directives (lwc:if|elseif={expression} and lwc:else)<p> Hi,</p><p><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">A directive is a special attribute that adds dynamic behavior to an HTML template. You can use certain directives on a root </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><template></code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> tag, a nested </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><template></code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> tag, or an HTML element such as a </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><p></code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> tag. Some directives are supported for use with different tags.</span></p><p><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">As part of this post we discuss the directives<b> </b></span><b>lwc:if | elseif={expression} and lwc:else</b></p><p>Before introducing <b>lwc:if | elseif={expression} and lwc:else </b>we had <code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; font-weight: bold; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; font-weight: bold;"> and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; font-weight: bold; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:false</code></p><p><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">The </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:false</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> directives are no longer recommended. They may be deprecated and removed in the future. Use </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:else</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> instead.</span></p><p><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true|false={expression}</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> conditionally renders DOM elements in a template, calling the expression for each of </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:false</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">. In cases where you chain </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:false</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> directives, they are not as performant nor as lightweight as the </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, and </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:else</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> directives. See </span><a class="internal-link-guide" href="https://developer.salesforce.com/docs/platform/lwc/guide/create-conditional.html" style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert; text-decoration: inherit;">Render DOM Elements Conditionally</a><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">.</span></p><p><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">The </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">expression</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> can be a JavaScript identifier (for example, </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">person</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">) or dot notation that accesses a property from an object (</span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">person.firstName</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">). The engine doesn’t allow computed expressions (</span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">person[2].name['John']</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">). To compute the value of </span><code style="border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">expression</code><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, use a </span><a class="internal-link-guide" href="https://developer.salesforce.com/docs/platform/lwc/guide/js-props-getter.html" style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert; text-decoration: inherit;">getter</a><span style="background-color: white; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> in the JavaScript class.</span></p><p><span style="color: var(--dx-g-text-heading-color); font-family: var(--dx-g-font-display); font-size: var(--dx-g-text-xl); letter-spacing: -0.4px;">lwc:if|elseif={expression} and lwc:else </span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;">Conditionally render DOM elements in a template. <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code>, <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code>, and <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:else</code> supersede the <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:true</code> and <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">if:false</code> directives.</p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;">Use the conditional directives on nested <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><template></code> tags, <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><div></code> tags or other HTML elements, and on your custom components tags like <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;"><c-custom-cmp></code>.</p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;">Both <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code> and <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:else</code> must be immediately preceded by a sibling <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code> or <code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code>.</p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;">Eg:1</p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:if={expression}></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:else></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">Both </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> and </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> must evaluate an expression. However, </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:else</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> must not have an attribute value.</span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">Eg:2</span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:if={expression}></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:elseif={expression_elseif1}></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:elseif={expression_elseif2}></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;"><template lwc:else></template></span></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">The expression passed in to </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:if</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> and </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">lwc:elseif</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> supports simple dot notation. Complex expressions like </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">!condition</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">, </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">object?.property?.condition</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> or </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: monospace, monospace; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space-collapse: preserve; word-break: break-word;">sum % 2 === 1</code><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> aren't supported. To compute such expressions, use a </span><a class="internal-link-guide" href="https://developer.salesforce.com/docs/platform/lwc/guide/js-props-getters-setters.html" style="border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert; text-decoration: inherit;">getter</a><span style="color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;"> in the JavaScript class.</span></p><p class="doc-status-title dx-callout-title dx-text-body-3" style="background-color: #eef4ff; border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: var(--dx-g-text-sm); line-height: 20px; margin: 0px;"><b>Note</b></p><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><span class="dx-callout-body dx-text-body-3" style="background-color: #eef4ff; border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; color: #181818; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: var(--dx-g-text-sm); line-height: 20px;"><slot style="border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box;"></slot></span></p><div style="border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; list-style: revert; margin: revert; padding: revert;"><p style="border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: var(--dx-g-font-sans); font-size: var(--dx-g-text-base); font-weight: var(--dx-g-font-normal); letter-spacing: 0px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space: pre-wrap; word-break: break-word;">lwc:if</code>,<span> </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space: pre-wrap; word-break: break-word;">lwc:elseif</code>, and<span> </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space: pre-wrap; word-break: break-word;">lwc:else</code><span> </span>can't be applied to the same element and they cannot be combined with the<span> </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space: pre-wrap; word-break: break-word;">if:true</code><span> </span>and<span> </span><code style="background: var(--dx-g-gray-95); border-radius: var(--dx-g-spacing-xs); border: 0px solid rgb(226, 232, 240); box-sizing: border-box; display: revert; font-family: monospace, monospace; font-size: 1em; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: var(--dx-g-spacing-2xs) var(--dx-g-spacing-xs); white-space: pre-wrap; word-break: break-word;">if:false</code><span> </span>directives.</p><p style="border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: var(--dx-g-font-sans); font-size: var(--dx-g-text-base); font-weight: var(--dx-g-font-normal); letter-spacing: 0px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><br /></p><p style="border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: var(--dx-g-font-sans); font-size: var(--dx-g-text-base); letter-spacing: 0px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><b>Reference:</b></p></div><p style="background-color: white; border: 0px solid rgb(226, 232, 240); box-sizing: border-box; color: #181818; display: revert; font-family: "Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; line-height: var(--dx-g-text-xl); list-style: revert; margin: revert; padding: revert;"><a href="https://developer.salesforce.com/docs/platform/lwc/guide/reference-directives.html?q=html+directives#directives-for-html-elements" target="_blank">https://developer.salesforce.com/docs/platform/lwc/guide/reference-directives.html?q=html+directives#directives-for-html-elements</a><br /></p><h3 class="dx-text-display-6" style="color: var(--dx-g-text-heading-color); font-family: var(--dx-g-font-display); font-size: var(--dx-g-text-xl); letter-spacing: -0.4px; line-height: 32px; margin: var(--dx-g-spacing-xl) 0 var(--dx-g-spacing-md) 0;"><doc-heading-content style="--button-size: var(--dx-g-spacing-xl); --doc-c-heading-anchor-button-bottom: -0.5px; --doc-c-heading-anchor-icon-size: 18px;"><dx-tooltip style="border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; display: inline-block; line-height: var(--button-size); padding-right: var(--dx-g-spacing-xs);"><div aria-label="Copy link to clipboard" data-microtip-position="top" role="tooltip" style="position: relative;"><slot><span class="button-container" style="border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; height: 100%; margin-right: calc(var(--dx-g-spacing-xl) - 4px); padding-right: var(--dx-g-spacing-xs); position: relative;"><button aria-label="copy" style="align-items: center; appearance: button; background-color: transparent; background-image: none; border-color: rgb(226, 232, 240); border-radius: 4px; border-style: solid; border-width: 0px; bottom: var(--doc-c-heading-anchor-button-bottom); box-sizing: border-box; color: #0b5cab; cursor: pointer; display: flex; font-family: inherit; height: var(--button-size); justify-content: center; left: 0px; line-height: inherit; margin: 0px; opacity: 0; overflow: visible; padding: 0px; position: absolute; text-transform: none; width: var(--button-size);"><dx-icon style="--dx-c-icon-color: currentColor; --dx-c-icon-size: var(--doc-c-heading-anchor-icon-size); border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; display: block;"><svg aria-hidden="true" part="svg" xmlns="http://www.w3.org/2000/svg"><use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#link"></use></svg></dx-icon></button></span></slot></div></dx-tooltip></doc-heading-content></h3>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-15082083590043916582023-06-27T12:23:00.003-07:002023-06-27T12:27:32.334-07:00Due Date calculation formula for excluding weekends in flow<p> Hi ,</p><p><span face="-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif" style="background-color: white; color: #232629; font-size: 15px;">The following formula field calculates the Due Date </span><span face="-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif" style="background-color: white; color: #232629; font-size: 15px;">provided the Today() date and numberOfDays to be added to the Today() date excluding Saturdays and Sundays in the flow.</span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">CASE(</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">MOD(TODAY() - DATE(1900, 1, 7), 7),</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">0, (TODAY() ) + numberOfDays + FLOOR((numberOfDays-1)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">1, (TODAY() ) + numberOfDays + FLOOR((numberOfDays)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">2, (TODAY() ) + numberOfDays + FLOOR((numberOfDays+1)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">3, (TODAY() ) + numberOfDays + FLOOR((numberOfDays+2)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">4, (TODAY() ) + numberOfDays + FLOOR((numberOfDays+3)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">5, (TODAY() ) + numberOfDays + CEILING((numberOfDays)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">6, (TODAY() ) - IF(numberOfDays>0,1,0) + numberOfDays + CEILING((numberOfDays)/5)*2,</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">null)</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;"><br /></span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;">Here <b>numberOfDays</b> is flow variable.</span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;"><br /></span></span></p><p><span face="-apple-system, system-ui, Segoe UI Adjusted, Segoe UI, Liberation Sans, sans-serif" style="color: #232629;"><span style="font-size: 15px;"><b>Example Scenario:</b></span></span></p><p>When an Account is created, a task should be created with a due date set to 5 days from today.</p><p><b>Reference:</b></p><p><a href="https://help.salesforce.com/s/articleView?id=sf.formula_examples_dates.htm&type=5">https://help.salesforce.com/s/articleView?id=sf.formula_examples_dates.htm&type=5</a></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-22249682669741992292023-06-26T23:03:00.001-07:002023-06-26T23:03:05.215-07:00Invoking(Launching) a Flow from Apex<p> Hi,</p><p>We can launch a flow from Apex in the following ways</p><p><br /></p><p><b>Invoking the flow from Apex Statically:</b></p><p><b>Without Namespace:</b></p><p> Map<String, Object> inputs = new Map<String, Object>();</p><p> inputs.put('AccountID','001XXXXXXX');</p><p> inputs.put('OpportunityID','006XXXXXXX');</p><p> Flow.Interview.<b>Calculate_discounts</b> myFlow = </p><p> new Flow.Interview.<b>Calculate_discounts</b>(inputs);</p><p> myFlow.start();</p><p><br /></p><p><b>With Namespace:</b></p><p> Map<String, Object> inputs = new Map<String, Object>();</p><p> inputs.put('AccountID','001XXXXXXX');</p><p> inputs.put('OpportunityID','006XXXXXXX');</p><p> Flow.Interview.myNamespace.Calculate_discounts myFlow = </p><p> new Flow.Interview. <b>sftech</b>.<b>Calculate_discounts</b>(inputs);</p><p> myFlow.start();</p><p><b>Invoking the flow from Apex Dynamically:</b></p><p><b>Without Namespace:</b></p><p>Map<String, Object> inputs = new Map<String, Object>();</p><p> inputs.put('AccountID','001XXXXXXX');</p><p> inputs.put('OpportunityID','006XXXXXXX');</p><p>Flow.Interview myFlow = Flow.Interview.createInterview('<b>Calculate_discounts</b>', inputs);</p><p>myFlow.start();</p><p><b>With Namespace:</b></p><p> Map<String, Object> inputs = new Map<String, Object>();</p><p> inputs.put('AccountID','001XXXXXXX');</p><p> inputs.put('OpportunityID','006XXXXXXX');</p><p> Flow.Interview myFlow = Flow.Interview.createInterview('sftech', '<b>Calculate_discounts</b>', inputs);</p><p> myFlow.start();</p><p>Here <b>Calculate_discounts </b>is the name of the flow.</p><p><b>AccountID</b> and <b>OpportunityID</b> are input variables of the flow.</p><p><b>sftech </b>is the namespace</p><p><b>How to get variable values from flow to Apex?</b></p><p>system.debug('My Output Variable: ' + myFlow.getVariableValue('varName'));</p><p><br /></p><p><b>Note: </b>We can invoke flow from Apex if the flow type is "Autolaunched Flow (No Trigger)" only</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiSYWbRpmSrFUxcWLvswG7OCMUTOoGr2U6Ftb4drF5WgJhlMYZNQm9FE4APIA5rap5Fpjz3sM0BpBpJmfjOPspSZn8rVx6yu_t5OI6r-ZCkL3aAspXlp0blFMPgQBLBCcPRTC1RLnaYHMDFeg9kogjPenHrpBnlj5h-jh364LZUk-fbTYav1y1ifTeVI2g" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1032" data-original-width="2388" height="173" src="https://blogger.googleusercontent.com/img/a/AVvXsEiSYWbRpmSrFUxcWLvswG7OCMUTOoGr2U6Ftb4drF5WgJhlMYZNQm9FE4APIA5rap5Fpjz3sM0BpBpJmfjOPspSZn8rVx6yu_t5OI6r-ZCkL3aAspXlp0blFMPgQBLBCcPRTC1RLnaYHMDFeg9kogjPenHrpBnlj5h-jh364LZUk-fbTYav1y1ifTeVI2g=w400-h173" width="400" /></a></div><br /><br /><p></p><p><br /></p><p><br /></p><p><br /></p><p><b>Reference:</b></p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/flow_interview_class.htm#apex_Flow_Interview_methods">https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/flow_interview_class.htm#apex_Flow_Interview_methods</a></p><p><br /></p><p><br /></p><p><br /></p><div><br /></div><div><br /></div><p></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-38635797048308700532023-06-19T09:42:00.002-07:002023-06-25T11:50:32.312-07:00Manage Apex Access for Package Version Creation Tests<p> <span face=""Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #181818; font-size: 16px;">Sometimes the Apex tests that you write require a user to have certain permission sets or permission set licenses. Use the </span><samp class="codeph nolang" style="border-color: rgb(226, 232, 240); border-radius: 4px; border-style: solid; border-width: 0px; box-sizing: border-box; color: #181818; font-family: var(--dx-g-font-mono); font-size: var(--dx-g-text-sm); line-height: var(--dx-g-text-lg); padding: var(--dx-g-spacing-2xs);"><b>apexTestAccess</b></samp><span face=""Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #181818; font-size: 16px;"> setting to assign permission sets and permission set licenses to the user in whose context your Apex tests get run at package version creation.</span></p><p><span face=""Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #181818; font-size: 16px;">Its very important step to include "apexTestAccess" if we are not using System.runas() in test methods for generating 2GP packages.</span></p><p><span face=""Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #181818; font-size: 16px;"><br /></span></p><p><span face=""Salesforce Sans", system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #181818; font-size: 16px;"><br /></span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;">"packageDirectories": [</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> {</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "path": "force-app",</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "package": "TestPackage", </span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "versionName": "ver 0.1",</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "versionNumber": "0.1.0.NEXT",</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "default": true, </span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "unpackagedMetadata": {</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "path": "my-unpackaged-directory"</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> },</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "apexTestAccess": {</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "permissionSets": [</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "Permission_Set_1",</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "Permission_Set_2"</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> ],</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "permissionSetLicenses": [</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> "SalesConsoleUser"</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> ]</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> }</span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"><br /></span></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;"> }, </span></p><p></p><p><span face="Salesforce Sans, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #181818;">]</span></p><p><b>Reference:</b></p><p>https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_unpackaged_md.htm</p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-51842804765570615862022-12-29T06:07:00.022-08:002022-12-29T06:28:27.157-08:00How to create a Picklist Mapping in MuleSoft Composer Flow for Salesforce<p> Hi,</p><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">Using Picklist Mapping, you can map data from one application to the corresponding data needed by another application and then reuse those mappings in different flows in your organization. This enables you to connect two applications that have different values for similar fields and to align the values in those fields across applications. You can then determine how the possible values of an output field (data pill) map to the possible values of an input field.</p><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><div c-hcdocumentationarticle_hcdocumentationarticle="" class="paragraph" style="background-color: white; box-sizing: border-box;"><p class="p1" style="color: black; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">For example, you can map a data pill from the <b>Country</b> field in a Salesforce record and provide the same values in the <b>Country</b> field of the NetSuite record.</p><p class="p1" style="color: black; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><p class="p1" style="color: black; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><br /></p><table cellpadding="0" cellspacing="0" class="t1" style="border-collapse: collapse; color: #080707; font-family: "Salesforce Sans"; font-size: 14px;"><tbody><tr><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><b>COUNTRY (SALESFORCE)</b></p></td><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><b>COUNTRY (NETSUITE)</b></p></td></tr><tr><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">US</p></td><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">_unitedStates</p></td></tr><tr><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">CA</p></td><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">_canada</p></td></tr><tr><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">DE</p></td><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">_germany</p></td></tr><tr><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">AR</p></td><td class="td1" style="border-color: rgb(154, 154, 154); border-style: solid; border-width: 1px; padding: 1px 5px;" valign="top"><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">_argentina</p></td></tr></tbody></table><div style="color: #080707; font-family: "Salesforce Sans"; font-size: 14px;"><br /></div><div style="color: #080707; font-family: "Salesforce Sans"; font-size: 14px;"><br /></div><div style="color: #080707; font-family: "Salesforce Sans"; font-size: 14px;"><br /></div><div><p class="p2" style="color: black; font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">When mapping source data fields:</p><ul class="ul1" style="color: black; font-family: "Salesforce Sans"; font-size: medium;"><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>The source field must be a data pill with a fixed list of values.</li><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>The target field must be an enumerated data type field.</li><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>If any other unmapped value from the source system is found, the default mapping specifies the value in the target system . If you do not specify a default value, the original value from the source field is passed to the target field.</li><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>The mapping is stored at the organization level and can be reused across flows.</li><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>The mapping must have a unique name.</li><li class="li2" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;"><span class="s1" style="font-family: Menlo; font-size: 9px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"></span>Mappings are available to everyone in your organization.</li></ul><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><p class="p1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">To map source data fields to target fields:</p><ol class="ol1"><li class="li1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">From the <b>Composer Flows</b> tab, open a flow and click <b>Edit</b>.</li><li class="li1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">In an action card, in a field that supports <b>Pick from List</b>, select <b>Picklist Mapping</b> from the drop-down menu.<br />The <b>Picklist Mapping</b> window appears.</li><li class="li1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">In the <b>Picklist Source</b> section, in the <b>Source</b> field, select the value from the drop-down list that you want to map to the value in the <b>Target</b> field, and then click <b>Next</b>.</li><li class="li1" style="font-family: "Helvetica Neue"; font-size: 13px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;">In the <b>Global Picklist Selection</b> section, create a new picklist or choose an existing picklist.</li></ol><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;">Lets take an example to map Account object Billing Country to NetSuite Country. </span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;">You can go through the following screenshots:</span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgKiHuVuosQa8RfLJGtUZSem5gKgs9YKkrmO5MZjyf-dKVezvj8fcxeT4Lmai3EW7-7IsLtZApgvbLVNjPlvqzzyEPAia2OwkNXmOofXq3iAJuewMZ0rGvP_FKd2LQYMqvHo8EZjTBZlAzlf63_oPewTCmgCC2GB_moZHrW1BBOLeqQ6F9QZKZ0-w2Z" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="356" data-original-width="936" height="152" src="https://blogger.googleusercontent.com/img/a/AVvXsEgKiHuVuosQa8RfLJGtUZSem5gKgs9YKkrmO5MZjyf-dKVezvj8fcxeT4Lmai3EW7-7IsLtZApgvbLVNjPlvqzzyEPAia2OwkNXmOofXq3iAJuewMZ0rGvP_FKd2LQYMqvHo8EZjTBZlAzlf63_oPewTCmgCC2GB_moZHrW1BBOLeqQ6F9QZKZ0-w2Z=w400-h152" width="400" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi_3cAWX3JnLH4V07TAieiKusVNt9QRrTWuGUroi_4tDcQwvBZ1TwUB-dmMNFyOHwUtjLvRxxswlSzIWzYdasWni-PAo8EKqYbu8SbmPN-mtKVG7E8b2gETwNtZbQ0qgo3oWlMPwl8bZZWZBlHyARyy8q3H8_w5JbQ04UeiGO8MMsFD3a0HGOoeqO0t" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="498" data-original-width="936" height="213" src="https://blogger.googleusercontent.com/img/a/AVvXsEi_3cAWX3JnLH4V07TAieiKusVNt9QRrTWuGUroi_4tDcQwvBZ1TwUB-dmMNFyOHwUtjLvRxxswlSzIWzYdasWni-PAo8EKqYbu8SbmPN-mtKVG7E8b2gETwNtZbQ0qgo3oWlMPwl8bZZWZBlHyARyy8q3H8_w5JbQ04UeiGO8MMsFD3a0HGOoeqO0t=w400-h213" width="400" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgSRTApdeNwrLhBbfZlwIJM8rPdasgz-meK45xNwi1LWygDPfjwm4vC7CApYJVoBregITLqzUQHJJqbL-HgMjNAQLS1w_znF5GrtSY-ByvQapjCffXAmekUihVvwbupo29vPoSWyyye7LrgxAZYqtQWoxVW9Iq_hYWOcCD6kdOMIPuKEH6mgOaZQPrq" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="638" data-original-width="936" height="272" src="https://blogger.googleusercontent.com/img/a/AVvXsEgSRTApdeNwrLhBbfZlwIJM8rPdasgz-meK45xNwi1LWygDPfjwm4vC7CApYJVoBregITLqzUQHJJqbL-HgMjNAQLS1w_znF5GrtSY-ByvQapjCffXAmekUihVvwbupo29vPoSWyyye7LrgxAZYqtQWoxVW9Iq_hYWOcCD6kdOMIPuKEH6mgOaZQPrq=w400-h272" width="400" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgviw6V-pyAqsAxulQRK92n49TTkzNk2_NE61bIqH3jdPcqUrUmG9V2vFu7-Ki6zDZPNPGQ3bXWdWssyO1y44iZjITbLbqgJem1V-CHnl54kAFVqrC4Sn4KyvtINe0KgoFUaTJRdwSQBfcoYjD_XX3c7AbeDONlWNzPE7TZ90HCybdsiwtAyW4RI5WZ" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="736" data-original-width="936" height="315" src="https://blogger.googleusercontent.com/img/a/AVvXsEgviw6V-pyAqsAxulQRK92n49TTkzNk2_NE61bIqH3jdPcqUrUmG9V2vFu7-Ki6zDZPNPGQ3bXWdWssyO1y44iZjITbLbqgJem1V-CHnl54kAFVqrC4Sn4KyvtINe0KgoFUaTJRdwSQBfcoYjD_XX3c7AbeDONlWNzPE7TZ90HCybdsiwtAyW4RI5WZ=w400-h315" width="400" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh43jNGDRoqCCxyrqMQgC5IoawQN31cMkChQrm6612W1C-UeKbiURFpg8V7NXqzdYhhGsxi1rP9O76R3zpyrm-kSwtUAweerpcK9Ce31WYODaPntkwYvWoVAU90uvos1MS9Wg-96a5iptTZCqqHVaz-aBIJTFs3pGtDx4zq4VzMkygqXOIiKthfFWFJ" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="728" data-original-width="936" height="311" src="https://blogger.googleusercontent.com/img/a/AVvXsEh43jNGDRoqCCxyrqMQgC5IoawQN31cMkChQrm6612W1C-UeKbiURFpg8V7NXqzdYhhGsxi1rP9O76R3zpyrm-kSwtUAweerpcK9Ce31WYODaPntkwYvWoVAU90uvos1MS9Wg-96a5iptTZCqqHVaz-aBIJTFs3pGtDx4zq4VzMkygqXOIiKthfFWFJ=w400-h311" width="400" /></a></div><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiIKR9l-y8LTbibETOCtw5olOPDLnfLXlRLxpWHAxpSitt6P896OZrQadtvy_064DkCzCRn6FfNpykc1pHIUGALAkujkhhb3ZdMozErYM1QRm0i5dANd_TsGD9KpKrIacErKHtEf7NYEK8ERuOYZZ5luu0YMVgnnNQDrBuBcn_JwJ3O7z5xdoE61DIp" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="762" data-original-width="936" height="325" src="https://blogger.googleusercontent.com/img/a/AVvXsEiIKR9l-y8LTbibETOCtw5olOPDLnfLXlRLxpWHAxpSitt6P896OZrQadtvy_064DkCzCRn6FfNpykc1pHIUGALAkujkhhb3ZdMozErYM1QRm0i5dANd_TsGD9KpKrIacErKHtEf7NYEK8ERuOYZZ5luu0YMVgnnNQDrBuBcn_JwJ3O7z5xdoE61DIp=w400-h325" width="400" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjN4mA47sh5HpMxOl4e748jheaboB4RBKMxtH0cr9w65h4jiAOBxr3SknFebNkco99pexAqoV4dw8jv5ch6NmigZ0aW9hxLTvqpnCczJQXjNd4vGjTqZTBfna3egzW5FL6K-xD93qjwaALIf3CpOjPS2ah2jq8aDj4cLDdsuJNvv4YtqKp_SuZxuAW6" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="499" data-original-width="634" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEjN4mA47sh5HpMxOl4e748jheaboB4RBKMxtH0cr9w65h4jiAOBxr3SknFebNkco99pexAqoV4dw8jv5ch6NmigZ0aW9hxLTvqpnCczJQXjNd4vGjTqZTBfna3egzW5FL6K-xD93qjwaALIf3CpOjPS2ah2jq8aDj4cLDdsuJNvv4YtqKp_SuZxuAW6" width="305" /></a></div><br /><br /></div><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgX04uFKUySjKGYi0-t-x045onf_aDQu5C1lR0uvWWxSibxLGNkeAC9i0m5ilGWim9uz_xTfpMSfKxrLcOXVzNHe_W0ahLxLHHMufjNLTwJ91SVrVPScmO2vc8CBKx5NGuWEzaiLlYWpCJ4jWkeQuXOiJdg1b5dp85B-nCP3czo8y8q4QX3GsUIDdAG" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="804" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEgX04uFKUySjKGYi0-t-x045onf_aDQu5C1lR0uvWWxSibxLGNkeAC9i0m5ilGWim9uz_xTfpMSfKxrLcOXVzNHe_W0ahLxLHHMufjNLTwJ91SVrVPScmO2vc8CBKx5NGuWEzaiLlYWpCJ4jWkeQuXOiJdg1b5dp85B-nCP3czo8y8q4QX3GsUIDdAG" width="291" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi1KIUyXcO3LR2ZtVEfOoleUiirMwLxzy4lmnH7c1Eelo3tO9hxKFONJRRzpaK5e5lnxSvtCVmdYP86G-ghc00KOQiDx0twaHsI3wO4K9wQjL9LquSyRFXfCMvVTkvGAfK9DBqfB61Fj2IkmbdohjUaUpCh_hHuBzfMQc_rY4ZQbBRv2dl5MHBgA4bW" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="779" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEi1KIUyXcO3LR2ZtVEfOoleUiirMwLxzy4lmnH7c1Eelo3tO9hxKFONJRRzpaK5e5lnxSvtCVmdYP86G-ghc00KOQiDx0twaHsI3wO4K9wQjL9LquSyRFXfCMvVTkvGAfK9DBqfB61Fj2IkmbdohjUaUpCh_hHuBzfMQc_rY4ZQbBRv2dl5MHBgA4bW" width="300" /></a></div><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi414zP8UFt4tcS8wA8wW6g5Qn2QR4ZtVf0sn7-jsMHQ6LtYJug6tFPuqa2O-5Zqjm3N7MLbCgjwEZ_YdSSFveuJtnG-SINP5p9NddV9x0y0jA7szlEuuM06sAyn06kUVQvAshnuCsATKozwqNa3byq71bIGW--AkfTZ45WXgOO5_kGyuM7fsR6cPhn" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="799" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEi414zP8UFt4tcS8wA8wW6g5Qn2QR4ZtVf0sn7-jsMHQ6LtYJug6tFPuqa2O-5Zqjm3N7MLbCgjwEZ_YdSSFveuJtnG-SINP5p9NddV9x0y0jA7szlEuuM06sAyn06kUVQvAshnuCsATKozwqNa3byq71bIGW--AkfTZ45WXgOO5_kGyuM7fsR6cPhn" width="293" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgSVdUM8Q-SWXUGoMjCfXnbzgqi_JD_GNs3poBHc2znj4gudEVw1Z0woUF_Hwv8awo403nCqxwQ3GFgbpcjJFCGnqNrmrk0BVxIZ5Dl35jzJnqT5_DqKI6oGDjsn2jUK5zZlO5BCXWm9CJJWA1akQjY_bW7oMclP12W3rIpb1-Lp_7Fi1jJYkVuXlpT" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="510" data-original-width="975" height="167" src="https://blogger.googleusercontent.com/img/a/AVvXsEgSVdUM8Q-SWXUGoMjCfXnbzgqi_JD_GNs3poBHc2znj4gudEVw1Z0woUF_Hwv8awo403nCqxwQ3GFgbpcjJFCGnqNrmrk0BVxIZ5Dl35jzJnqT5_DqKI6oGDjsn2jUK5zZlO5BCXWm9CJJWA1akQjY_bW7oMclP12W3rIpb1-Lp_7Fi1jJYkVuXlpT" width="320" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi3Pe3pYzDXJd1-CwU-jWRZm4n-20ScpZTsSxuFezvD58u8RX27n-bEwX8a9YOUdPMKuY1BlEPYmxffKG5qq8uYvztCou4hiKwyJ2dDkDuAe7L7EEjINzlNjEDRuovLOSp7U7U59AwmK9_8esYlyecQXYzGDvbIPTPOjuK7W1i5lxb4ctymk2DqjaHf" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="544" data-original-width="975" height="179" src="https://blogger.googleusercontent.com/img/a/AVvXsEi3Pe3pYzDXJd1-CwU-jWRZm4n-20ScpZTsSxuFezvD58u8RX27n-bEwX8a9YOUdPMKuY1BlEPYmxffKG5qq8uYvztCou4hiKwyJ2dDkDuAe7L7EEjINzlNjEDRuovLOSp7U7U59AwmK9_8esYlyecQXYzGDvbIPTPOjuK7W1i5lxb4ctymk2DqjaHf" width="320" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjXhZRd44jpNd4gZN4ufo3o2e6Kovf1LS130-uUd_iI8uwdS8DQhMyumSIqO0O09oxdBZFSQnFZF3Twb9xe64XNfS5w2eT760hA8SZAYeEy6LPdEwpHg9jLdOLGm9GdX-5HMy1cY4pW6Ba_HP6R3lu6QdZAWT2md5qVTttqf3GDCRFPvc0MCJdNCNY1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="793" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEjXhZRd44jpNd4gZN4ufo3o2e6Kovf1LS130-uUd_iI8uwdS8DQhMyumSIqO0O09oxdBZFSQnFZF3Twb9xe64XNfS5w2eT760hA8SZAYeEy6LPdEwpHg9jLdOLGm9GdX-5HMy1cY4pW6Ba_HP6R3lu6QdZAWT2md5qVTttqf3GDCRFPvc0MCJdNCNY1" width="295" /></a></div><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiFhbgrxZcGLvRFpIffYU0ICN03r5jECHgfWHza44qD5LOg4AJ9FsgL0Mn6mHtRxiuukS8_AwdwzcZ7g6OlNTCVExQWe4a48YBw44zAV3v71E-qVFanUoyWTpyWmYtA33g6EMaL6LI1hw9CeDL0cUl7GjW8NAYqMnN1_XHbtEKgXxof3autpBmZcCeN" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="795" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEiFhbgrxZcGLvRFpIffYU0ICN03r5jECHgfWHza44qD5LOg4AJ9FsgL0Mn6mHtRxiuukS8_AwdwzcZ7g6OlNTCVExQWe4a48YBw44zAV3v71E-qVFanUoyWTpyWmYtA33g6EMaL6LI1hw9CeDL0cUl7GjW8NAYqMnN1_XHbtEKgXxof3autpBmZcCeN" width="294" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiw3zevfpUbhaMS-lJrXwjOsbkcmisdCuni3rGnKDDH45jXKYEiPN3RNoQv_mjsUD09zGHvGc4W7-2oaSCrgdjSeQr1CcB5KwFwPXjf5INWYdyaQ2Q3LqgBQlr4ZI1VnUfZcbYnldvZ71ybqrXHCmeKYAXfEkCLQxCQosYB5DaHWdiIHR08seX3V96H" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="511" data-original-width="639" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEiw3zevfpUbhaMS-lJrXwjOsbkcmisdCuni3rGnKDDH45jXKYEiPN3RNoQv_mjsUD09zGHvGc4W7-2oaSCrgdjSeQr1CcB5KwFwPXjf5INWYdyaQ2Q3LqgBQlr4ZI1VnUfZcbYnldvZ71ybqrXHCmeKYAXfEkCLQxCQosYB5DaHWdiIHR08seX3V96H" width="300" /></a></div><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhJwmHYj_3g_1UGibZJKNNnoTPkn0-C5K2s385ir9ULc6Syzt-8MtPUc_IJJjW99XsPDKj0XW3LMSpuOD_10kcc7z0ptCYMT-4oOOFKlQFwShSwGOk2iMOwhKghJTmnUvamKxBQ492QRipXdppCiLH_4D_PKjikx-iYgQwzz55GTuvtHt1J_DsfSdkJ" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="794" data-original-width="975" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEhJwmHYj_3g_1UGibZJKNNnoTPkn0-C5K2s385ir9ULc6Syzt-8MtPUc_IJJjW99XsPDKj0XW3LMSpuOD_10kcc7z0ptCYMT-4oOOFKlQFwShSwGOk2iMOwhKghJTmnUvamKxBQ492QRipXdppCiLH_4D_PKjikx-iYgQwzz55GTuvtHt1J_DsfSdkJ" width="295" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjmaAJRzINajs-qbuUvX3URhJ85WR4WjrjKtS29H2XCvpztluErVXD8txF0_ynNOBvua6bVHpjtRmj5ihkcIzQPs_OjiFatrLYGjnqS7uyNL5BLz5HdR-3abLXOig3Fs8e-N7YC9YktYyAKdgbZEGy65yZDktDOxHFr9n8OY5QPGykxPnp3lDGu8VqG" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="470" data-original-width="756" height="199" src="https://blogger.googleusercontent.com/img/a/AVvXsEjmaAJRzINajs-qbuUvX3URhJ85WR4WjrjKtS29H2XCvpztluErVXD8txF0_ynNOBvua6bVHpjtRmj5ihkcIzQPs_OjiFatrLYGjnqS7uyNL5BLz5HdR-3abLXOig3Fs8e-N7YC9YktYyAKdgbZEGy65yZDktDOxHFr9n8OY5QPGykxPnp3lDGu8VqG" width="320" /></a></div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /><br /><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><br /></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><br /></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b><br /></b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><b>Reference:</b></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><a href="goog_1856541741"><br /></a></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><a href="https://help.salesforce.com/s/articleView?id=sf.ms_composer_flows.htm&type=5">https://help.salesforce.com/s/articleView?id=sf.ms_composer_flows.htm&type=5</a></span></span></div><div><span style="font-family: Helvetica Neue;"><span style="font-size: 13px;"><br /></span></span></div></div></div></div>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-76073020783932529242022-08-16T13:59:00.006-07:002022-08-16T13:59:28.762-07:00Configure the Running User and Batch Size for Your Platform Event Trigger<p> Hi,</p><p>Here we are going to learn how to Configure the Running User and Batch Size for Your Platform Event Trigger.</p><p>By default, the trigger on Platform Event runs as the <b>Automated Process</b> system user with a batch size of <b>2,000</b> event messages. </p><p>By configuring a platform event trigger using <b>PlatformEventSubscriberConfig </b>in Metadata API or Tooling API we can override the running user and batch size of a Platform Event Apex Trigger.</p><p><b>Benefits:</b></p><p>Configuring the user and batch size enables you to bypass some limitations that sometimes arise from using the defaults.</p><p><b>Eg:</b></p><p>Record system and OwnerId fields are populated as the specified user. </p><p>And setting a batch size smaller than 2,000 can help avoid hitting Apex governor limits.</p><p>Run the code block as a specified user which is written under Platform Event Trigger.</p><p>How to Configure <b>PlatformEventSubscriberConfig?</b></p><p></p><ul style="text-align: left;"><li>Create a folder called<b> "PlatformEventSubscriberConfigs"</b></li><li>Create a file with the suffix<b> </b><span class="ph filepath" style="border-color: rgb(226, 232, 240); border-radius: 4px; border-style: solid; border-width: 0px; box-sizing: border-box; color: #181818; font-family: var(--dx-g-font-mono); font-size: var(--dx-g-text-sm); line-height: var(--dx-g-text-lg); padding: var(--dx-g-spacing-2xs);"><b>.platformEventSubscriberConfig </b>as shown below.</span></li></ul><div><span style="color: #181818;"><br /></span></div><p></p><div><span style="color: #181818;"><?xml version="1.0" encoding="UTF-8"?></span></div><div><span style="color: #181818;"><div><PlatformEventSubscriberConfig xmlns="http://soap.sforce.com/2006/04/metadata"></div><div> <platformEventConsumer><b>AccountEventTrigger</b></platformEventConsumer></div><div> <batchSize><b>200</b></batchSize></div><div> <masterLabel><b>AccountEventTriggerConfig</b></masterLabel></div><div> <user><b>user@example.com</b></user></div><div> <isProtected>false</isProtected></div><div></PlatformEventSubscriberConfig></div><div><br /></div><div>Here </div><div><b>AccountEventTrigger </b> is the name of the Platform Event Trigger</div><div><b>200 </b>is batch size (Batch size 1 is not recommended)</div><div><b>AccountEventTriggerConfig </b>is the name of the PlatformEventSubscriberConfig</div><div><br /></div><div>Create <b>package.xml</b> as shown below.</div><div><br /></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="yes"?></div><div><Package xmlns="http://soap.sforce.com/2006/04/metadata"> </div><div> <types></div><div> <members><b>AccountTriggerEventConfig</b></members></div><div> <name>PlatformEventSubscriberConfig</name> </div><div> </types></div><div> <version>55.0</version></div><div></Package></div></div><div><br /></div><div>Once we create both as shown below then create any folder include the following and zip.</div><div><br /></div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiH3iSWYA9SgEQgddRPlu1E6FBiL1yv1wzdtV2Tm2kY6MD0jfShjjZ4gpyi3JNeFgiJOq_3UxkCj5DXP_GPrF7hwgguQ-mUiOjW9wLvz0iLNkyv6Lx0I5s9nwNBtZvxtY4zqWPTF0Xb_L44x0lOzYed83oaKI4OeP8ttnJAS-FmT8gvAU9xoQx3rnWp" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="95" data-original-width="298" height="102" src="https://blogger.googleusercontent.com/img/a/AVvXsEiH3iSWYA9SgEQgddRPlu1E6FBiL1yv1wzdtV2Tm2kY6MD0jfShjjZ4gpyi3JNeFgiJOq_3UxkCj5DXP_GPrF7hwgguQ-mUiOjW9wLvz0iLNkyv6Lx0I5s9nwNBtZvxtY4zqWPTF0Xb_L44x0lOzYed83oaKI4OeP8ttnJAS-FmT8gvAU9xoQx3rnWp" width="320" /></a></div><br /><br /></div><div><br /></div><div>Now open Workbench then chooses the Deploy option and then select the zip.</div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhvz_wZPkOjGkcAExf45R0tCSh_NqoMBN4ZgcjrCxG-dcmq-uJyr5M8vJr5r_zvNprRWd7NGhNGQC3mGzpURRMPRuBIvWWSDVERCkwWprO04VEVHTts4pzQHcsTdH1Qnmw5znn7fTzT6ZehJbi7fLG8e4owH2z98UOBrYL8MxENvGh0rPAno2ednocG" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="472" data-original-width="503" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEhvz_wZPkOjGkcAExf45R0tCSh_NqoMBN4ZgcjrCxG-dcmq-uJyr5M8vJr5r_zvNprRWd7NGhNGQC3mGzpURRMPRuBIvWWSDVERCkwWprO04VEVHTts4pzQHcsTdH1Qnmw5znn7fTzT6ZehJbi7fLG8e4owH2z98UOBrYL8MxENvGh0rPAno2ednocG" width="256" /></a></div><br /><br /></div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhs_XCJJGQZmNZOK3uv0jTKCj_d5MIsL2pdiehQj_w1z4w3mtag_ZnrDHkf1amSRtoyAnjbS8HaZie0cTQc9s00hD3B-TE03RNMSPEE4_bELe1aa0AuymLrl39OOJvfhuk-Zfwc9K2PWbz8mxQXjJ_KaP7y55GXSdIzYp1Q2x22wQ26NJY7n8Krm1bB" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="666" data-original-width="1016" height="210" src="https://blogger.googleusercontent.com/img/a/AVvXsEhs_XCJJGQZmNZOK3uv0jTKCj_d5MIsL2pdiehQj_w1z4w3mtag_ZnrDHkf1amSRtoyAnjbS8HaZie0cTQc9s00hD3B-TE03RNMSPEE4_bELe1aa0AuymLrl39OOJvfhuk-Zfwc9K2PWbz8mxQXjJ_KaP7y55GXSdIzYp1Q2x22wQ26NJY7n8Krm1bB" width="320" /></a></div><div><br /></div><div>Now click on Deploy then it will be successful.</div><div><br /></div><div><br /></div><div><b>Reference:</b></div><div>https://help.salesforce.com/s/articleView?id=release-notes.rn_messaging_trigger_config.htm&type=5&release=230</div><div><br /></div><div>https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_platformeventsubscriberconfig.htm</div><div><br /></div><div><br /></div><br /><br /></div></span></div>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-45451509694391703372022-08-02T10:36:00.002-07:002022-08-02T10:36:15.297-07:00How to get the current recordId in LWC quick action?Hi,<div><br /></div><div>To get the current recordId when we create a quick action with LWC we have to use the below code snippet.</div><div><br /></div><div><br /></div><div><br /></div><div><pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x language-javascript" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="background-color: white; border-radius: 0.25rem; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #000814; direction: ltr; font-family: Consolas, "Bitstream Vera Sans Mono", Courier, monospace; font-size: 16px; hyphens: none; line-height: 1.2em; margin-bottom: 0.5em; margin-top: 0.5em; max-width: 100%; overflow: auto; padding: 1em; tab-size: 4; word-break: normal;"><code class=" language-javascript" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; direction: ltr; font-family: Consolas, "Bitstream Vera Sans Mono", Courier, monospace; font-size: 1em; hyphens: none; line-height: 1.2em; tab-size: 4; word-break: normal; word-spacing: normal;">_recordId<span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">;</span>
<span class="token keyword" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #00674d;">set</span> <span class="token function" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #be2f7e;">recordId</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">(</span><span class="token parameter" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">recordId</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">)</span> <span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">{</span>
<span class="token keyword" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #00674d;">if</span> <span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">(</span>recordId <span class="token operator" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">!==</span> <span class="token keyword" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #00674d;">this</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">.</span>_recordId<span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">)</span> <span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">{</span>
<span class="token keyword" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #00674d;">this</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">.</span>_recordId <span class="token operator" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">=</span> recordId<span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box;">;</span></code></pre></div><div><br /></div><div><br /></div><div><b>Note:</b></div><div>LWC quick actions don’t pass in recordId in <b>connectedCallback()</b></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><b>Reference</b>:</div><div><a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions_screen">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions_screen</a></div><div><br /></div><div><br /></div>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-29283070611969276292022-05-04T04:12:00.004-07:002022-05-04T04:13:09.465-07:00How to navigate to Standard Edit record page LWC<p> Hi,</p><p>The following code snippet helps to navigate to the Standard edit record page.</p><p><br /></p><p><b>Code Snippet:</b></p><p> this[NavigationMixin.Navigate]({ </p><p> type: 'standard__recordPage',</p><p> attributes: {</p><p> recordId: <b>this.recordId</b>,</p><p> objectApiName: '<b>Account</b>',</p><p> actionName: '<b>edit</b>', </p><p> },</p><p> </p><p> state: {</p><p> nooverride: 1,</p><p> backgroundContext: '/lightning/r/Account/' + <b>this.recordid</b> + '/view' </p><p> </p><p> }</p><p> </p><p> });</p><p> eval("$A.get('e.force:refreshView').fire();");</p><p><span style="white-space: pre;"> </span>}</p><p><br /></p><p><b>Reference: </b></p><p><a href="https://developer.salesforce.com/docs/component-library/overview/components">https://developer.salesforce.com/docs/component-library/overview/components</a></p><p><b><br /></b></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-82233645877658892902022-05-04T04:05:00.009-07:002022-05-04T04:06:05.064-07:00How to auto populate default values when New button is overridden with lwc<p> Hi,</p><p>The following js code snippet helps to auto-populate values when the <b>New </b>button is overridden.</p><p><br /></p><p><b>Code Snippet:</b></p><p><b> </b></p><p> const defaultValues = encodeDefaultFieldValues({</p><p> Name: 'Salesforce Techbook Foundation', </p><p> }); </p><p> this[NavigationMixin.Navigate]({</p><p> type: 'standard__objectPage',</p><p> attributes: {</p><p> objectApiName: '<b>Account</b>',</p><p> actionName: '<b>new</b>'</p><p> },</p><p> state: {</p><p> nooverride: '<b>1</b>',</p><p> recordTypeId: <b>this.recordtypId</b>,</p><p> defaultFieldValues: <b>defaultValues</b></p><p> }</p><p> });</p><p><span style="white-space: pre;"> </span>eval("$A.get('e.force:refreshView').fire();");</p><p><br /></p><p><b>Reference : </b></p><p><a href="https://developer.salesforce.com/docs/component-library/overview/components">https://developer.salesforce.com/docs/component-library/overview/components</a></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-86304642428738664122022-05-03T06:57:00.004-07:002022-05-03T06:57:23.595-07:00Main Components to be retrieved for deploying a Community <p> Hi,</p><p>When we have to deploy a community to another Salesforce org that is not connected then the following components have to be retrieved along with the other necessary components like Apex Classes, Visualforce page, Aura, etc., based on our project.</p><p> <?xml version="1.0" encoding="UTF-8"?></p><p><Package xmlns="http://soap.sforce.com/2006/04/metadata"></p><p> <types> </p><p> <members>*</members></p><p> <name>ContentAsset</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>CustomSite</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>Audience</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>Network</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>SiteDotCom</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>NetworkBranding</name></p><p> </types></p><p> <types> </p><p> <members>*</members></p><p> <name>CustomSite</name></p><p> </types></p><p> <types></p><p> <members>*</members></p><p> <name>Profile</name></p><p> </types> </p><p> <types></p><p> <members>*</member></p><p> <name>CustomLabel</name></p><p> </types></p><p> <types></p><p> <members>*</member></p><p> <name>Flow</name></p><p> </types></p><p> <types></p><p> <members>*</member></p><p> <name>Community</name></p><p> </types></p><p> <types></p><p> <members>*</member></p><p> <name>CommunityTemplateDefinition</name></p><p> </types></p><p> <types></p><p> <members>*</member></p><p> <name>CommunityThemeDefinition</name></p><p> </types></p><p> <version>53.0</version></p><p></Package></p><p><br /></p><p><b>Reference:</b></p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.220.0.communities_dev.meta/communities_dev/networks_migrate_overview.htm">https://developer.salesforce.com/docs/atlas.en-us.220.0.communities_dev.meta/communities_dev/networks_migrate_overview.htm</a></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-41873620923431429502022-04-26T13:03:00.005-07:002022-04-26T13:03:57.620-07:00How to Encode a string to Base64 format in Apex<p> Hi ,</p><p>Here we are going to learn how to encode a string to Base64 format in Apex </p><p>Eg:</p><p>String urlparam = 'Salesforce Techbook';</p><p>String urlString = EncodingUtil.base64Encode(Blob.valueof(urlparam));</p><p>System.debug(urlString);</p><p><b>Output:</b> U2FsZXNmb3JjZSBUZWNoYm9vaw==</p><p><br /></p><p>Reference: </p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_restful_encodingUtil.htm">https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_restful_encodingUtil.htm</a></p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_encoding.htm">https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_encoding.htm</a></p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-78886297141401544072022-04-24T10:47:00.007-07:002022-04-24T10:47:59.496-07:00Generate JSON with Map in apex<p> Hi ,</p><p>Here we are going to learn how to generate JSON with the help of Map in apex.</p><p>Let's take the following JSON and see how to generate the same with the help of Map in apex.</p><p><b>JSON:</b></p><p>{</p><p> "lastname":"SF",</p><p> "firstname":"Techbook",</p><p> "account":{</p><p> "name":"Salesforce Techbook",</p><p> "address":{</p><p> "shippingstreet":"test_street",</p><p> "shippingcity":"test_city"</p><p> }</p><p> },</p><p> "phone":"12454565",</p><p> "mailingcity":"test_cont_City" </p><p>}</p><p><b>Let's try to generate the above JSON with Map:</b></p><p><b>//Preparation of outer JSON object</b></p><p>Map<String,Object> jsonGenMap = new Map<String,Object>();</p><p>jsonGenMap.put('lastname','SF');</p><p>jsonGenMap.put('firstname','Techbook');</p><p>jsonGenMap.put('phone','12454565');</p><p>jsonGenMap.put('mailingcity','test_cont_City');</p><p><b>//Preparation of "account" JSON object</b></p><p>Map<String,Object> jsonActMap = new Map<String,Object>();</p><p>jsonActMap.put('name','Salesforce Techbook');</p><p>Map<String,Object> jsonActAddressMap = new Map<String,Object>();</p><p>jsonActAddressMap.put('shippingstreet','test_street');</p><p>jsonActAddressMap.put('shippingcity','test_city');</p><p>jsonActMap.put('address',jsonActAddressMap);</p><p>jsonGenMap.put('account',jsonActMap);</p><p><b>//Generation of JSON from the above with the help of "serialize" method under "JSON" class.</b></p><p>string jsonstring = JSON.serialize(jsonGenMap);</p><p>System.debug(jsonstring);</p><p><br /></p><p><b>References:</b></p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Json.htm">https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Json.htm</a></p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-62214451281755699232022-04-02T10:36:00.000-07:002022-04-02T10:36:00.096-07:00JSON parsing with Map Sample for getting list of values<p> Hi,</p><p>Here we are going to learn how to get the values from an array that has plain values instead of a list of JSON objects.</p><p>Let's take the example below.</p><p>Here we have "langaugeskills" array in the following JSON String with the values "English,Hindi, Telugu". To capture those values we have to follow the below approach.</p><p><br /></p><p>String jsonStr =<i> '{"LastName": "Balu","langaugeskills": ["English","Hindi","Telugu"]}';</i></p><p>Map<String,Object> jsonMap = (Map<String,Object>)JSON.deserializeUntyped(jsonStr);</p><p>System.debug('JSON :::'+jsonMap);</p><p><i>List<Object> langSkillsList = (List<Object>)jsonMap.get('langaugeskills');</i></p><p>System.debug('---->'+langSkillsList);</p><p>for(Object langStr:langSkillsList){</p><p> System.debug((String)langStr);</p><p>}</p><p><br /></p><p><b>output:</b></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgk-_WJNK7M6sAIRRTjh9LyFWIngvIXAoKzbWCRNxgntHpGIyaTzZTQ7UsI0MgAKqfI2GGJKRxL9TGPZUKMpdB-Rrk-kTI4tp-_hf6C4Z8VXN26-MZWXbu9xSWU_VBeUXjjHegAz8QjAnrpuYAsTO5MAVcQ5k4xEa0_LrQLevBrnoXsam_OU2Tye263" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="125" data-original-width="457" height="88" src="https://blogger.googleusercontent.com/img/a/AVvXsEgk-_WJNK7M6sAIRRTjh9LyFWIngvIXAoKzbWCRNxgntHpGIyaTzZTQ7UsI0MgAKqfI2GGJKRxL9TGPZUKMpdB-Rrk-kTI4tp-_hf6C4Z8VXN26-MZWXbu9xSWU_VBeUXjjHegAz8QjAnrpuYAsTO5MAVcQ5k4xEa0_LrQLevBrnoXsam_OU2Tye263" width="320" /></a></div><br /><br /><p></p><p><b>Reference:</b></p><p><a href="https://salesforce-walker.blogspot.com/2021/04/json-parsing-using-map-sample.html">https://salesforce-walker.blogspot.com/2021/04/json-parsing-using-map-sample.html</a></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-28387901508343629412022-03-23T13:43:00.001-07:002022-03-23T13:43:11.157-07:00How to display Translation from a Picklist in LWC<p> Hi,</p><p>Here we are going to learn how to display translations for the Picklist values in LWC.</p><p>Here let's take the picklist field "<span style="background-color: #f3f3f3; color: #181818; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 13px; white-space: pre-line;">LeadSource</span>"</p><p><b>displayLead.html :</b></p><p><template></p><p> <template if:true={isshowCard}></p><p> <lightning-card></p><p><br /></p><p> <h3 slot="title" style="color: red;"> </p><p> <lightning-icon icon-name="standard:lead" size="small"></lightning-icon> &nbsp;</p><p> Lead Record</p><p> </h3></p><p> </p><p> <div></p><p> <lightning-layout></p><p> <lightning-layout-item padding="around-small"></p><p> <div class="header-column"></p><p> <p class="field-title"></p><p> <b>Lead Name<br /> </b></p><p> </p></p><p> <p style="color: rgb(255, 81, 0);"> {leadname}</p></p><p> </div></p><p> </lightning-layout-item></p><p> <lightning-layout-item padding="around-small"></p><p> <div class="header-column"></p><p> <p class="field-title"></p><p> <b>Lead Source <br /></b></p><p> </p></p><p> <p>{leadsource}</p></p><p> </div></p><p> </lightning-layout-item></p><p> </lightning-layout></p><p> </div></p><p> </lightning-card></p><p> </template></p><p></p><p></template></p><p><br /></p><p><br /></p><p><b>displayLead.js :</b></p><p>import { LightningElement,api,wire} from 'lwc';</p><p>import LEAD_OBJECT from '@salesforce/schema/Lead';</p><p>import LEAD_SOURCE from "@salesforce/schema/Lead.LeadSource";</p><p>import LEAD_NAME from "@salesforce/schema/Lead.Name";</p><p>import { getRecord } from 'lightning/uiRecordApi';</p><p>const FIELDS = [LEAD_SOURCE, LEAD_NAME];</p><p>export default class DisplayLead extends LightningElement {</p><p> @api recordId;</p><p> leadRecord; </p><p><span style="white-space: pre;"> </span>leadsource;</p><p><span style="white-space: pre;"> </span>leadname;</p><p> @wire(getRecord, { recordId: '$recordId', fields: FIELDS })</p><p> leadRecord({ error, data }) {</p><p> if (data) {</p><p> this.leadRecord = data; </p><p> //Here <b>displayValue </b>helps to display translation for picklist <b>LeadSource </b></p><p> this.leadsource = this.accountRec.fields.LeadSource.<b>displayValue</b>;</p><p> this.leadname =this.accountRec.fields.Name.value;</p><p> }</p><p> }</p><p>}</p><p><b>displayLead.js-meta.xml</b></p><p><?xml version="1.0" encoding="UTF-8"?></p><p><LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"></p><p> <apiVersion>52.0</apiVersion></p><p> <isExposed>true</isExposed></p><p> <targets></p><p> <target>lightning__RecordPage</target></p><p> </targets></p><p></LightningComponentBundle></p><p><br /></p><p><b>Reference:</b></p><p>https://developer.salesforce.com/docs/component-library/documentation/en/lwc</p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-41267055969313804342022-01-13T07:39:00.003-08:002022-01-13T08:05:29.562-08:00How to add a connected app to a second-generation(2GP) managed package.<p></p><ol style="text-align: left;"><li>Create a Connected App in Salesforce instance where we maintain namespace.</li><li><span face=""Salesforce Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #0b0b0b; font-size: 16px;">Create a first-generation managed package (1GP) and add the connected app. </span>It’s fine if the connected app is the only component in the package. Always use the same namespace as the 2GP package for the 1GP package.</li><li><span face=""Salesforce Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #0b0b0b; font-size: 16px;">Take note of the version number of the connected app; this number is needed later.</span></li><li> Upload the 1GP Package to create a package version.</li><li><span face=""Salesforce Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #0b0b0b; font-size: 16px;">Promote the 1GP version to the released state.</span></li><li><span face=""Salesforce Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #0b0b0b; font-size: 16px;">Promoting the 1GP version allows the connected app to be included in a second-generation managed package. We don’t need to install the 1GP version into an org.</span></li><li><span face=""Salesforce Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"" style="color: #0b0b0b; font-size: 16px;">Now in our source code navigate to folder "connectedApps" where we are trying to generate 2GP Package</span></li></ol><div><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #0b0b0b;"><br /></span></div><div><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #0b0b0b;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-xVYx24pDxq8/YeBHOvRbrhI/AAAAAAAATpQ/blYy-vF_EjoSIM7875Cu_Mjl0fkwsxa_gCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="341" data-original-width="538" height="203" src="https://lh3.googleusercontent.com/-xVYx24pDxq8/YeBHOvRbrhI/AAAAAAAATpQ/blYy-vF_EjoSIM7875Cu_Mjl0fkwsxa_gCNcBGAsYHQ/image.png" width="320" /></a></div><div><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #0b0b0b;"><br /></span></div><br />create an XML file with <b><connectedAppName>.connectedApp-meta.xml</b> </span></div><div><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji" style="color: #0b0b0b;"><br /></span></div><div><span style="color: #0b0b0b;">and the body of the XML file should be as shown below.</span></div><div><span style="color: #0b0b0b;"><br /></span></div><div><span style="color: #0b0b0b;"><div><ConnectedApp xmlns="http://soap.sforce.com/2006/04/metadata"></div><div> <developerName><b><namespace>__<connected_app_Name></b></developerName></div><div> <label>A Connected App</label></div><div> <version>1.0</version></div><div></ConnectedApp></div><div><br /></div><div>Now generate a 2GP package and promote. Then the connected app is automatically added to your 2GP Package.</div><div><br /></div><div><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji">The version specified in the source file is the version number of the connected app. Use decimal formatting when specifying the version number. The version number must match the version number of the connected app before it was added to the 1GP managed package.</span></div><div><br /></div><div><b>Note:</b></div><div><br /></div><div><span class="dx-callout-body dx-text-body-3" style="background-color: #eef4ff; border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; line-height: 20px;"><slot style="border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box;"><p style="border-color: rgb(226, 232, 240); border-style: solid; border-width: 0px; box-sizing: border-box; line-height: var(--dx-g-spacing-lg); margin-bottom: var(--dx-g-spacing-md); margin-left: 0px; margin-right: 0px; margin-top: var(--dx-g-spacing-md);"><span face="Salesforce Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji">When you add a connected app to a 1GP package and upload the package, the version number of the connected app is auto-incremented. For example, when version 1.0 of a connected app is added to a 1GP package, the package version increments the version number of the connected app from 1.0 to 2.0. When creating the source file for your 2GP package, specify the version number of the connected app before it was uploaded into a 1GP package, in this case, 1.0.</span></p><div><br /></div></slot></span></div><div><br /></div><div><b>Reference:</b></div><div><b><br /></b></div><div><b>https://developer.salesforce.com/docs/atlas.en-us.224.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_connected_app.htm</b></div><div><b><br /></b></div></span></div><p></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com1tag:blogger.com,1999:blog-6070445220956351850.post-59242904898437017752022-01-05T10:17:00.002-08:002022-01-05T10:29:43.120-08:00How to show user license information on report<p> Hi ,</p><p>We are going to learn how to show user license information in a report.</p><p><span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: white; box-sizing: border-box; color: #080707; font-family: "Salesforce Sans"; font-size: 16px; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px; text-align: justify;">In Lightning Experience:</span></p><p><span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: white; box-sizing: border-box; color: #080707; font-family: "Salesforce Sans"; font-size: 16px; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px; text-align: justify;"><br /></span></p><p><span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: white; box-sizing: border-box; color: #080707; font-family: "Salesforce Sans"; font-size: 16px; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px; text-align: justify;"></span></p><ol c-hcknowledgearticle_hcknowledgearticle="" style="background-color: white; box-sizing: border-box; color: #080707; font-family: "Salesforce Sans"; font-size: 16px; line-height: 24px; list-style-image: none; list-style-position: inside; margin: 0px; padding: 0px; text-align: justify;"><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click the gear icon, and click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Setup</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Enter <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; line-height: 24px;">Report Types</span> in the Quick Find box, and select <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Report Types</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">New Custom Report Type</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">In the Primary Object field, select <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Users</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Enter a Name, Label, Description, and Category for your new report type</li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Select a deployment status</li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Next</span>, then <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Save</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Edit Layout</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Under the 'View' dropdown box, click the <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Add fields related via lookup</span> link</li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Profile</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Select <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">User License</span>, then click ‘<span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">view related fields</span>’</li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Select <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Name</span>, <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Status</span>, and <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Total Licenses</span>, then click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">OK</span></li><li c-hcknowledgearticle_hcknowledgearticle="" style="box-sizing: border-box; margin-left: 40px;">Click <span c-hcknowledgearticle_hcknowledgearticle="" style="background-color: transparent; box-sizing: border-box; font-weight: var(--lwc-fontWeightBold,700); line-height: 24px;">Save</span></li></ol><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><br /></b></span></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-kPT5r6hm89Q/YdXhc_Y5VKI/AAAAAAAATZY/mN4vo_gz2lMWh0aOib6AtDf9105xamjXgCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="751" data-original-width="1901" height="126" src="https://lh3.googleusercontent.com/-kPT5r6hm89Q/YdXhc_Y5VKI/AAAAAAAATZY/mN4vo_gz2lMWh0aOib6AtDf9105xamjXgCNcBGAsYHQ/image.png" width="320" /></a></div><br /><br /></b></span></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><br /></b></span></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-ndeygUgi1Z4/YdXhmpQBtHI/AAAAAAAATZc/YNJkQ_Uta90z7IZtSygcr5tJ5ujVTfY5QCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="653" data-original-width="1871" height="112" src="https://lh3.googleusercontent.com/-ndeygUgi1Z4/YdXhmpQBtHI/AAAAAAAATZc/YNJkQ_Uta90z7IZtSygcr5tJ5ujVTfY5QCNcBGAsYHQ/image.png" width="320" /></a></div><br /><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-1hJCIqVN1HY/YdXh9e2QWBI/AAAAAAAATZo/hwEyA5FnEWsZ5Z_b9zUtxr4oNzCZl9UbQCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="926" data-original-width="1886" height="157" src="https://lh3.googleusercontent.com/-1hJCIqVN1HY/YdXh9e2QWBI/AAAAAAAATZo/hwEyA5FnEWsZ5Z_b9zUtxr4oNzCZl9UbQCNcBGAsYHQ/image.png" width="320" /></a></div><br /><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><br /><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-g9af8hEivgw/YdXiN9Xm1JI/AAAAAAAATZ0/weSFh-VJIy0cyYAXLcew4xpojIoiXu8DwCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="683" data-original-width="1570" height="139" src="https://lh3.googleusercontent.com/-g9af8hEivgw/YdXiN9Xm1JI/AAAAAAAATZ0/weSFh-VJIy0cyYAXLcew4xpojIoiXu8DwCNcBGAsYHQ/image.png" width="320" /></a></div><br /><br /><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-RPEHrFSLN4M/YdXiaPUEuKI/AAAAAAAATaA/wPNIpjZqOo4M7az9R725Puy2fOcfbayHwCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="636" data-original-width="1552" height="131" src="https://lh3.googleusercontent.com/-RPEHrFSLN4M/YdXiaPUEuKI/AAAAAAAATaA/wPNIpjZqOo4M7az9R725Puy2fOcfbayHwCNcBGAsYHQ/image.png" width="320" /></a></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-j-cjdLPgTKo/YdXioqa_b3I/AAAAAAAATaM/PtcPe4Q9dhgvjYngeH3zmLYyIhsJs7f0ACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="735" data-original-width="1555" height="151" src="https://lh3.googleusercontent.com/-j-cjdLPgTKo/YdXioqa_b3I/AAAAAAAATaM/PtcPe4Q9dhgvjYngeH3zmLYyIhsJs7f0ACNcBGAsYHQ/image.png" width="320" /></a></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><a href="https://lh3.googleusercontent.com/-hzTGjTUPLhw/YdXiwX8acWI/AAAAAAAATaU/2rQ90ObaEJw4hgAVq7jLULSbjNDaxqcMwCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="742" data-original-width="1552" height="153" src="https://lh3.googleusercontent.com/-hzTGjTUPLhw/YdXiwX8acWI/AAAAAAAATaU/2rQ90ObaEJw4hgAVq7jLULSbjNDaxqcMwCNcBGAsYHQ/image.png" width="320" /></a></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-OtoF0fFRmh4/YdXjDe9IGgI/AAAAAAAATag/erhoSe_ipUssoZuQ5R9MAuLE03vGbVhhACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="693" data-original-width="1535" height="144" src="https://lh3.googleusercontent.com/-OtoF0fFRmh4/YdXjDe9IGgI/AAAAAAAATag/erhoSe_ipUssoZuQ5R9MAuLE03vGbVhhACNcBGAsYHQ/image.png" width="320" /></a></div><br /><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-Zdc663x1b8k/YdXjMl8gA6I/AAAAAAAATak/KZ0V5a5de4ETz42J6GUrDChW24kCb6BwACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="677" data-original-width="752" height="240" src="https://lh3.googleusercontent.com/-Zdc663x1b8k/YdXjMl8gA6I/AAAAAAAATak/KZ0V5a5de4ETz42J6GUrDChW24kCb6BwACNcBGAsYHQ/image.png" width="267" /></a></div><br /><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div><div class="separator" style="clear: both; font-weight: bold; text-align: center;"><br /></div>Once the above steps are completed we can generate reports by using the above report type with report builder.<br /><br /></div></div></div></span></div><div style="text-align: justify;"><b style="color: #080707; font-family: "Salesforce Sans";">Reference: </b></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><a href="https://help.salesforce.com/s/articleView?id=000337772&type=1">https://help.salesforce.com/s/articleView?id=000337772&type=1</a></b></span></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><br /></b></span></div><div style="text-align: justify;"><span style="color: #080707; font-family: Salesforce Sans;"><b><br /></b></span></div>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-47720971938043913712021-11-16T13:17:00.001-08:002021-11-16T13:17:30.206-08:00How to get Object Translation and Custom Label Translations<p> Hi,</p><p>Here we are going to learn how to retrieve Object Translations and Custom Label Translations.</p><p><br /></p><p><b>Object Translations with Fields:</b></p><p><br /></p><p> <types></p><p> <members>Account-de</members></p><p><span style="white-space: pre;"><span> </span><span> </span><span> </span><span> <members>Department__c_de</members></span> </span></p><p> <name>CustomObjectTranslation</name></p><p> </types></p><p> <types></p><p> <members>Account.Status__c</members></p><p><span style="white-space: pre;"> <members>Department__c</span>.Type__c<span style="white-space: pre;"></members> </span></p><p> <name>CustomField</name></p><p> </types></p><p>In the above we are trying to retrieve Object Translations for the German Language (de) for Account,Department__c with Fields Translations "Account.Status__c","<span style="white-space: pre;">Department__c</span>.Type__c".</p><p><br /></p><p><b>Custom Label Translation:</b></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <types></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <members>*</members></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <name>CustomLabels</name></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> </types></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <types></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <members>*</members></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> <name>Translations</name></span></p><p><span style="color: var(--black-800); font-family: var(--ff-mono); font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> </types></span></p><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><b>Reference:</b></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Times New Roman;">https://help.salesforce.com/s/articleView?id=sf.cl_translate_edit.htm&type=5</span></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Times New Roman;">https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_customobjecttranslation.htm</span></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;">https://salesforce.stackexchange.com/questions/310123/retrieve-custom-translations-for-a-custom-label-via-the-metadata-api</pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><br /></pre></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><br /></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Times New Roman;"><br /></span></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Times New Roman;"><br /></span></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><br /></code></pre><p><br /></p><p><br /></p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-19107443255099906952021-10-12T13:09:00.005-07:002021-10-12T13:13:48.399-07:00Javascript filter() method<p> Hi,</p><p>Here we are going to learn how to filter the objects in an array with filter() method.</p><p></p><ul style="text-align: left;"><li><span style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">The filter() method creates an array filled with all array elements that pass a test (provided by a function).</span></span></li><li><span style="color: #1b1b1b; letter-spacing: -0.0444444px;">filter() does not execute the function for empty array elements.</span></li><li><span style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">filter() does not change the original array.</span></span></li></ul><p></p><p><span face="arial, x-locale-body, sans-serif" style="letter-spacing: -0.0444444px;"><span style="background-color: white; color: #1b1b1b;"></span></span></p><div><br /></div><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="background-color: white; letter-spacing: -0.0444444px;"><b>Example 1:</b></span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="background-color: white; letter-spacing: -0.0444444px;">Prepare an array with words which has a length greater than 3 from the following arrray.</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">let words = ['elephant', 'cat', 'dog', 'tiger', 'lion'];</span></p><p><b>Without Filter method:</b></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="background-color: white; letter-spacing: -0.0444444px;">let wordsarray = [];</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">for (let i = 0; i < </span></span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">words</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">.length; i++) {</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> if (</span></span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">words</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">[i].</span></span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">length</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">> 3) {</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> </span></span><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;">wordsarray</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">.push(</span></span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">words</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">[i]</span></span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">);</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;"> }</span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="background-color: white; letter-spacing: -0.0444444px;"></span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">}</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">console.log(</span><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;">wordsarray</span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;">);</span></p><p><b>Output:</b></p><p><span style="background-color: white; color: #333333; font-family: monospace; font-size: 14px; white-space: pre;">["elephant", "tiger", "lion"]</span></p><p><span style="background-color: white; color: #333333; font-family: monospace; font-size: 14px; white-space: pre;"><br /></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;"><b>With filter method:</b></span></p><p><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;">let wordsarray = [];</span></p><p><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;">wordsarray</span><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;"> </span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b; letter-spacing: -0.0444444px;"> = words.filter(word => word.length > 3);</span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">console.log(</span></span><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;">wordsarray</span><span face="arial, x-locale-body, sans-serif" style="background-color: white; color: #1b1b1b; letter-spacing: -0.0444444px;"> </span><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">);</span></span></p><p><b>Output:</b></p><p><span style="background-color: white; color: #333333; font-family: monospace; font-size: 14px; white-space: pre;">["elephant", "tiger", "lion"]</span></p><p><span style="background-color: white; color: #333333; font-family: monospace; font-size: 14px; white-space: pre;"><br /></span></p><p><b style="color: #1b1b1b; font-family: arial, x-locale-body, sans-serif; letter-spacing: -0.0444444px;">Example 2:</b></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"><b> </b>Find the cities whose population is greater than 30000 from the following array.</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">let cities = [</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> {name: 'Hyderabad', population: 40000},</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> {name: 'Karnool', population: 36000},</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> {name: 'Kadapa', population: 37000},</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> {name: 'Tirupati', population: 29000} </span></span></p><p></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">];</span></span></p><p><b>Without Filter method:</b></p><p>let bigCities = [];</p><p>for (let i = 0; i < cities.length; i++) {</p><p> if (cities[i].population > 30000) {</p><p> bigCities.push(cities[i]);</p><p> }</p><p>}</p><p></p><p>console.log(bigCities);</p><p><b>Output:</b></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">[</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Hyderabad", population: 40000 },</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Karnool", population: 36000 },</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Kadapa", population: 37000 }</span></span></p><p></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">]</span></span></p><p><b style="color: #1b1b1b; font-family: arial, x-locale-body, sans-serif; letter-spacing: -0.0444444px;">With filter method:</b></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">let bigCities = cities.filter(e => {</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> return e.population > 30000;</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">});</span></span></p><p></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">console.log(bigCities);</span></span></p><p><b>Output:</b></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">[</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Hyderabad", population: 40000 },</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Karnool", population: 36000 },</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"> { name: "Kadapa", population: 37000 }</span></span></p><p></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">]</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"><br /></span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"><b>Reference:</b></span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter</span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"><br /></span></span></p><p><span face="arial, x-locale-body, sans-serif" style="color: #1b1b1b;"><span style="letter-spacing: -0.0444444px;"><br /></span></span></p><p><b style="color: #1b1b1b; font-family: arial, x-locale-body, sans-serif; letter-spacing: -0.0444444px;"><br /></b></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-67306143498127454702021-09-25T10:47:00.005-07:002021-09-25T10:53:38.451-07:00Custom Lookup with multiple record selection lwc<p> Hi,</p><p>Here are we are going to learn how to design custom lookup with multi-selection with the help of <span style="background-color: #1e1e1e; color: #569cd6; font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;">lightning-pill-container.</span></p><p>For designing custom lookup, we are simply using CSS from <b>Lightning Design System</b> here.</p><p><b>customlookup.html</b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-p-horizontal_small"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"row"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-form-element"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-form-element__control"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-combobox_container"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>class</span>=<span style="color: #ce9178;">"slds-combobox slds-dropdown-trigger </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>slds-dropdown-trigger_click"</span> <span style="color: #9cdcfe;">aria-expanded</span>=<span style="color: #ce9178;">"false"</span></div><div> <span style="color: #9cdcfe;">aria-haspopup</span>=<span style="color: #ce9178;">"listbox"</span> <span style="color: #9cdcfe;">role</span>=<span style="color: #ce9178;">"combobox"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-combobox__form-element </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>slds-input-has-icon slds-input-has-icon_right"</span></div><div> <span style="color: #9cdcfe;">role</span>=<span style="color: #ce9178;">"none"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input</span> <span style="color: #9cdcfe;">type</span>=<span style="color: #ce9178;">"text"</span> <span style="color: #9cdcfe;">id</span>=<span style="color: #ce9178;">"combobox-id-16"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>value</span>=<span style="color: #ce9178;">{accountName}</span></div><div> <span style="color: #9cdcfe;">onchange</span>=<span style="color: #ce9178;">{handleKeyChange}</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>onkeydown</span>=<span style="color: #ce9178;">{handleClick}</span> <span style="color: #9cdcfe;">onclick</span>=<span style="color: #ce9178;">{handleClick}</span></div><div> <span style="color: #9cdcfe;">onblur</span>=<span style="color: #ce9178;">{handleClick}</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>aria-activedescendant</span>=<span style="color: #ce9178;">"option1"</span> <span style="color: #9cdcfe;">label</span>=<span style="color: #ce9178;">'Account'</span></div><div> <span style="color: #9cdcfe;">aria-autocomplete</span>=<span style="color: #ce9178;">"list"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>aria-controls</span>=<span style="color: #ce9178;">"listbox-id-12"</span> <span style="color: #9cdcfe;">role</span>=<span style="color: #ce9178;">"textbox"</span></div><div> <span style="color: #9cdcfe;">placeholder</span>=<span style="color: #ce9178;">"Search..."</span><span style="color: grey;">></</span><span style="color: #569cd6;">lightning-input</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">button</span></div><div> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-button </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>slds-button_icon slds-input__icon </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>slds-input__icon_right searchButtonStyle"</span></div><div> <span style="color: #9cdcfe;">title</span>=<span style="color: #ce9178;">"Remove selected option"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-button-icon</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>icon-name</span>=<span style="color: #ce9178;">"utility:search"</span> <span style="color: #9cdcfe;">variant</span>=<span style="color: #ce9178;">"bare"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>alternative-text</span>=<span style="color: #ce9178;">"Search"</span></div><div> <span style="color: #9cdcfe;">aria-hidden</span>=<span style="color: #ce9178;">"true"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>onclick</span>=<span style="color: #ce9178;">{handleOpenModal}</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-button-icon</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">button</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: #6a9955;"><!-- Start : Parent Search Result --></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{messageResult}</span><span style="color: grey;">></span></div><div> No Result Found!</div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{showSearchedValues}</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-box"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>style</span>=<span style="color: #ce9178;">"height: 130px; </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>overflow-y: scroll;"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">ul</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">""</span> <span style="color: #9cdcfe;">role</span>=<span style="color: #ce9178;">""</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">for:each</span>=<span style="color: #ce9178;">{accountList}</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>for:item</span>=<span style="color: #ce9178;">"actObj"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">li</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>class</span>=<span style="color: #ce9178;">"slds-p-around_x-small"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>style</span>=<span style="color: #ce9178;">"cursor: pointer;"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>key</span>=<span style="color: #ce9178;">{actObj.Id}</span></div><div> <span style="color: #9cdcfe;">onclick</span>=<span style="color: #ce9178;">{handleParentSelection}</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>data-value</span>=<span style="color: #ce9178;">{actObj.Id}</span></div><div> <span style="color: #9cdcfe;">data-label</span>=<span style="color: #ce9178;">{actObj.Name}</span><span style="color: grey;">></span></div><div> {actObj.Name}</div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">li</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">ul</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{isShowPillContainer}</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-pill-container</span></div><div> <span style="color: #9cdcfe;">items</span>=<span style="color: #ce9178;">{pillRecordsList}</span></div><div> <span style="color: #9cdcfe;">onitemremove</span>=<span style="color: #ce9178;">{handleItemRemove}</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-pill-container</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><br /><div> <span style="color: grey;"><</span><span style="color: #569cd6;">section</span> <span style="color: #9cdcfe;">role</span>=<span style="color: #ce9178;">"dialog"</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{isshow}</span> <span style="color: #9cdcfe;">tabindex</span>=<span style="color: #ce9178;">"-1"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span>class</span>=<span style="color: #ce9178;">"slds-modal slds-fade-in-open"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span>aria-labelledby</span>=<span style="color: #ce9178;">"modal-heading-01"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span>aria-modal</span>=<span style="color: #ce9178;">"true"</span> <span style="color: #9cdcfe;">aria-describedby</span>=<span style="color: #ce9178;">"modal-content-id-1"</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-modal__container"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">header</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-modal__header"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-button-icon</span></div><div> <span style="color: #9cdcfe;">icon-name</span>=<span style="color: #ce9178;">"utility:close"</span></div><div> <span style="color: #9cdcfe;">variant</span>=<span style="color: #ce9178;">"bare"</span></div><div> <span style="color: #9cdcfe;">onclick</span>=<span style="color: #ce9178;">{handleCloseModal}</span></div><div> <span style="color: #9cdcfe;">alternative-text</span>=<span style="color: #ce9178;">"Close window"</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"float: right;"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-button-icon</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">h2</span> <span style="color: #9cdcfe;">id</span>=<span style="color: #ce9178;">"modal-heading-01"</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-modal__title </span></div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span>slds-hyphenate"</span><span style="color: grey;">></span></div><div><span> </span><span> </span><span> </span><span> </span>Account Creation</div><div><span style="color: grey;"><span> </span><span> </span><span> </span></</span><span style="color: #569cd6;">h2</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">header</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-modal__content slds-p-around_medium"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span>id</span>=<span style="color: #ce9178;">"modal-content-id-1"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-record-edit-form</span> <span style="color: #9cdcfe;">object-api-name</span>=<span style="color: #ce9178;">"Account"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span>onsuccess</span>=<span style="color: #ce9178;">{handleSuccess}</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-messages</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-messages</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input-field</span> <span style="color: #9cdcfe;">field-name</span>=<span style="color: #ce9178;">"Name"</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-input-field</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input-field</span> <span style="color: #9cdcfe;">field-name</span>=<span style="color: #ce9178;">"Industry"</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-input-field</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-m-top_medium"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-button</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-m-top_small"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>label</span>=<span style="color: #ce9178;">"Cancel"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>onclick</span>=<span style="color: #ce9178;">{handleReset}</span><span style="color: grey;">></</span><span style="color: #569cd6;">lightning-button</span><span style="color: grey;">></span><span style="color: #569cd6;">&nbsp;</span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-button</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-m-top_small"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>variant</span>=<span style="color: #ce9178;">"brand"</span> </div><div><span style="color: #9cdcfe;"><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span>type</span>=<span style="color: #ce9178;">"submit"</span> <span style="color: #9cdcfe;">label</span>=<span style="color: #ce9178;">"Save Record"</span><span style="color: grey;">></</span><span style="color: #569cd6;">lightning-button</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-record-edit-form</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span> </div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">section</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-backdrop slds-backdrop_open"</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{isshow}</span><span style="color: grey;">></span></div><div><span style="color: grey;"><span> </span><span> </span></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div><div><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div></div><p><b>customlookup.js</b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div> </div><div><span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span>,<span style="color: #9cdcfe;">wire</span>,<span style="color: #9cdcfe;">track</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</div><div><span style="color: #c586c0;">import</span> <span style="color: #9cdcfe;">getAccounts</span> </div><div><span style="color: #c586c0;"><span> </span>from</span> <span style="color: #ce9178;">'@salesforce/apex/AccountSearchController.getAccounts'</span>;</div><div><span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">CustomLookup</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span> {</div><div> <span style="color: #9cdcfe;">accountName</span> = <span style="color: #ce9178;">''</span>;</div><div> <span style="color: #9cdcfe;">accountList</span> = []; </div><div> <span style="color: #9cdcfe;">accountId</span>; </div><div> <span style="color: #9cdcfe;">isshow</span>=<span style="color: #569cd6;">false</span>;</div><div> <span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>;</div><div> <span style="color: #9cdcfe;">isShowResult</span> = <span style="color: #569cd6;">true</span>; </div><div> <span style="color: #9cdcfe;">showSearchedValues</span> = <span style="color: #569cd6;">false</span>; </div><div> @<span style="color: #dcdcaa;">track</span> <span style="color: #9cdcfe;">pillRecordsList</span> = [];</div><div> <span style="color: #9cdcfe;">pillRecordIdList</span> = [];</div><div> <span style="color: #9cdcfe;">isShowPillContainer</span> = <span style="color: #569cd6;">false</span>;</div><div> @<span style="color: #dcdcaa;">wire</span>(<span style="color: #dcdcaa;">getAccounts</span>, {<span style="color: #9cdcfe;">actName</span><span style="color: #9cdcfe;">:</span><span style="color: #ce9178;">'$accountName'</span>})</div><div> <span style="color: #dcdcaa;">retrieveAccounts</span> ({<span style="color: #9cdcfe;">error</span>, <span style="color: #9cdcfe;">data</span>}) {</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>;</div><div> <span style="color: #c586c0;">if</span> (<span style="color: #9cdcfe;">data</span>) {</div><div> <span style="color: #6a9955;">// TODO: Error handling </span></div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">'data::'</span>+<span style="color: #9cdcfe;">data</span>.<span style="color: #9cdcfe;">length</span>);</div><div> <span style="color: #c586c0;">if</span>(<span style="color: #9cdcfe;">data</span>.<span style="color: #9cdcfe;">length</span>><span style="color: #b5cea8;">0</span> && <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowResult</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountList</span> = <span style="color: #9cdcfe;">data</span>; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">showSearchedValues</span> = <span style="color: #569cd6;">true</span>; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>;</div><div> } </div><div> <span style="color: #c586c0;">else</span> <span style="color: #c586c0;">if</span>(<span style="color: #9cdcfe;">data</span>.<span style="color: #9cdcfe;">length</span>==<span style="color: #b5cea8;">0</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountList</span> = []; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">showSearchedValues</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #c586c0;">if</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span>!=<span style="color: #ce9178;">''</span>)</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">true</span>; </div><div> } </div><div> </div><div> } <span style="color: #c586c0;">else</span> <span style="color: #c586c0;">if</span> (<span style="color: #9cdcfe;">error</span>) {</div><div> <span style="color: #6a9955;">// TODO: Data handling</span></div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span> = <span style="color: #ce9178;">''</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #ce9178;">''</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountList</span>=[]; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">showSearchedValues</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">true</span>; </div><div> }</div><div> }</div><div> <span style="color: #dcdcaa;">handleClick</span>(<span style="color: #9cdcfe;">event</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowResult</span> = <span style="color: #569cd6;">true</span>; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>; </div><div> }</div><div> <span style="color: #dcdcaa;">handleKeyChange</span>(<span style="color: #9cdcfe;">event</span>){ </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>; </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">target</span>.<span style="color: #9cdcfe;">value</span>;</div><div> } </div><div> <span style="color: #dcdcaa;">handleParentSelection</span>(<span style="color: #9cdcfe;">event</span>){ </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">showSearchedValues</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowResult</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>;</div><div> <span style="color: #6a9955;">//Set the parent calendar id</span></div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">target</span>.<span style="color: #9cdcfe;">dataset</span>.<span style="color: #9cdcfe;">value</span>;</div><div> <span style="color: #6a9955;">//Set the parent calendar label</span></div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">target</span>.<span style="color: #9cdcfe;">dataset</span>.<span style="color: #9cdcfe;">label</span>; </div><div> <span style="color: #c586c0;">if</span>(!<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordIdList</span>.<span style="color: #dcdcaa;">includes</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>)){</div><div> <span style="color: #569cd6;">let</span> <span style="color: #9cdcfe;">record</span> = {<span style="color: #ce9178;">"type"</span><span style="color: #9cdcfe;">:</span><span style="color: #ce9178;">"icon"</span>, <span style="color: #ce9178;">"label"</span><span style="color: #9cdcfe;">:</span> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span>,</div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span>"iconName"</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"standard:account"</span>,<span style="color: #ce9178;">"name"</span><span style="color: #9cdcfe;">:</span> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>}; </div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">'accountId::'</span>+<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>); </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>.<span style="color: #dcdcaa;">push</span>(<span style="color: #9cdcfe;">record</span>);</div><div> <span style="color: #c586c0;">if</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowPillContainer</span> = <span style="color: #569cd6;">true</span>;</div><div> }</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordIdList</span>.<span style="color: #dcdcaa;">push</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>);</div><div> } </div><div> </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #ce9178;">''</span>; </div><div> }</div><div> <span style="color: #dcdcaa;">handleOpenModal</span>(<span style="color: #9cdcfe;">event</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isshow</span> = <span style="color: #569cd6;">true</span>;</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">'balaji:::'</span>);</div><div> }</div><div> <span style="color: #dcdcaa;">handleCloseModal</span>(<span style="color: #9cdcfe;">event</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isshow</span> = <span style="color: #569cd6;">false</span>;</div><div> }</div><div> <span style="color: #dcdcaa;">handleSuccess</span>(<span style="color: #9cdcfe;">event</span>){ </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowResult</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">messageResult</span>=<span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isshow</span> = <span style="color: #569cd6;">false</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">detail</span>.<span style="color: #9cdcfe;">id</span>;</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">detail</span>.<span style="color: #9cdcfe;">id</span>);</div><div> <span style="color: #6a9955;">//console.log('JSON OBject:'+JSON.stringify(event.detail));</span></div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">detail</span>.<span style="color: #9cdcfe;">fields</span>.<span style="color: #9cdcfe;">Name</span>.<span style="color: #9cdcfe;">value</span>;</div><div> <span style="color: #c586c0;">if</span>(!<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordIdList</span>.<span style="color: #dcdcaa;">includes</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>)){</div><div> <span style="color: #569cd6;">let</span> <span style="color: #9cdcfe;">record</span> = {<span style="color: #ce9178;">"type"</span><span style="color: #9cdcfe;">:</span><span style="color: #ce9178;">"icon"</span>, <span style="color: #ce9178;">"label"</span><span style="color: #9cdcfe;">:</span> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span>,</div><div><span style="color: #ce9178;"><span> </span><span> </span><span> </span><span> </span>"iconName"</span><span style="color: #9cdcfe;">:</span> <span style="color: #ce9178;">"standard:account"</span>,<span style="color: #ce9178;">"name"</span><span style="color: #9cdcfe;">:</span> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>}; </div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #ce9178;">'accountId::'</span>+<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>); </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>.<span style="color: #dcdcaa;">push</span>(<span style="color: #9cdcfe;">record</span>);</div><div> <span style="color: #c586c0;">if</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowPillContainer</span> = <span style="color: #569cd6;">true</span>;</div><div> }</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordIdList</span>.<span style="color: #dcdcaa;">push</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span>);</div><div> } </div><div> </div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountName</span> = <span style="color: #ce9178;">''</span>;</div><div> <span style="color: #569cd6;">const</span> <span style="color: #4fc1ff;">selectedEvent</span> = <span style="color: #569cd6;">new</span> <span style="color: #4ec9b0;">CustomEvent</span>(<span style="color: #ce9178;">'selected'</span>, { <span style="color: #9cdcfe;">detail</span><span style="color: #9cdcfe;">:</span> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">accountId</span> });</div><div> <span style="color: #6a9955;">// Dispatches the event.</span></div><div> <span style="color: #569cd6;">this</span>.<span style="color: #dcdcaa;">dispatchEvent</span>(<span style="color: #4fc1ff;">selectedEvent</span>);</div><div> }</div><div> <span style="color: #dcdcaa;">handleReset</span>(<span style="color: #9cdcfe;">event</span>) {</div><div> <span style="color: #569cd6;">const</span> <span style="color: #4fc1ff;">inputFields</span> = <span style="color: #569cd6;">this</span>.<span style="color: #4fc1ff;">template</span>.<span style="color: #dcdcaa;">querySelectorAll</span>(</div><div> <span style="color: #ce9178;">'lightning-input-field'</span></div><div> );</div><div> <span style="color: #c586c0;">if</span> (<span style="color: #4fc1ff;">inputFields</span>) {</div><div> <span style="color: #4fc1ff;">inputFields</span>.<span style="color: #dcdcaa;">forEach</span>(<span style="color: #9cdcfe;">field</span> <span style="color: #569cd6;">=></span> {</div><div> <span style="color: #9cdcfe;">field</span>.<span style="color: #dcdcaa;">reset</span>();</div><div> });</div><div> }</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isshow</span> = <span style="color: #569cd6;">false</span>;</div><div> }</div><br /><div> <span style="color: #dcdcaa;">handleItemRemove</span> (<span style="color: #9cdcfe;">event</span>) {</div><div> <span style="color: #569cd6;">const</span> <span style="color: #4fc1ff;">name</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">detail</span>.<span style="color: #9cdcfe;">item</span>.<span style="color: #9cdcfe;">name</span>;</div><div> <span style="color: #9cdcfe;">console</span>.<span style="color: #dcdcaa;">log</span>(<span style="color: #4fc1ff;">name</span> + <span style="color: #ce9178;">' pill was removed!'</span>);</div><div> <span style="color: #569cd6;">const</span> <span style="color: #4fc1ff;">index</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">detail</span>.<span style="color: #9cdcfe;">index</span>;</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>.<span style="color: #dcdcaa;">splice</span>(<span style="color: #4fc1ff;">index</span>, <span style="color: #b5cea8;">1</span>);</div><div> <span style="color: #c586c0;">if</span>(<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">pillRecordsList</span>.<span style="color: #9cdcfe;">length</span>==<span style="color: #b5cea8;">0</span>){</div><div> <span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isShowPillContainer</span> =<span style="color: #569cd6;">false</span>;</div><div> }</div><div> }</div><div>}</div></div><p><b><br /></b></p><p><b>Output:</b></p><p><b></b></p><div class="separator" style="clear: both; text-align: center;"><b><a href="https://lh3.googleusercontent.com/-qRqaIw2C8Jo/YU9gb_XYQ8I/AAAAAAAASIc/ITWc7GSHJGUHGLn8QQmgRKYYyP1u-xI7ACLcBGAsYHQ/image.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="295" data-original-width="1911" height="49" src="https://lh3.googleusercontent.com/-qRqaIw2C8Jo/YU9gb_XYQ8I/AAAAAAAASIc/ITWc7GSHJGUHGLn8QQmgRKYYyP1u-xI7ACLcBGAsYHQ/image.png" width="320" /></a></b></div><b><br /><br /></b><p></p><p><b><br /></b></p><p><b></b></p><div class="separator" style="clear: both; text-align: center;"><b><a href="https://lh3.googleusercontent.com/-IelfQ7u1D5A/YU9gjXQGYXI/AAAAAAAASIg/jRvAoUHIJpEvf9hq8DzbRvKViw98qsL-wCLcBGAsYHQ/image.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" data-original-height="162" data-original-width="1909" height="27" src="https://lh3.googleusercontent.com/-IelfQ7u1D5A/YU9gjXQGYXI/AAAAAAAASIg/jRvAoUHIJpEvf9hq8DzbRvKViw98qsL-wCLcBGAsYHQ/image.png" width="320" /></a></b></div><b><br /><br /></b><p></p><p><b>customlookup.css :</b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: #d7ba7d;">.searchButtonStyle</span>{</div><div> <span style="color: #9cdcfe;">margin-top</span>: <span style="color: #b5cea8;">4px</span>;</div><div> <span style="color: #9cdcfe;">margin-right</span>: <span style="color: #b5cea8;">0px</span>;</div><div>}</div></div><p><b><br /></b></p><p><b>Reference : </b></p><p><a href="https://www.lightningdesignsystem.com/components/lookups/#site-main-content">https://www.lightningdesignsystem.com/components/lookups/#site-main-content</a></p><p><a href="https://developer.salesforce.com/docs/component-library/bundle/lightning-pill-container/example">https://developer.salesforce.com/docs/component-library/bundle/lightning-pill-container/example</a></p><p><br /></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-8912846151191342021-07-28T04:17:00.004-07:002021-07-28T04:20:08.253-07:00Simple Lightning Component with Wrapper Class<p> Hi,</p><p>Here we are going to learn how to capture or display the wrapper result with a simple example.</p><p>When we want to access the wrapper properties we have to make sure that properties with "@Auraenabled" annotation.</p><p>Eg: </p><p><b>Apex Class : </b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: #569cd6;">public</span> with sharing <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">WrapExample</span> {</div><div> <span style="color: #569cd6;">public</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">Wrappercls</span>{</div><div> <span style="color: #569cd6;">@Auraenabled</span></div><div> <span style="color: #569cd6;">public</span> <span style="color: #569cd6;">String</span> <span style="color: #9cdcfe;">firstName</span>{<span style="color: #569cd6;">get</span>;<span style="color: #569cd6;">set</span>;}</div><div> <span style="color: #569cd6;">@Auraenabled</span></div><div> <span style="color: #569cd6;">public</span> <span style="color: #569cd6;">String</span> <span style="color: #9cdcfe;">lastName</span>{<span style="color: #569cd6;">get</span>;<span style="color: #569cd6;">set</span>;} </div><div> }</div><div> <span style="color: #569cd6;">@Auraenabled</span></div><div> <span style="color: #569cd6;">public</span> <span style="color: #569cd6;">static</span> <span style="color: #569cd6;">Wrappercls</span> <span style="color: #dcdcaa;">getWrapperDetail</span>(){</div><div> <span style="color: #569cd6;">Wrappercls</span> <span style="color: #9cdcfe;">wrapObn</span> = <span style="color: #c586c0;">new</span> <span style="color: #569cd6;">Wrappercls</span>();</div><div> <span style="color: #9cdcfe;">wrapObn</span>.<span style="color: #9cdcfe;">firstName</span>= <span style="color: #ce9178;">'Navarshi'</span>;</div><div> <span style="color: #9cdcfe;">wrapObn</span>.<span style="color: #9cdcfe;">lastName</span> = <span style="color: #ce9178;">'Malem'</span>;</div><div> <span style="color: #c586c0;">return</span> <span style="color: #9cdcfe;">wrapObn</span>;</div><div> }</div><div>}</div><br /></div><p><br /></p><p><b>Aura Component:</b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><div style="line-height: 19px;"><div><span style="color: grey;"><</span><span style="color: #569cd6;">aura:component</span> <span style="color: #9cdcfe;">controller</span>=<span style="color: #ce9178;">"WrapExample"</span> </div><div> <span style="color: #9cdcfe;">implements</span>=<span style="color: #ce9178;">"flexipage:availableForAllPageTypes"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">aura:attribute</span> <span style="color: #9cdcfe;">name</span>=<span style="color: #ce9178;">"wrapObj"</span> <span style="color: #9cdcfe;">type</span>=<span style="color: #ce9178;">"Object"</span> <span style="color: grey;">/></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">aura:handler</span> <span style="color: #9cdcfe;">name</span>=<span style="color: #ce9178;">"init"</span> <span style="color: #9cdcfe;">value</span>=<span style="color: #ce9178;">"{!this}"</span> <span style="color: #9cdcfe;">action</span>=<span style="color: #ce9178;">"{!c.retrieveWrapRecord}"</span> <span style="color: grey;">/></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning:card</span> <span style="color: #9cdcfe;">title</span>=<span style="color: #ce9178;">"Wrapper Record Detail"</span> <span style="color: #9cdcfe;">iconName</span>=<span style="color: #ce9178;">"utility:connected_apps"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">p</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-p-horizontal_small"</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">h1</span><span style="color: grey;">><</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span>First Name : <span style="color: grey;"></</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span>{!v.wrapObj.firstName}<span style="color: grey;"></</span><span style="color: #569cd6;">h1</span><span style="color: grey;">></span></div><div> <span style="color: grey;"><</span><span style="color: #569cd6;">h1</span><span style="color: grey;">><</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span>Last Name : <span style="color: grey;"></</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span>{!v.wrapObj.lastName}<span style="color: grey;"></</span><span style="color: #569cd6;">h1</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div><div> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning:card</span><span style="color: grey;">></span></div><div><span style="color: grey;"></</span><span style="color: #569cd6;">aura:component</span><span style="color: grey;">></span></div></div></div><br /></div><p><b>Component Controller:</b></p><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div>({</div><div> <span style="color: #dcdcaa;">retrieveWrapRecord</span><span style="color: #9cdcfe;"> :</span> <span style="color: #569cd6;">function</span>(<span style="color: #9cdcfe;">component</span>, <span style="color: #9cdcfe;">event</span>, <span style="color: #9cdcfe;">helper</span>) {</div><div> <span style="color: #569cd6;">var</span> <span style="color: #9cdcfe;">action</span> = <span style="color: #9cdcfe;">component</span>.<span style="color: #dcdcaa;">get</span>(<span style="color: #ce9178;">"c.getWrapperDetail"</span>);</div><div> <span style="color: #9cdcfe;">action</span>.<span style="color: #dcdcaa;">setCallback</span>(<span style="color: #569cd6;">this</span>, <span style="color: #569cd6;">function</span>(<span style="color: #9cdcfe;">data</span>) {</div><div> <span style="color: #9cdcfe;">component</span>.<span style="color: #dcdcaa;">set</span>(<span style="color: #ce9178;">"v.wrapObj"</span>, <span style="color: #9cdcfe;">data</span>.<span style="color: #dcdcaa;">getReturnValue</span>());</div><div> });</div><div> <span style="color: #9cdcfe;">$A</span>.<span style="color: #dcdcaa;">enqueueAction</span>(<span style="color: #9cdcfe;">action</span>);</div><div> }</div><div>})</div><br /></div><p><b><br /></b></p><p><b>Reference : </b></p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_create.htm">https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_create.htm</a></p><p><b><br /></b></p><p><b><br /></b></p><p><b><br /></b></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-90339986938925579152021-07-26T06:45:00.004-07:002021-07-26T06:45:45.118-07:00Auto Populate Record Type,other fields and navigate to create page<p> Hi,</p><p>The record type Id field is case-sensitive when we want to auto-populate with record type.</p><p>Sample Example:</p><p><span style="background-color: #01ffff;">var recTypeId = '012XXXXXXXX';</span></p><p><span style="background-color: #01ffff;">var createContact= $A.get("e.force:createRecord");</span></p><p><span style="background-color: #01ffff;">createContact.setParams({</span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>"entityApiName": 'Contact',</span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>"recordTypeId":recTypeId,</span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>"defaultFieldValues": { </span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>'LastName':'balaji',</span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>'FirstName':'malem'<span style="white-space: pre;"> </span></span></p><p><span style="background-color: #01ffff;"><span style="white-space: pre;"> </span>}</span></p><p><span style="background-color: #01ffff;">});</span></p><p><span style="background-color: #01ffff;">createContact.fire();</span></p><p>Note:</p><p>Always add recordTypeId before <b>defaultFieldValues </b>as above.</p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-50108500941136181702021-07-04T10:46:00.007-07:002021-07-04T10:46:55.138-07:00Custom Metadata Types CLI Commands with Summer 20 Release<p>Hi,</p><p>With Summer 20 release we have very important CLI Commands for Custom Metadata Types</p><p>These new commands simplify development and help you build automation and synchronize your source from scratch orgs when working with custom metadata types.</p><p>The Salesforce CLI custom metadata types commands are available in v49.0.The Salesforce CLI custom metadata types commands are available in v49.0.</p><ul class="ul bulletList" style="background-color: white; box-sizing: border-box; color: #3c3d3e; font-family: proxima-nova, sans-serif; font-size: 14px; margin-bottom: 0.714286em; margin-top: 0px;"><li class="li" style="box-sizing: border-box; margin-top: 1em;"><samp class="codeph nolang" style="box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em;">sfdx force:cmdt:create</samp> Creates a new custom metadata type in the current project.</li><li class="li" style="box-sizing: border-box; margin-top: 1em;"><samp class="codeph nolang" style="box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em;">sfdx force:cmdt:field:create</samp> Generates a custom metadata field based on the field type provided.</li><li class="li" style="box-sizing: border-box; margin-top: 1em;"><samp class="codeph nolang" style="box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em;">sfdx force:cmdt:generate</samp> Generates a custom metadata type and all its records for the provided sObject.</li><li class="li" style="box-sizing: border-box; margin-top: 1em;"><samp class="codeph nolang" style="box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em;">sfdx force:cmdt:record:create</samp> Creates a new record for a given custom metadata type in the current project.</li><li class="li" style="box-sizing: border-box; margin-top: 1em;"><samp class="codeph nolang" style="box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em;">sfdx force:cmdt:record:insert</samp> Creates new custom metadata type records from a CSV file.</li></ul><div><span style="color: #3c3d3e; font-family: proxima-nova, sans-serif;"><span style="font-size: 14px;"><br /></span></span></div><div><span style="color: #3c3d3e; font-family: proxima-nova, sans-serif;"><span style="font-size: 14px;"><br /></span></span></div><div><span style="color: #3c3d3e; font-family: proxima-nova, sans-serif;"><span style="font-size: 14px;"><br /></span></span></div><div><span class="slds-text-title_caps" style="background-color: #f3f2f2; border: 0px; box-sizing: border-box; color: #1e1e1e; font-family: "Salesforce Sans", Arial, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; letter-spacing: 1px; line-height: 1.3; margin: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">EXAMPLE</span><span style="background-color: #f3f2f2; color: #333333; font-family: "Salesforce Sans", Arial, sans-serif; font-size: 13px;"> Insert records into an existing custom metadata type from a CSV file.</span><p style="background-color: #f3f2f2; border: 0px; box-sizing: border-box; color: #333333; font-family: "Salesforce Sans", Arial, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 0.75rem; padding: 0px; vertical-align: baseline;">Create a CSV file and provide the API name of the custom metadata type in the insert command. For example,</p><table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small" style="background-color: white; border-bottom-color: rgb(221, 219, 218); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-spacing: 0px; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px; color: #333333; font-family: "Salesforce Sans", Arial, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 0.75rem; padding: 0px; vertical-align: baseline; width: 664px; word-break: normal;"><tbody style="border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><tr style="border: 0px; box-sizing: border-box; counter-increment: row-number 1; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%"><span style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Name</span></td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%"><span style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">CountryCode__c</span></td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%"><span style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">CountryName__c</span></td></tr><tr style="border: 0px; box-sizing: border-box; counter-increment: row-number 1; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Australia</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">AU</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Australia</td></tr><tr style="border: 0px; box-sizing: border-box; counter-increment: row-number 1; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Brazil</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">BZ</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Brazil</td></tr><tr style="border: 0px; box-sizing: border-box; counter-increment: row-number 1; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Canada</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">CA</td><td class="slds-cell-wrap" style="border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: rgb(221, 219, 218); border-top-style: solid; border-width: 1px 0px 0px; box-sizing: border-box; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; overflow-wrap: break-word; padding: 0.25rem 0.5rem; position: relative; vertical-align: baseline;" width="33.33333333333333%">Canada</td></tr></tbody></table><pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x" style="background-color: #f3f2f2; border-radius: 0.25rem; border: 1px solid rgb(221, 219, 218); box-sizing: border-box; color: #333333; font-family: monospace, monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.42857; margin-bottom: 0px; margin-top: 1rem; max-width: 100%; overflow-wrap: break-word; overflow: auto hidden; padding: 0.5rem; vertical-align: baseline; word-break: break-all;"><code style="background-color: rgba(0, 0, 0, 0); border-radius: 0px; border: 0px; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;">sfdx force:cmdt:record:insert
-f ~/Downloads/CMT_CSV\ -\ sfdx\ force_cmdt_record_insert\ Country\ Data\ -\ CMT_country.csv -t CmdtCountry</code></pre></div><p> </p><p><br /></p><p><b>Reference:</b></p><p>https://releasenotes.docs.salesforce.com/en-us/summer20/release-notes/rn_forcecom_dev_cmt_cli.htm?edition=&impact=</p><p>https://help.salesforce.com/articleView?id=sf.custommetadatatypes_cli.htm&type=5</p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-21964699484295597612021-06-21T05:22:00.002-07:002021-06-21T05:22:28.277-07:00How to Subscribe to a Platform Event from LWC<p> Hi ,</p><p>Here we are going to learn how to subscribe to a Platform Event from LWC.</p><p><br /></p><p>To subscribe for a Platform Event we have to import following methods from "<span style="background-color: white; color: #032f62; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; white-space: pre;">lightning/empApi" module</span></p><p><span style="background-color: white; color: #032f62; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; white-space: pre;"><br /></span></p><p></p><ul style="text-align: left;"><li><span style="background-color: white; font-size: 12px; white-space: pre;"><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;">subscribe</span></span></li><li><span style="background-color: white; font-size: 12px; white-space: pre;"><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;">unsubscribe</span></span></li><li><span style="background-color: white; font-size: 12px; white-space: pre;"><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;">onError</span></span></li><li><span style="background-color: white; font-size: 12px; white-space: pre;"><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;">setDebugFlag</span></span></li><li><span style="background-color: white; font-size: 12px; white-space: pre;"><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;">isEmpEnabled </span></span></li></ul><div><span style="color: #032f62; font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;"><span style="font-size: 12px; white-space: pre;"><br /></span></span></div><div><br /></div><div>Source Code:</div><div><br /></div><div>HTML file:</div><div><br /></div><p></p><div><template> </div><p></p><div></div><p></p><div><div> <lightning-card title="EmpApi Example" icon-name="custom:custom14"></div><div> </div><div> <div class="slds-m-around_medium"></div><div> </div><div> <div class="slds-p-around_medium lgc-bg"></div><div> <lightning-tile label="Account" href="/path/to/somewhere"></div><div> <p class="slds-truncate" title="7 Members"> {accountName}</p></div><div> </lightning-tile></div><div> </div></div><div> <lightning-button variant="destructive" label="Unsubscribe" title="Unsubscribe"</div><div> onclick={handleUnsubscribe} disabled={isUnsubscribeDisabled}</div><div> class="slds-m-left_x-small"></lightning-button></div><div> </div></div><div> </lightning-card></div><div></template></div></div><div><br /></div><div><br /></div><div><br /></div><div>Javscript File:</div><div><br /></div><div><div>import { LightningElement,track,api } from 'lwc';</div><div>import { subscribe, unsubscribe, onError, setDebugFlag, isEmpEnabled } from 'lightning/empApi';</div><div>import {ShowToastEvent} from 'lightning/platformShowToastEvent';</div><div>export default class PlatformEventExample extends LightningElement {</div><div> channelName = '/event/TestEvent__e';</div><div> isSubscribeDisabled = false;</div><div> isUnsubscribeDisabled = !this.isSubscribeDisabled;</div><div> subscription = {};</div><div> @api accountName;</div><div> // Tracks changes to channelName text field</div><div> handleChannelName(event) {</div><div> this.channelName = event.target.value;</div><div> }</div><div> // Initializes the component</div><div> connectedCallback() { </div><div> // Register error listener </div><div> this.registerErrorListener(); </div><div> this.handleSubscribe(); </div><div> }</div><div><span style="white-space: pre;"> </span>// Handles subscribe button click</div><div> handleSubscribe() {</div><div> // Callback invoked whenever a new event message is received</div><div> </div><div><br /></div><div> // Invoke subscribe method of empApi. Pass reference to messageCallback</div><div> subscribe(this.channelName, -1, this.messageCallback).then(response => {</div><div> // Response contains the subscription information on subscribe call</div><div> console.log('Subscription request sent to: ', JSON.stringify(response.channel));</div><div> this.subscription = response;</div><div> this.toggleSubscribeButton(true);</div><div> });</div><div> }</div><div> // Handles unsubscribe button click</div><div> handleUnsubscribe() {</div><div> this.toggleSubscribeButton(false);</div><div><br /></div><div> // Invoke unsubscribe method of empApi</div><div> unsubscribe(this.subscription, response => {</div><div> console.log('unsubscribe() response: ', JSON.stringify(response));</div><div> // Response is true for successful unsubscribe</div><div> });</div><div> }</div><div> registerErrorListener() {</div><div> // Invoke onError empApi method</div><div> onError(error => {</div><div> console.log('Received error from server: ', JSON.stringify(error));</div><div> // Error contains the server-side error</div><div> });</div><div> }</div><div> toggleSubscribeButton(enableSubscribe) {</div><div> this.isSubscribeDisabled = enableSubscribe;</div><div> this.isUnsubscribeDisabled = !enableSubscribe;</div><div> }</div><div><br /></div><div> messageCallback = (response) => {</div><div> console.log('New message received : ', JSON.stringify(response)); </div><div> this.accountName = response.data.payload.RecordChange__c;</div><div> const toastEvent = new ShowToastEvent({</div><div> title: 'Success!',</div><div> message: 'Account '+this.accountName+'Created Successfully!!',</div><div> variant: 'success'</div><div> });</div><div> this.dispatchEvent(toastEvent); </div><div> </div><div> }</div><div> </div><div>}</div></div><div><br /></div><div><br /></div><div>meta file:</div><div><br /></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"></div><div> <apiVersion>51.0</apiVersion></div><div> <isExposed>true</isExposed></div><div> <targets></div><div> <target></div><div> lightning__AppPage</div><div> </target></div><div> <target></div><div> lightning__HomePage</div><div> </target></div><div> </targets></div><div></LightningComponentBundle></div></div><div><br /></div><div><br /></div><div><br /></div><div><b>Reference</b>:</div><div><br /></div><div><a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/get_started_component_library">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/get_started_component_library</a></div><table class="highlight tab-size js-file-line-container" data-paste-markdown-skip="" data-tab-size="8" style="background-color: white; border-collapse: collapse; border-spacing: 0px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; tab-size: 8;"><tbody style="box-sizing: border-box;"><tr style="box-sizing: border-box;"><td class="blob-code blob-code-inner js-file-line" id="LC1" style="box-sizing: border-box; color: var(--color-text-primary); font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; overflow-wrap: normal; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre;"><blockquote style="border: none; margin: 0 0 0 40px; padding: 0px;"></blockquote></td></tr><tr style="background-color: transparent; box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="24" id="L24" style="box-sizing: border-box; color: var(--color-diff-blob-num-text); cursor: pointer; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="LC24" style="box-sizing: border-box; color: var(--color-text-primary); font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; overflow-wrap: normal; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre;"><span class="pl-kos" style="box-sizing: border-box;"><a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/get_started_component_library" target="_blank">
</a></span></td></tr></tbody></table>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0tag:blogger.com,1999:blog-6070445220956351850.post-980419168689812382021-05-27T04:29:00.007-07:002021-05-27T04:31:24.844-07:00Access Token Generation and update existing record from Standard Salesforce REST API<p> Hi ,</p><p>Here are we are going to learn how to generate access token when you are using connected app for authentication.</p><p>When you create a connected app then it provides consumer key (client_id) and consumer secret (client_secret).</p><p>Now you should use "username" and "password" of an integration user (any user who access access on your object) .</p><p>Now let's start generating access token:</p><p>1)Prepare url :</p><p>String urlStr = <baseurl>'/services/oauth2/token?grant_type=password&client_id='+<consumerkey>+'&client_secret='+<consumersecret>+'&username='+<username>+'&password='+<passwordwithsecuritytoken>;</p><p>Http h = new Http(); </p><p>HttpRequest req = new HttpRequest();</p><p>req.setEndpoint(urlStr);</p><p>req.setMethod('POST');</p><p>HttpResponse res = h.send(req);</p><p> Map<String,object> jsonMap= (Map<String,Object>)JSON.deserializeUntyped(res.getBody());</p><p>if(jsonMap.get('access_token')!=null){</p><p><span style="white-space: pre;"> </span>String updateURLStr = <baseurl>'/services/data/v52.0/sobjects/Account/'+actId;</p><p><span style="white-space: pre;"> </span>req = new HttpRequest();</p><p><span style="white-space: pre;"> </span>req.setEndpoint(updateURLStr);</p><p><span style="white-space: pre;"> </span>req.setMethod('PATCH');</p><p><span style="white-space: pre;"> </span>req.setHeader('Authorization', 'Bearer '+String.valueOf(jsonMap.get('access_token')));</p><p><span style="white-space: pre;"> </span>req.setHeader('Content-Type', 'application/json');</p><p><span style="white-space: pre;"> </span>req.setBody(JSON.serialize(actObj));</p><p><span style="white-space: pre;"> </span></p><p><span style="white-space: pre;"> </span>res = h.send(req);</p><p><br /></p><p>}</p><p>Reference:</p><p>https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm</p><p><br /></p><p><br /></p><p><br /></p><p><br /></p>Balaji Malemarpuramhttp://www.blogger.com/profile/13634046533978207508noreply@blogger.com0