Get RecordId in LWC From Community PageLWC Community recordId undefinedhow to get Personal Access Token from my integrated application LWC. I am using js onlylwc quick action from Opportunity page(aura:component) and not getting @api recordIdLWC Community recordId undefinedLWC - How to get label name of buttonsLWC: Add a region in custom community themeVisual force page redirection from lightning communityLWC NavigationMixin does not work in CommunityInvoking LWC component from a plain URL - Read URL Parameter inside LWCLWC download PDF fileLWC Get Pick-list Field Values

Comparing two values in the form (a + sqrt(b)) as fast as possible?

Are on’yomi words loanwords?

How to divide a buffer using geometry generator in QGIS 3.X

how to find out if there's files in a folder and exit accordingly (in KSH)

ULdepth does not change space in equation

Why does the electron wavefunction not collapse within atoms at room temperature in gas, liquids or solids due to decoherence?

Which spells are in some way related to shadows or the Shadowfell?

Why use steam instead of just hot air?

How long can fsck take on a 30 TB volume?

Do Monks gain the 9th level Unarmored Movement benefit when wearing armor or using a shield?

Can the president of the United States be guilty of insider trading?

Locked my sa user out

What's an appropriate age to involve kids in life changing decisions?

Joining two curves in edit mode

And now you see it II (the B side)

Thawing Glaciers return to hand interaction

Why did Missandei say this?

I might have messed up in the 'Future Work' section of my thesis

Why is there a cap on 401k contributions?

Why doesn't a particle exert force on itself?

How can I make parentheses stick to formula?

Two (probably) equal real numbers which are not proved to be equal?

What dice to use in a game that revolves around triangles?

What are these round pads on the bottom of a PCB?



Get RecordId in LWC From Community Page


LWC Community recordId undefinedhow to get Personal Access Token from my integrated application LWC. I am using js onlylwc quick action from Opportunity page(aura:component) and not getting @api recordIdLWC Community recordId undefinedLWC - How to get label name of buttonsLWC: Add a region in custom community themeVisual force page redirection from lightning communityLWC NavigationMixin does not work in CommunityInvoking LWC component from a plain URL - Read URL Parameter inside LWCLWC download PDF fileLWC Get Pick-list Field Values






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm trying to make a component in my community be able to pull in the record Id.



I followed the information in this question: LWC Community recordId undefined



And this documentation: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_config_for_community_builder



My config file looks like this:



<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>ContractorSearch</masterLabel>
<description>Searches for contractors for a given set of criteria</description>
<targets>
<target>lightning__RecordPage</target>
<target>lightningCommunity__Page</target>
<target>lightningCommunity__Default</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<objects>
<object>Requisition__c</object>
</objects>
</targetConfig>
<targetConfig targets="lightningCommunity__Default">
<property name="recordId" default="!recordId" type="String"
label="Record ID" description="Should not be changed from default value."/>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>


Any ideas?










share|improve this question




























    2















    I'm trying to make a component in my community be able to pull in the record Id.



    I followed the information in this question: LWC Community recordId undefined



    And this documentation: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_config_for_community_builder



    My config file looks like this:



    <?xml version="1.0" encoding="UTF-8"?>
    <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>45.0</apiVersion>
    <isExposed>true</isExposed>
    <masterLabel>ContractorSearch</masterLabel>
    <description>Searches for contractors for a given set of criteria</description>
    <targets>
    <target>lightning__RecordPage</target>
    <target>lightningCommunity__Page</target>
    <target>lightningCommunity__Default</target>
    </targets>
    <targetConfigs>
    <targetConfig targets="lightning__RecordPage">
    <objects>
    <object>Requisition__c</object>
    </objects>
    </targetConfig>
    <targetConfig targets="lightningCommunity__Default">
    <property name="recordId" default="!recordId" type="String"
    label="Record ID" description="Should not be changed from default value."/>
    </targetConfig>
    </targetConfigs>
    </LightningComponentBundle>


    Any ideas?










    share|improve this question
























      2












      2








      2








      I'm trying to make a component in my community be able to pull in the record Id.



      I followed the information in this question: LWC Community recordId undefined



      And this documentation: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_config_for_community_builder



      My config file looks like this:



      <?xml version="1.0" encoding="UTF-8"?>
      <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
      <apiVersion>45.0</apiVersion>
      <isExposed>true</isExposed>
      <masterLabel>ContractorSearch</masterLabel>
      <description>Searches for contractors for a given set of criteria</description>
      <targets>
      <target>lightning__RecordPage</target>
      <target>lightningCommunity__Page</target>
      <target>lightningCommunity__Default</target>
      </targets>
      <targetConfigs>
      <targetConfig targets="lightning__RecordPage">
      <objects>
      <object>Requisition__c</object>
      </objects>
      </targetConfig>
      <targetConfig targets="lightningCommunity__Default">
      <property name="recordId" default="!recordId" type="String"
      label="Record ID" description="Should not be changed from default value."/>
      </targetConfig>
      </targetConfigs>
      </LightningComponentBundle>


      Any ideas?










      share|improve this question














      I'm trying to make a component in my community be able to pull in the record Id.



      I followed the information in this question: LWC Community recordId undefined



      And this documentation: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_config_for_community_builder



      My config file looks like this:



      <?xml version="1.0" encoding="UTF-8"?>
      <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
      <apiVersion>45.0</apiVersion>
      <isExposed>true</isExposed>
      <masterLabel>ContractorSearch</masterLabel>
      <description>Searches for contractors for a given set of criteria</description>
      <targets>
      <target>lightning__RecordPage</target>
      <target>lightningCommunity__Page</target>
      <target>lightningCommunity__Default</target>
      </targets>
      <targetConfigs>
      <targetConfig targets="lightning__RecordPage">
      <objects>
      <object>Requisition__c</object>
      </objects>
      </targetConfig>
      <targetConfig targets="lightningCommunity__Default">
      <property name="recordId" default="!recordId" type="String"
      label="Record ID" description="Should not be changed from default value."/>
      </targetConfig>
      </targetConfigs>
      </LightningComponentBundle>


      Any ideas?







      lightning-web-components lightning-community






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 5 at 14:16









      gNerbgNerb

      6,258835




      6,258835




















          1 Answer
          1






          active

          oldest

          votes


















          2














          Apparently Salesforce is not clever enough to understand when you put in !recordId as a default value.



          Removing the default value and setting the property in the community fixed the issue.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "459"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f261178%2fget-recordid-in-lwc-from-community-page%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Apparently Salesforce is not clever enough to understand when you put in !recordId as a default value.



            Removing the default value and setting the property in the community fixed the issue.






            share|improve this answer



























              2














              Apparently Salesforce is not clever enough to understand when you put in !recordId as a default value.



              Removing the default value and setting the property in the community fixed the issue.






              share|improve this answer

























                2












                2








                2







                Apparently Salesforce is not clever enough to understand when you put in !recordId as a default value.



                Removing the default value and setting the property in the community fixed the issue.






                share|improve this answer













                Apparently Salesforce is not clever enough to understand when you put in !recordId as a default value.



                Removing the default value and setting the property in the community fixed the issue.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 5 at 14:17









                gNerbgNerb

                6,258835




                6,258835



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Salesforce Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f261178%2fget-recordid-in-lwc-from-community-page%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics