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;
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
add a comment |
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
add a comment |
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
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
lightning-web-components lightning-community
asked May 5 at 14:16
gNerbgNerb
6,258835
6,258835
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered May 5 at 14:17
gNerbgNerb
6,258835
6,258835
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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