Naman Bhardwaj
IndividualForum Replies Created
-
When you convert a lead, you can have a trigger to grab the attachment and associate it on account and opportunity.
-
Can you run all test in prod and then try again. If that does not work, you can try run specific tests while deploying.
-
You need to purchase license for Site.com studios first.
-
Page :
<apex:inputFile value="{!attachBody}" filename="{!attach.name}"></apex:inputFile>
<apex:button value="Save" action="{!saveProfitandLossStatement}" />
class:
public Attachment attach{get;set;}
public transient blob attachBody{get;set;}public PageReference saveProfitandLossStatement(){ //to add more payers..
PageReference pg=null;
attach.parentId = appRecord.id;
attach.body = attachBody;
insert attach;pg = new PageReference(URL.getSalesforceBaseUrl().toExternalForm()+'/apex/ViewApplicationsRecord?guid='+appRecord.id);
pg.setRedirect(true);
return pg;
}appRecord.id is the id get from URL.
-
Only User having “Download AppExchange packages” permission can download the Apps.
-
Naman
MemberApril 21, 2016 at 8:18 am in reply to: How to enable Salesforce Wave functionality in dev org?Try this link : https://nextgensalesforce.wordpress.com/2015/09/28/creating-your-very-own-salesforce-wave-application/
-
Naman
MemberApril 21, 2016 at 8:14 am in reply to: How to debug the child values in parent to child query using for loop?What error you are getting in second for loop?
As multiple contacts could be associated with single account so, to traverse the contact you would need second for loop inside first. Debug contact values in second for loop. you can do like:
for(Account aa:accs){
System.debug(aa.id);
System.debug(aa.name);
System.debug(aa.phone);for(Contact con:accs.contacts){
System.debug(con.email);
}
} -
Naman
MemberApril 18, 2016 at 2:01 pm in reply to: How to insert Account from Inbound email Attachment having Thousands of record?Try using batch class to execute the logic. Splitting the string by '\n' also produce this issue so, need to avoid that.
-
Naman
MemberApril 18, 2016 at 12:56 pm in reply to: How to create a wizard to show multiple pages using one Visualforce page without changing URL?You can make multiple sections on vf page and render them based on fulfilled condition.
-
It depend on your data limit which pagination you have to implement.
- If your data limit is under 2000, Offset based pagination can be helpful.
- If more than 2000, you can create your own custom offset functionality in apex and use that on next button click.
-
OR you can use informatica to replicate the data and its schema to the similar relational database.
-
Hi Mark,
You can try free app from AppExchange if that fulfill your needs. Here is the link: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000003KNErEAO
-
Try this:
string companyName = Label.Company;
companyName = companyName.toLowerCase();
-
You have to use standard controller on your vf page.
-
Naman
MemberApril 18, 2016 at 12:10 pm in reply to: Not able to create a Master Detail field in Salesforce. Need assistance.Make sure that both of the objects having no records before creating master detail.
-
Naman
MemberApril 18, 2016 at 11:29 am in reply to: Splitting label values on '\n' is not getting same values on comparingYes, thats correct but look at the code you are comparing
if(objWrap.label == c ){
objWrap.selected = true;
}objWrap.label is not yet bind to the string type so you have to ignore case separately.
-
You need to do it in two sections.
- Dedupe existing data - you can use demand tools to dedupe existing data in salesforce.
- Set up dedupe app to restrict any new duplicate data.
-
Naman
MemberApril 14, 2016 at 9:08 am in reply to: Skip trigger while I insert or update my custom object record?apart from that without using any checkbox and custom settings. ?
-
Naman
MemberApril 14, 2016 at 8:53 am in reply to: Skip trigger while I insert or update my custom object record?Yeah, i know that will fire on insert and update call. But i want to skip it, is any way to do it??
-
Naman
MemberApril 14, 2016 at 8:48 am in reply to: Share with me an External Lookup field in Salesforce Example?External objects can have use of external look up relationships. Go through the below link to set up external object in your org.
-
Naman
MemberApril 14, 2016 at 8:34 am in reply to: Splitting label values on '\n' is not getting same values on comparingYou must had some Camel case in your string so equalIgnoreCase worked.
-
Naman
MemberApril 14, 2016 at 8:30 am in reply to: What is salesforce health cloud? How it is being used for healthcare segment?In discussion while recent releases of salesforce, they are connecting with some nice health groups and trying to incorporate that within Salesforce.
-
Naman
MemberApril 14, 2016 at 8:27 am in reply to: How to import data of a object from one org to another without using data loader and integration?You can use external object to achieve your requirement. For have that set up, you need to set up the external data source in from one salesforce org to another salesforce org. Provide identity type as "Named Principal" and Authentication Protocol as "Password". Give your username and password to set up external data source. After that set up external object and provide External Data Source - <select your data source that you have created>. All records of your external salesforce org would be available in second SF org under external object. This is just like the custom object in salesforce to use it. Enjoy 🙂
-
Best practice to have the same API version for all your apex classes between 20.0 to 34.0.