<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by prasanth varma Dantuluri on Medium]]></title>
        <description><![CDATA[Stories by prasanth varma Dantuluri on Medium]]></description>
        <link>https://medium.com/@varma6228?source=rss-89c13eba1f68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NipYQ7wov0vu9trgtJ4ybw.jpeg</url>
            <title>Stories by prasanth varma Dantuluri on Medium</title>
            <link>https://medium.com/@varma6228?source=rss-89c13eba1f68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:45:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varma6228/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[getObjectInfo in LWC]]></title>
            <link>https://medium.com/@varma6228/getobjectinfo-in-lwc-1ffe490ea396?source=rss-89c13eba1f68------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ffe490ea396</guid>
            <category><![CDATA[lightning-web-component]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[lightning-components]]></category>
            <category><![CDATA[getobjectinfo]]></category>
            <category><![CDATA[lwc]]></category>
            <dc:creator><![CDATA[prasanth varma Dantuluri]]></dc:creator>
            <pubDate>Thu, 31 Oct 2019 22:39:10 GMT</pubDate>
            <atom:updated>2021-07-16T04:58:32.987Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to get recordtypeid in LWC using getObjectInfo(getObjectInfo in LWC)</h3><p><strong>please refer to my website for more blog posts related to salesforce <br></strong><a href="https://www.cringycode.com/"><strong>https://www.cringycode.com/</strong></a></p><p>Use this wire adapter to get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.</p><p>In order to use this getObjectInfofirst, you need to import it fromlightning/uiObjectInfoApi</p><p><strong>import {getObjectInfo} from ‘lightning/uiObjectInfoApi’;</strong></p><p>lightning/uiObjectInfoApi is used to get the object-specific metadata and picklist values. These are some wire adapters that we get from lightning/uiObjectInfoApi which helps us to retrieve data from an object.</p><p>1)getObjectinfo</p><p>2)getpicklistValues</p><p>3)getPicklistValuesByRecordType</p><p>Let’s see an example of how we can use getObjectinfo to retrieve data from an object</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*_fV-QdsYHhzmh4Afk5WJoA.jpeg" /></figure><p>Fist just understand the wire function that I’ve written in line 7.</p><p><strong>Wire Adapter Parameters</strong></p><ul><li>objectApiName—(Required) A <a href="https://developer.salesforce.com/docs/component-library/documentation/lwc/reference_supported_objects.html#reference_supported_objects">supported object</a>.</li><li>propertyOrFunction—A private property or function that receives the stream of data from the wire service. If a property is decorated with @wire the results are returned to the property’s data property or error property.</li></ul><pre>@wire(getObjectInfo, { objectApiName: ACCOUNT_OBJECT })<br>    property;</pre><ul><li>If a function is decorated with @wire, the results are returned in an object with a data property and an error property.</li></ul><pre>@wire(getObjectInfo, { objectApiName: ACCOUNT_OBJECT })<br>    Function({error,data}){<br>       if(data){<br>         // perform your custom logic here<br>       }else if(error){<br>           // perform your logic related to error </pre><pre>        }</pre><pre>     };</pre><p>now let’s move on to get the default RecordTypeId for the Account object in my org</p><p>so let’s see how lines 10 and 11 would show up in the console.</p><p><strong>console.log(‘defaultRecordTypeId’+data.defaultRecordTypeId);</strong></p><p><strong>console.log(‘recordTypeInfos’+JSON.stringify(data.recordTypeInfos));</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dsnXxY9MLVEvj71MDDWiw.jpeg" /></figure><p>so in the first line, my Account default record type’s id was printed.</p><p>In next line I’ve named 1 and 2 with red color. 1 was given default by salesforce and 2 was Account record type related data.</p><p><strong>recordTypeInfos </strong>— -&gt; A map of record type IDs to information about the record type. All record types are visible whether the user has access to them.</p><p><strong>defaultRecordTypeId → </strong>The ID for the default record type for this object, if any. If there isn’t a default record type, this value is the master record type, which is 012000000000000AAA. If the record is a nested record (for example, in a request for an Account, the User object is a nested record), the value is null.</p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm">Object Info | User Interface API Developer Guide | Salesforce Developers</a></p><p>head over to the above link to know what properties can you use to get metadata of the object.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ffe490ea396" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to pass data from one LWC component to another LWC component (Lightning web component)]]></title>
            <link>https://medium.com/@varma6228/how-to-pass-data-from-one-lwc-component-to-another-lwc-component-lightning-web-component-887f7c928eff?source=rss-89c13eba1f68------2</link>
            <guid isPermaLink="false">https://medium.com/p/887f7c928eff</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[lightning-web-component]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[lightning-components]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <dc:creator><![CDATA[prasanth varma Dantuluri]]></dc:creator>
            <pubDate>Sun, 01 Sep 2019 08:31:25 GMT</pubDate>
            <atom:updated>2021-07-16T05:02:31.657Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>please refer to my website for more blog posts related to salesforce<br></strong><a href="https://www.cringycode.com/"><strong>https://www.cringycode.com/</strong></a></p><p>let’s say that we have 2 LWC components namely databindingParent and databindingChild. So now we want to send data from databindingParent to databindingChild and display the passed data.</p><p>databindingChild.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*uu2DHDHkWHStEqO3eK1H6g.jpeg" /></figure><p>Let’s straight away jump to line 4. here I&#39;m printing the value in item variable using “{item}”</p><p>databindingChild.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*bsz2qv5bE0QveyydFXq2qA.jpeg" /></figure><p>So I declare a variable and named it “item” and added @api property to it, because I want this variable(item) to be publicly accessible.</p><p>The Lightning Web Components programming model has three decorators that add functionality to property or function.</p><p>@api,@track,@wire. For now, let&#39;s talk about @api and @track.</p><p>we can also use @track but the basic difference between @api and @track is, @api is a public rendering property whereas @track is private property. Tracked properties are also called private reactive properties.</p><p>But both @api and @track have rendering property.</p><p>Here I want to send data from one component to another so I need a public property that can hold the data that is sent from another component.</p><p>databindingParent.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*2TYylivkK_bgEmxoUS_thw.jpeg" /></figure><p>In line no 5 we are making a call to “databindingchild” component and passing a value(var1) for the public property “item” .so now let’s see what “var1&quot; variable contains.</p><p>databindingParent.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*ZXdJlFE2s8pQMe1QUxzOBw.jpeg" /></figure><p>In the above js file, we’ve declared a public property named var1.</p><p>we’ve written a function changefn() which is called when a change occurs to the input text.</p><p>In line 5 we are getting the value from the input text and then storing it in the var1 variable.</p><p>Here is the output of the above component databindingparent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*nEPiVnaXHlGqo_VPxI-Y3w.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=887f7c928eff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>