New answers tagged

0

Probably it would be a better idea to add to the email message both status code and status message. Status code is provided not for human readability but more for identifying the status of the request and to not be dependent on server implementation. Different servers could provide different messages for the same status. So that is why you should better to ...


0

You could also do this with a screen flow. Give the user the choice in the lookups, then create a record with the correct recordtype and take them to that record.


0

I finally figured this out. This is actually a known issue between VF and background Apex changes (thanks Salesforce), along with navigation back to a Standard Page via PageReference: https://success.salesforce.com/issues_view?id=a1p3A0000001C8QQAU&title=data-not-updated-in-ui-after-an-apex-update-in-lightning-experience I found this Post that ...


1

You can edit the lightning page > click on "Highlights Panel" > update "Visible Action Buttons (desktop only)"


3

I've attached a screen shot. Basically you just: Click Edit Page to edit the Lightning Page Click on the Highlights Panel Component to select it Then you should see the Visible Action Buttons box on the right side


0

The ui namespace components are being retired and won't be supported beyond Summer 21. See the release notes. They include a list of suggested replacements within the lightning namespace. The ui components are scheduled for retirement in all Salesforce orgs in Summer ’21. Use similar components in the lightning namespace instead. Retiring our legacy ...


1

I'm assuming you're trying to get around the limitation with calendars in Lightning Experience where only one field can be selected as the Field Name to Display. As you've already discovered, you can combine fields in a formula field. But the way Salesforce built its Calendar product, it looks like any line breaks will be stripped out of event names, ...


0

I found the cause! The original VF Page used SF Api version 40 and the new one, version 47. I changed the new page to Api version 40, and now it looks the same. Now all I have to do now is figure out how to make it look the same with Api 47 - I don't want it stuck with an Api from 2017!


0

Try the below XPath: Home xpath = "//a[@title='Home']" String homeHREFVal = driver.findElement(By.xpath("//a[@title='Home']")).getAttribute("href"); To click the Home button: driver.findElement(By.xpath("//a[@title='Home']/span")); or driver.findElement(By.xpath("//a/span[text()='Home']"));


0

You should be able to use Global Quick Actions to create a similar functionality for your users with the + menu In Lightning up near Help. Check out the documentation here: https://help.salesforce.com/articleView?id=actions_overview_global.htm&type=5


0

I had the same requirement to self refresh a component. The details are discussed below briefly. The approach is based on the idea suggested by Fabien above. Steps to Self Refresh a Component SCENARIO :: The scenario is to create a Contact record via LDS. I have a Lightning Card with the Contact Input Fields. Once the Contact is saved I wanted to refresh ...


0

All the sections are opening and closing at the same time as the email message sections have the same localId "emaildetail". you should ideally have a way to identify which record you are clicking to show or hide the detail. I have made few changes to the code. Added "sectionId" attribute to capture the recordId of emailmessage we want to show. and aura:if ...


0

This is a limitation in Lightning and mobile app. addError(errorMsg, escape) Marks a trigger record with a custom error message, specifies if the error message should be escaped, and prevents any DML operation from occurring. Parameters errorMsg :- Type: String The error message to mark the record with. escape:-Type: Boolean Indicates whether any HTML ...


1

Instead of using Lightning Card to achieve this, use Lightning Layout Item & write a Div tag inside it. Then apply this Class & CSS to it - style:"border: 2px solid rgb(101, 153, 205);" & class="slds box". Below is an example of it will look. I used it in my case.


0

There is no way currently to customize or hide the popup when we select to create new record from lookup search. There's an ugly hack for validating record type selected via Lookup Filter Criteria on the lookup field. This will prevent the users from saving any record with incorrect record type mapped. If you really need to bypass "Create New" option, then ...


0

The quick action would also serve your purpose although the user experience will be different. Create two quick action each for different record types and set pre-defined values to those lookups. See a sample example:- https://salesforcediaries.com/2019/05/28/replacing-url-hacks-with-pre-defined-actions-in-lightning-experience/ Some other possible ...


0

You can achieve it by using a proxy formula variable. This is my test flow: In Get Account element I retrieve the record from the Lightning Page with only one additional field - TestNumField__c which I use to control the visibility of one of Test Screen's components: Here's the defined formula variable: Which I use for setting component's visibility: ...


0

In your lightning component bundle, allow Lightning Tab as a target: <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> <targets> <target>lightning__Tab</target> </targets> </LightningComponentBundle> Go to Setup > Tabs > Lightning Component Tabs. Click New, then choose your ...


0

Since it's opening a Pop-up, So for the current context that pop-up is the window and it is trying to redirect the Pop-up window which will not work at all. try to do as... window.top.location.href = redirectURL; but put a check for UI as well, do it only if current UI is lightning. You have methods to check for UI in Apex.


0

Were you able to solve this? I had a similar issue when trying to display the label on top and the value below, and I was able to solve it using the new attribute density for the lightning:recordViewForm by setting it as comfy. Source: https://releasenotes.docs.salesforce.com/en-us/summer19/release-notes/rn_aura_components.htm


0

I am using plain web custom components. Running into same issue with drag and drop. This might be a bug. To make this work I have to wrap the dropzone in div with class called target and do: const targets = document.querySelectorAll(".target"); targets.forEach(target => { target.addEventListener("dragover", handle_ondragover); target....


0

Not all files are available for preview, some may some may not due to the content it contains. You mentioned CSV , can you see if it matches the exceptions present here. Excel: Special formatting such as complex tables, embedded charts, and shading. Hidden columns or rows. Tables or cell formatting that extends beyond the data set unnecessarily. ...


0

When preparing articles for import, if you want to import the body of the article in rich text, then you do need to convert the body of each article to a separate HTML file. This means that if you're importing 100 articles, you would have 1 CSV file that lists all the articles & 100 HTML files (which contain the rich text content for each article). To ...


1

To use Javascript and a lightning web component instead of aura you can use a dynamic class change variable for the section. <template> <div id="ExpandableCalendarSection" class={BookCalClass}> <h3 class="slds-section__title" style='padding-bottom:0;'> <button aria-controls="expandoBookingCalendar" aria-expanded="true" ...


0

This link has information on how to get a survey link: In the Survey Builder, select Send | Get Link. Select whether you want to send your survey to participants within your company or outside your company. Select the settings for your survey invitation. Copy the survey link, and send it to your participants. Once you get the link you can ...


Top 50 recent answers are included