manza
  • Member for 8 years, 1 month
  • Last seen more than a week ago
Align lightning:button with lightning:input when input validation error occurs
Accepted answer
7 votes

My advice, try to use the native css classes, you just need to add slds-form slds-form_horizontal wrapping everything in it <lightning:layout verticalAlign="end" class="slds-form slds-...

View answer
How to detect first or last iteration of apex:repeat
2 votes

Another way slightly different to Jennifer and without a controller, is to count each time it loops, and check if the last one is the same size as the list size: <apex:variable var="cnt" value="{!...

View answer
Debug not working?
2 votes

Just in case you havent found the solution for your problem. I run into something similar, there were actually 2-3 things that i need to do to find out what was going on: I didnt have log request ...

View answer
How to get id of record create on visual workflow?
Accepted answer
2 votes

Well for everyone who has come with the same issue, this seems to be an bug on salesforce side. The code is correct, however my last screen is the one that creates the account, so if I make that ...

View answer
Datacloud.FindDuplicatesResult: not finding any duplicates when they are
Accepted answer
1 votes

So I finally found what was going on, my duplicate rule use 5 fields First Name Last Name Email Mobile Mailing Zip/Postal Code When I created the contact to find the duplicate i didnt have the ...

View answer
Trying to access unique records and the records of those unique records from the same table
Accepted answer
1 votes

If it was plain sql you could use something like DENSE_RANK() However or unfortunately this is not an option, perhaps doing something like an aggregate group by might do the trick for you? SELECT ...

View answer
CPU Limit error in trigger handler class
Accepted answer
1 votes

I dont think my below code will work if just copy and paste it, but I hope it gives you some direction, (direction I didnt have when started ;) ) As a best practice is to have 1 trigger per object ...

View answer
Adding a Custom Field to all sObjects in the same edit?
1 votes

I am not really sure what do you mean by the same edit, I am guessing you want to avoid doing this repetitive task, the best way to achieve this is using ANT, this video is abit old but it is quite ...

View answer
How to debug flow
Accepted answer
1 votes

I know this is an old thread but just in case people are stuck like i was and there seems to be something "new" that I missed. But the debug button next to run is pretty awesome!

View answer
Recommendations to style Visualforce page to match the SLDS?
1 votes

If I understood correctly, you are trying to avoid loosing the styling of the page when you set it as renderas pdf, right? I had this issue in the past (not with SLDS), in my case was with bootstrap ...

View answer
How to retrieve more than 50000 Records in a single query
1 votes

You can use something like this? (this is basically a summary of How to do batch in apex) //THIS IS HOW YOU EXECUTE //Id batchInstanceId = Database.executeBatch(new transactionRecords()); global ...

View answer
Add a field to a wave dataset
Accepted answer
1 votes

I know this is a bit old but in case it could you or new users as I think there is an easier way now. From wave you need to go to data manager, by clicking in the gear icon data manager From there ...

View answer
How to store record attachments and documents in external storage
1 votes

For the salesforce side: you need to add the related list of notes and attachemets on the template layout. For the external side: I do the same as Amr, I use Amazon sdk JS. Below a generic ...

View answer
test class for custom controller extension
1 votes

instead of CustomControllerExtensionNameccn = new CustomControllerExtensionName(); Replace for CustomControllerExtensionName ccen = new CustomControllerExtensionName(new CustomControllerName())...

View answer
Failing to Destroy a Cookie
Accepted answer
1 votes

I figure it out what was going on. In the catch section I need it to setup again the cookie: ApexPages.currentPage().setCookies(new Cookie[]{cm}); so the actual code looks like: public static ...

View answer
named credential problem
0 votes

I Had same issue, from my understanding we dont have to add the remote site if we are using named credentials. For me the error was fixed by not having a / at the end of the URL

View answer
Opportunity log a call missing in lightning
Accepted answer
0 votes

I finally was able to get it, this was missing from the Global Actions, it is quite weird as this was never deleted, it was just missing. I get the metadata from a dev org, and deploy it via ant ...

View answer
Lightning Icons (SVG) not displaying in Lightning Out
0 votes

Similar to tony, another option is to instead of opening the png, is to go directly to the svg link in a new tab(not the one in -sprite folder). So for instance, my link to the svg of accounts is: ...

View answer
CRUD FLS issue to edit task access for site guest user
0 votes

How were you able to add CRUD for the task object in the site user? that object is not in the options (only the fields), but like @crmprogdev you are not going to be able to do this, even is you set ...

View answer
how to create a bucket field, percentage in wave
Accepted answer
0 votes

I was able to find a way without going into direct SAQL: The first thing to do is changing the bar chart into a campare table (at the end we convert the table back into bar chart): Then we need to ...

View answer
getElementById inside an apex composition
Accepted answer
0 votes

As this page is part of the composition, they are actually 2 pages involve, the second VF page in my example is called: PortalSiteTemplate. I have fixed it by adding the id to that page: <apex:...

View answer
document.getelementbyid returning null
0 votes

You need to pass the outputpanel id too. Your code seems incomplete, so the below code might not work, but it should be like: document.getElementById('{!$Component.page.template.frm....

View answer
Automation of DocuSign process on Opportunity
0 votes

Double A answer is really good and detail, however, I am not sure if that answer really apply for your question, as you can achieve exactly the same without the hassle of creating a class, for hence ...

View answer
Help in bulkify trigger to camelcase fields in accounts
Accepted answer
0 votes

As my comment/edit, is a known issue with salesforce when using both person and business account and trying to retrieve the Name of a business account, this was my work around, I hope if someone is ...

View answer
pass javascript object into actionfunction reads null in apex controller
Accepted answer
0 votes

I end up doing something like this, were I pass the object as a string: VF: <apex:actionFunction name="newActivityApex" action="{!newActivity}" reRender="resultPanel" status="myStatus"> ...

View answer
Low code coverage, when production and new test class to deploy are over 80%?
Accepted answer
0 votes

So, it seems it was a real salesforce issue. For some reason the code coverage that was display in the developer console was wrong. I followed the following steps and then the developer console ...

View answer
Visual flow not able to select resource on Record create
Accepted answer
0 votes

I realize that the input field on the main screen was type text, where the field that I wanted to map was type currency. Visual flow was clever enough to filter the fields, and not display any option ...

View answer
Lightning action(Email & Task) buttons not showing on Lead
-1 votes

Did you also dragged and drop in this section? (lead layout)

View answer