New answers tagged

0

The only way I can think to accomplish this, and I have no way of guaranteeing this will work, is to: Configure the URL to point directly to SecureAuth login url Configure SecureAuth to redirect to your community whether or not they are currently logged in (bypass login screen at this stage) Configure the login link to push back to SecureAuth, maybe to a ...


1

I'm not sure why it's not more obvious as it's a bit hidden. However, you see this by doing the following: Go to your Community's Workspace Click on Administration Pages (on the left sidebar) Go to Site.com Studio Change History (on the left sidebar) You should see a list of versions with the following columns Version# Description Published Date ...


0

I managed to add multiple icons (in the same svg) in a zipped static resource. This is what I did Svg file configuration <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <symbol viewBox="0 0 260 260" fill-rule="evenodd" id="example1"> <path d="m129.5,9.5c-66.3,0 -120,53....


0

You can create a visualforce page which will embed a Lightning Component (Aura), which will embed your LWC Doc to include an aura component in visualforce page: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm Doc to include a LWC in an aura component: https://developer.salesforce.com/docs/component-...


0

Apparently, in case of record insertion, this only seems to work with after insert and not with before insert. Here's a way you can do this. Set<Id> setCaseIds = new Set<Id>(); for(Case eachCase : trigger.new) { setCaseIds.add(eachCase.Id); } List<Case> lstCaseUpdateOwner = new List<Case>(); Database.DMLOptions dmo = new Database....


0

While it's not obvious, I was able to 'clone' a page in a Salesforce Community using the following steps: Open your Community in the Builder Click the "Settings" gear Click "Developer" Select the "Export a Page" tab Select the Page you want to Clone/Duplicate and click the "Export" button. This "Exported" page will now be available as a template when ...


1

I have resolved this by using the following component on AppExchange: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EJc1NUAT&modal=where_to_install_package


0

boxToolkit.commitChanges() could be an asynchronous callout, so any returned errors are likely several seconds later and included in a different log.


3

You need to ensure that your scratch org definition file both uses the correct configuration for a scratch org that includes the features required by your code: "features": ["StateAndCountryPicklist"], and is properly specified at the time of package version creation: sfdx force:package:version:create --package "MyApp" --definitionfile config/project-...


0

I've read this differently. It appears that the BDR Role would not be able to edit records owned by the World Wide Sales Role by default or with your sharing rule. This assumes the Org Wide default is Private.


1

Your string is not correctly escaped. You can observe this by running String resp3 = '{"id1":"10","clueContent":"[{\"test\":\"13245678912\"}]"}'; System.debug(resp3); You'll see 11:55:20:003 USER_DEBUG [2]|DEBUG|{"id1":"10","clueContent":"[{"test":"13245678912"}]"} Note the absent backslashes. This is not valid JSON. In Apex string literals, you must ...


0

As stated in Known Issue: Translations are not reflected in community immediately after publishing it, it looks like the only thing you can do is to wait 24 hours until translations are published: Workaround No workarounds at this time. The translation should be updated in the community 24 hours after you've updated the translation and published ...


0

I see that it's 87℅ complete so in essence you have to also complete the other link tasks and Mark them complete in addition to badge and also have to follow the trailmix as well.


1

There is 'Follow' button on top right of that trailmix. You have to follow that trailmix then after that there will be button 'Mark as complete ' on tasks and links. So you can do that to complete it to 100% .


2

Generally, you cannot add the URL level(s) (depth) of custom standard pages. When you try to do that you will get the next error Include only alphanumeric characters and hyphens . So you can either Create different Community Custom Pages with different URLs Create different Page Variations and assign them to different Audiences if you want to create ...


2

Copying my comment to an answer as it seems it helped. You are trying to set the result of comparison between your field and number to the result field, the result is Boolean and it does not suit your formula. Just leave it as 1000, that should work.


2

My team has faced the issue as you with multiple LWC components on Spring '20 preview org. We found a post from Salesforce employee on Salesforce Partners forum which states that the problem has been acknowledged and the fix should be deployed this week. The change is made by design and is about a unifying response from LDS, which in other areas (@wire) ...


4

Yes, this has been asked over and over here, and likely elsewhere as well. However, I'm not marking your question as a duplicate, as a matter of a slightly different nature in the wording deserves an answer. The "cacheable" attribute that allows the same method with the same parameters to not have to round-trip to the server repeatedly (thus improving ...


0

If I understood correctly, you are developing an unlocked package and other people are developing other unlocked packages as well. After that you install them into a developer org to test. If that's the case, then you don't need to do anything besides installing the newest version of your package into the org. In API version 45.0 and later (salesforcedx ...


0

If your package is a Managed Package or Unlocked Package, you can "install" it as an update using Salesforce DX CLI: sfdx force:package:install --package "package@1.2.3" If your package is an Unmanaged Package, you must uninstall the old version to install the new. I strongly recommend using Unlocked Packages if you're not packaging for the AppExchange, ...


0

You could try to implement your flow within a lightning component that is loaded via lightning:out into the VF Page. I cannot attest to performance or permission challenges, though, since I haven't tested this approach. In any case the flow would run in Classic Styles, not Lightning Styles.


0

You would want to create an HttpCalloutMock implementation for your test class. From the documentation: Example: @isTest global class MockHttpResponseGenerator implements HttpCalloutMock { // Implement this interface method global HTTPResponse respond(HTTPRequest req) { // Optionally, only send a mock response for a specific endpoint ...


0

Turns out my problem was that I was hard coding the report Id into the report detail page. I did this just so I could see it in the builder. BUT what needs to be the case is to have the ID reference be {!recordId} , that way you can pass in whatever variable you need from links or from the report list view.


1

Reference This will not send any emails to Community users. The records are simply replicated into your partial sandbox and the user's email will appended with .invalid. Contact emails will not be changed, however, so those will need to be updated if you have any workflows or processes that may email them. Email Deliverability is set to "System Email Only" ...


0

You cannot make read-only the status field to Community Users and any other profile as well as you cannot remove it from a Page layout. One Way is that you can write a validation rule based on the Community User profile and restrict that user from changing the value. The validation rule can be something like that. ISCHANGED(Status) && $Profile.Name ...


0

The problem is solved, i have done below changes. In connected app i added this scope Access and manage your data (api) Full access (full) Perform requests on your behalf at any time (refresh_token, offline_access) Provide access to custom applications (visualforce) Provide access to your data via the Web (web) In profile i gave access to the community.


1

"Ask a question" is a standard component and requires community users to log in. The standard docs indicate that one needs to login in order to use this . https://help.salesforce.com/articleView?id=rss_ask_community.htm&type=5&sfdcIFrameOrigin=null You can create a custom component if you need this functionality to work for guest users (...


1

Unfortunately you can't hide labels, you can only "hide" navigation menu items that are of the type "Salesforce Object" via permissions. To get around this you'd need to either put all the objects in the top navigation, or create a custom component for the navigation.


0

findLocation({ locationName: location }).then( result => { console.log(result); this.locationName = result; this.showSpinner = false; }, error => { //this.showSpinner = false; console.log(error); } ); Referral Link : https://salesforceblog.tumblr.com/tagged/lwc


8

I finally found the answer to this after hours of searching. This happens when you have setup a community audience that references the record type you are attempting to deactivate. It seems as though the platform isn't able to route you to the audience as the reference that is invalid, and I couldn't find any documentation on the FieldBasedPAC object, which ...


1

As per documentation localizationService supports only ISO 8601. The date parameter can be a String, Number, or most typically a JavaScript Date. If you provide a String value, use ISO 8601 format to avoid parsing warnings. 31/12/2019 is not as per ISO 8601 format. You either need to convert that to the supported format or a valid Date object in JS....


2

If you're talking about the standard data entry modal window you get when you click the New button, you cannot prepopulate these fields by URL, either in Lightning Experience or Lightning Community. The article is referring to Lightning components on the page that have modifiable properties (i.e. the properties section for the component in the community ...


0

When you add your visual force page to the Case Layout, you can specify the height for it (using the spanner that comes up when you hover the upper right corner of the VF within the page layout edit page). Example:


1

You should put ' ', but you don't need to escape them try that one https://{myWorkplaceDomainUsed}--sandbox.cs67.my.salesforce.com/services/data/v42.0/query/?q=select+Id+from+Contact+where+Email='apple+super@gmail.com'. If you want IN you can use it like this https://{myWorkplaceDomainUsed}--sandbox.cs67.my.salesforce.com/services/data/v42.0/query/?q=select+...


0

You can call the method of first class in the below way: public with sharing class DataLoadTestingClass { public String phoneVal { get; set; } public String countryVal { get; set; } public String cityVal { get; set; } public String nameVal { get; set; } public DataloadTest__c doInsert() { DataloadTest__c dl=new DataloadTest__c(); dl.name=nameVal; dl....


0

If the method you want to call is void, then you can call with class instanse and method name. If the method is static then class name.method name public class testvf { AccountRelatedContactsOpportunities objClassInstance = new AccountRelatedContactsOpportunities(); list<Contact> lstContact = objClassInstance.getContacts(); }


0

NavigationMenu is available as of version 47 to migrate custom navigation menus created using Community Builder. Went to search on how to deploy navigation menus used in communities. Hope anyone else stumbling upon this question finds this useful.


0

Welcome to SFSE. SetupAuditTrail is valid for SOQL query. Just make sure that you are executing the SOQL in the format applicable for GET REST call The URI must be in this format: /vXX.X/query/?q=SOQL query Example of request via curl: curl https://yourInstance.salesforce.com/services/data/v47.0/query/?q=SELECT+name+from+Account -H "Authorization: ...


5

Community licenses don't support Streaming API, therefor empApi doesn't work. Streaming API is based on Push Topics and Read of Push Topics are not supported by Community License (so you can create events, but cannot subscribe to them)


7

You do not need EMP-Connector if you are using lwc. Salesforce has a lightning-emp-api base component for it (https://developer.salesforce.com/docs/component-library/bundle/lightning:empApi). The lightning/empApi module uses a shared CometD connection. You can use the provided functions from the module import { subscribe, unsubscribe, onError, ...


Top 50 recent answers are included