-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
31Questions
-
42Replies
A catch statement that catches an exception only to rethrow it should be avoided
I am getting this error in sonarqube report, please suggest me how to avoid. below is the piece of code giving error.
Catch(Exception ex)
{
throw ex;
}
Catch(Exception ex)
{
throw ex;
}
- Chubby
- November 19, 2020
- Like
- 0
- Continue reading or reply
File size validation in apex
Hi team,
I have a requirement where I have VF page and when I choose a file to upload I need to validate file size and display error message if it is more size. After successful upload page should be redirected back to the parent object. I tried in apex and ended up with view state error. Please help to solve this
Thanks In advance.
I have a requirement where I have VF page and when I choose a file to upload I need to validate file size and display error message if it is more size. After successful upload page should be redirected back to the parent object. I tried in apex and ended up with view state error. Please help to solve this
Thanks In advance.
- Chubby
- May 30, 2019
- Like
- 0
- Continue reading or reply
Document upload to External system from salesforce
Hello Everybody,
We have integration requirement in our project where we need to send documents (PDF,Text,Emails etc) to external system. We need to have a Button on record page, once we click on that button few validations to be performaed after that need to display pop up window to browse files from local machine. Once we browse the file, size should be validated, if size is greater than default should display a message if everything is ok then a record should be created under notes & attachements section. Can someone pleas help me till this point how do I validate all these stuff upon button click. Later I need to send the file from salesforce.
Thanks,
Gowthami.
We have integration requirement in our project where we need to send documents (PDF,Text,Emails etc) to external system. We need to have a Button on record page, once we click on that button few validations to be performaed after that need to display pop up window to browse files from local machine. Once we browse the file, size should be validated, if size is greater than default should display a message if everything is ok then a record should be created under notes & attachements section. Can someone pleas help me till this point how do I validate all these stuff upon button click. Later I need to send the file from salesforce.
Thanks,
Gowthami.
- Chubby
- May 10, 2019
- Like
- 0
- Continue reading or reply
Need help with integration
Hi All,
Anybody out there who can help with API calls/integration requirement in my project. I am new to integration requirements so looking for help. Below is my requirement.
I have Opportunity object where i need to place a button 'SendRequest'. When user clicks on this button i need to validate some matching criteria. If criteria met then i need to send request with few fields info like opportunity type,stage, createddate to external system and update few fileds on opportunity upon receiving response.
Please help me to achieve this task.
Thanks In Advance.
Anybody out there who can help with API calls/integration requirement in my project. I am new to integration requirements so looking for help. Below is my requirement.
I have Opportunity object where i need to place a button 'SendRequest'. When user clicks on this button i need to validate some matching criteria. If criteria met then i need to send request with few fields info like opportunity type,stage, createddate to external system and update few fileds on opportunity upon receiving response.
Please help me to achieve this task.
Thanks In Advance.
- Chubby
- January 22, 2019
- Like
- 0
- Continue reading or reply
how to pull specific object record value when there is no relationship
Hi All,
I have Opportunity object having a field called Control(text). Another object Control with fields Control(Number) and State(text). Both are not related to eachother. Now my requirement is when opportunity control is updated, i need to search that value in Control object and pull specific state value on to opportunity. Please suggest how to achieve this.
Thanks.
I have Opportunity object having a field called Control(text). Another object Control with fields Control(Number) and State(text). Both are not related to eachother. Now my requirement is when opportunity control is updated, i need to search that value in Control object and pull specific state value on to opportunity. Please suggest how to achieve this.
Thanks.
- Chubby
- December 24, 2018
- Like
- 0
- Continue reading or reply
Can we resend a specific mail once mail is sent in activity history
Hi All,
I have a requirement stating when I send an email using Send Email button in Activity history and open it by clicking subject, I want to place Resend button. When I click Resend that particular mail should go again. How can we do this? please sugest me which approach i can follow.
Thanks.
I have a requirement stating when I send an email using Send Email button in Activity history and open it by clicking subject, I want to place Resend button. When I click Resend that particular mail should go again. How can we do this? please sugest me which approach i can follow.
Thanks.
- Chubby
- November 21, 2018
- Like
- 0
- Continue reading or reply
fetch child records in custom button javascript written on parent
Hi All,
Can we write SOQL inside button scripting to fetch child records. I tried something like below.
var reocrds = sforce.connection.query(here parent to child query) but it doesn't seem to be working.
Please help me know how can i do this.
Thanks.
Can we write SOQL inside button scripting to fetch child records. I tried something like below.
var reocrds = sforce.connection.query(here parent to child query) but it doesn't seem to be working.
Please help me know how can i do this.
Thanks.
- Chubby
- October 16, 2018
- Like
- 0
- Continue reading or reply
Update check box on parent if child record with specific name found.
Hi All,
I have a requirement where i have to fetch child records with specific name. If found i need to update check box to true on parent object.
Please help me how can i do that.
Thanks In Advance.
I have a requirement where i have to fetch child records with specific name. If found i need to update check box to true on parent object.
Please help me how can i do that.
Thanks In Advance.
- Chubby
- October 16, 2018
- Like
- 0
- Continue reading or reply
Auto launched flow to update child records when parent updated
Hi All,
I have a requirement to update field on child records when a field on its aasociated parent gets updated. I want to achieve this using flows. I am new to flows so could not able to do. Can anyone please help me.
Thanks.
I have a requirement to update field on child records when a field on its aasociated parent gets updated. I want to achieve this using flows. I am new to flows so could not able to do. Can anyone please help me.
Thanks.
- Chubby
- September 26, 2018
- Like
- 0
- Continue reading or reply
display one child record id on another child record
Hi All,
I have the below requirement. I have one parent and 2 childs. i want to get ids of two child records and update a field with id of child 2 on child1 and vice versa. How can i do this?
Thanks.
I have the below requirement. I have one parent and 2 childs. i want to get ids of two child records and update a field with id of child 2 on child1 and vice versa. How can i do this?
Thanks.
- Chubby
- August 14, 2018
- Like
- 0
- Continue reading or reply
How to show chatter post under show feed on record detail page
Hello All,
I am posting a custom chatter message to chatter. Can i track that message under show feed on record detail page. Is there any possibility?
Thanks for your help.
I am posting a custom chatter message to chatter. Can i track that message under show feed on record detail page. Is there any possibility?
Thanks for your help.
- Chubby
- July 30, 2018
- Like
- 0
- Continue reading or reply
how to restrict closing one milestone without closing other milestone
Hi All,
Please help me with the below requirement.
I have parent object Opportunity and child object Milestones. Opportunity has two milestones M1 and M2 which has status field. I want to restrict changing the status to completed on M1 unless M2 is completed. Can wedo this through VR?
Any thoughts appreciated.
Thanks.
Please help me with the below requirement.
I have parent object Opportunity and child object Milestones. Opportunity has two milestones M1 and M2 which has status field. I want to restrict changing the status to completed on M1 unless M2 is completed. Can wedo this through VR?
Any thoughts appreciated.
Thanks.
- Chubby
- June 19, 2018
- Like
- 0
- Continue reading or reply
How to navigate to child record page from other child record using hyperlink
Hi Folks,
I have a requirement where one parent has 2 childs. Now I am on child1 record, here i need to have hyperlink let's say child2 and when I click the hyperlink it should take me to that child2 record page. Please suggest how to implement this.
Thanks in Advance.
I have a requirement where one parent has 2 childs. Now I am on child1 record, here i need to have hyperlink let's say child2 and when I click the hyperlink it should take me to that child2 record page. Please suggest how to implement this.
Thanks in Advance.
- Chubby
- June 18, 2018
- Like
- 0
- Continue reading or reply
Dynamic Subject in visualforce email template based on value of field
Hi all,
I have a requirement in visualforce Email template. I need to conditionally display subject for Email templates based on a field value. I found the below one in some blog.
<messaging:emailTemplate subject="{!IF(relatedTo.LeadSource = 'Web','This is PG1 subject', IF(relatedTo.LeadSource = 'Other','This is PG2 subject','false') )}" recipientType="Lead" relatedToType="Lead">
<messaging:plainTextEmailBody>
{!
IF(relatedTo.LeadSource = "Web","This is PG1 email"
,
IF(relatedTo.LeadSource = "Other","This is PG2 email ","false")
)
}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But in the subject i want to display Leasd source as well. Subject would be like "This is PG1 Email Web"/"This is PG1 Email Other".
Please help me with this requirement.
Thanks.
I have a requirement in visualforce Email template. I need to conditionally display subject for Email templates based on a field value. I found the below one in some blog.
<messaging:emailTemplate subject="{!IF(relatedTo.LeadSource = 'Web','This is PG1 subject', IF(relatedTo.LeadSource = 'Other','This is PG2 subject','false') )}" recipientType="Lead" relatedToType="Lead">
<messaging:plainTextEmailBody>
{!
IF(relatedTo.LeadSource = "Web","This is PG1 email"
,
IF(relatedTo.LeadSource = "Other","This is PG2 email ","false")
)
}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But in the subject i want to display Leasd source as well. Subject would be like "This is PG1 Email Web"/"This is PG1 Email Other".
Please help me with this requirement.
Thanks.
- Chubby
- May 14, 2018
- Like
- 0
- Continue reading or reply
Split the comma separated values and check length of each value
Hi All,
I have a requirement where the field holds comma separated values. Let's say 1234,4567,7890 like this. I want to split these values and check each value length. If length is <4 then error message should be displayed to user. Please help me how to achive this. I know that i should use split method first but after that how to check each field length?
Your inputs appreciated.
Thanks.
I have a requirement where the field holds comma separated values. Let's say 1234,4567,7890 like this. I want to split these values and check each value length. If length is <4 then error message should be displayed to user. Please help me how to achive this. I know that i should use split method first but after that how to check each field length?
Your inputs appreciated.
Thanks.
- Chubby
- April 25, 2018
- Like
- 0
- Continue reading or reply
field rendered on vf pge is not visible on edit page
Hi,
I am rendering one field on VF page and saving a record by populating value on rendered field. When I edit that saved record that rendered field is not visible on the edit page. Can someone help me to understand what might be the reason.
Thakns.
I am rendering one field on VF page and saving a record by populating value on rendered field. When I edit that saved record that rendered field is not visible on the edit page. Can someone help me to understand what might be the reason.
Thakns.
- Chubby
- April 08, 2018
- Like
- 0
- Continue reading or reply
How to display the rendered field exactly below the other field based on which rendering
Hi,
I am rendering a picklist field based on text field null or not. I want the rendered field exactly below the text field. To achieve this I am using PageblocksectionItem and Panelgrid but this is interrupting alignments. Can any one suggest other ways without interrupting the alignments.
Thanks.
I am rendering a picklist field based on text field null or not. I want the rendered field exactly below the text field. To achieve this I am using PageblocksectionItem and Panelgrid but this is interrupting alignments. Can any one suggest other ways without interrupting the alignments.
Thanks.
- Chubby
- April 08, 2018
- Like
- 0
- Continue reading or reply
render field only if other field is valued
Hi All,
I need to render a picklist field if other text field is valued. How to check if the field is valued or not? Can someone please help me this.
Thanks In Advance.
I need to render a picklist field if other text field is valued. How to check if the field is valued or not? Can someone please help me this.
Thanks In Advance.
- Chubby
- March 22, 2018
- Like
- 0
- Continue reading or reply
How to make a field manual entry for group of users
Hi All,
I have a requirement where I need a field to be manual entry for some set of users. In the existing functioanlty the field is Auto populate through Apex calculation. Any suggestions appreciated.
Thanks in Advance.
I have a requirement where I need a field to be manual entry for some set of users. In the existing functioanlty the field is Auto populate through Apex calculation. Any suggestions appreciated.
Thanks in Advance.
- Chubby
- March 19, 2018
- Like
- 0
- Continue reading or reply
How to get contact associated account filed value
Hi All,
I have Account object and Issue(custom object). Issue object have look up relation with Account. I have a button called create Issue on Account object which is overriden by VF page. When I click on create Issue, i want to render some fields based on associated account region. so in my controller i want to check something like below.
If(Issue__c.Account__r.Region__c == 'abc') is this the correct way? I am getting the expected value. Can some one please help me with this pls?
Thanks.
I have Account object and Issue(custom object). Issue object have look up relation with Account. I have a button called create Issue on Account object which is overriden by VF page. When I click on create Issue, i want to render some fields based on associated account region. so in my controller i want to check something like below.
If(Issue__c.Account__r.Region__c == 'abc') is this the correct way? I am getting the expected value. Can some one please help me with this pls?
Thanks.
- Chubby
- February 02, 2018
- Like
- 0
- Continue reading or reply
File size validation in apex
Hi team,
I have a requirement where I have VF page and when I choose a file to upload I need to validate file size and display error message if it is more size. After successful upload page should be redirected back to the parent object. I tried in apex and ended up with view state error. Please help to solve this
Thanks In advance.
I have a requirement where I have VF page and when I choose a file to upload I need to validate file size and display error message if it is more size. After successful upload page should be redirected back to the parent object. I tried in apex and ended up with view state error. Please help to solve this
Thanks In advance.
- Chubby
- May 30, 2019
- Like
- 0
- Continue reading or reply
Document upload to External system from salesforce
Hello Everybody,
We have integration requirement in our project where we need to send documents (PDF,Text,Emails etc) to external system. We need to have a Button on record page, once we click on that button few validations to be performaed after that need to display pop up window to browse files from local machine. Once we browse the file, size should be validated, if size is greater than default should display a message if everything is ok then a record should be created under notes & attachements section. Can someone pleas help me till this point how do I validate all these stuff upon button click. Later I need to send the file from salesforce.
Thanks,
Gowthami.
We have integration requirement in our project where we need to send documents (PDF,Text,Emails etc) to external system. We need to have a Button on record page, once we click on that button few validations to be performaed after that need to display pop up window to browse files from local machine. Once we browse the file, size should be validated, if size is greater than default should display a message if everything is ok then a record should be created under notes & attachements section. Can someone pleas help me till this point how do I validate all these stuff upon button click. Later I need to send the file from salesforce.
Thanks,
Gowthami.
- Chubby
- May 10, 2019
- Like
- 0
- Continue reading or reply
Can we resend a specific mail once mail is sent in activity history
Hi All,
I have a requirement stating when I send an email using Send Email button in Activity history and open it by clicking subject, I want to place Resend button. When I click Resend that particular mail should go again. How can we do this? please sugest me which approach i can follow.
Thanks.
I have a requirement stating when I send an email using Send Email button in Activity history and open it by clicking subject, I want to place Resend button. When I click Resend that particular mail should go again. How can we do this? please sugest me which approach i can follow.
Thanks.
- Chubby
- November 21, 2018
- Like
- 0
- Continue reading or reply
fetch child records in custom button javascript written on parent
Hi All,
Can we write SOQL inside button scripting to fetch child records. I tried something like below.
var reocrds = sforce.connection.query(here parent to child query) but it doesn't seem to be working.
Please help me know how can i do this.
Thanks.
Can we write SOQL inside button scripting to fetch child records. I tried something like below.
var reocrds = sforce.connection.query(here parent to child query) but it doesn't seem to be working.
Please help me know how can i do this.
Thanks.
- Chubby
- October 16, 2018
- Like
- 0
- Continue reading or reply
Update check box on parent if child record with specific name found.
Hi All,
I have a requirement where i have to fetch child records with specific name. If found i need to update check box to true on parent object.
Please help me how can i do that.
Thanks In Advance.
I have a requirement where i have to fetch child records with specific name. If found i need to update check box to true on parent object.
Please help me how can i do that.
Thanks In Advance.
- Chubby
- October 16, 2018
- Like
- 0
- Continue reading or reply
display one child record id on another child record
Hi All,
I have the below requirement. I have one parent and 2 childs. i want to get ids of two child records and update a field with id of child 2 on child1 and vice versa. How can i do this?
Thanks.
I have the below requirement. I have one parent and 2 childs. i want to get ids of two child records and update a field with id of child 2 on child1 and vice versa. How can i do this?
Thanks.
- Chubby
- August 14, 2018
- Like
- 0
- Continue reading or reply
How to navigate to child record page from other child record using hyperlink
Hi Folks,
I have a requirement where one parent has 2 childs. Now I am on child1 record, here i need to have hyperlink let's say child2 and when I click the hyperlink it should take me to that child2 record page. Please suggest how to implement this.
Thanks in Advance.
I have a requirement where one parent has 2 childs. Now I am on child1 record, here i need to have hyperlink let's say child2 and when I click the hyperlink it should take me to that child2 record page. Please suggest how to implement this.
Thanks in Advance.
- Chubby
- June 18, 2018
- Like
- 0
- Continue reading or reply
Dynamic Subject in visualforce email template based on value of field
Hi all,
I have a requirement in visualforce Email template. I need to conditionally display subject for Email templates based on a field value. I found the below one in some blog.
<messaging:emailTemplate subject="{!IF(relatedTo.LeadSource = 'Web','This is PG1 subject', IF(relatedTo.LeadSource = 'Other','This is PG2 subject','false') )}" recipientType="Lead" relatedToType="Lead">
<messaging:plainTextEmailBody>
{!
IF(relatedTo.LeadSource = "Web","This is PG1 email"
,
IF(relatedTo.LeadSource = "Other","This is PG2 email ","false")
)
}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But in the subject i want to display Leasd source as well. Subject would be like "This is PG1 Email Web"/"This is PG1 Email Other".
Please help me with this requirement.
Thanks.
I have a requirement in visualforce Email template. I need to conditionally display subject for Email templates based on a field value. I found the below one in some blog.
<messaging:emailTemplate subject="{!IF(relatedTo.LeadSource = 'Web','This is PG1 subject', IF(relatedTo.LeadSource = 'Other','This is PG2 subject','false') )}" recipientType="Lead" relatedToType="Lead">
<messaging:plainTextEmailBody>
{!
IF(relatedTo.LeadSource = "Web","This is PG1 email"
,
IF(relatedTo.LeadSource = "Other","This is PG2 email ","false")
)
}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But in the subject i want to display Leasd source as well. Subject would be like "This is PG1 Email Web"/"This is PG1 Email Other".
Please help me with this requirement.
Thanks.
- Chubby
- May 14, 2018
- Like
- 0
- Continue reading or reply
Split the comma separated values and check length of each value
Hi All,
I have a requirement where the field holds comma separated values. Let's say 1234,4567,7890 like this. I want to split these values and check each value length. If length is <4 then error message should be displayed to user. Please help me how to achive this. I know that i should use split method first but after that how to check each field length?
Your inputs appreciated.
Thanks.
I have a requirement where the field holds comma separated values. Let's say 1234,4567,7890 like this. I want to split these values and check each value length. If length is <4 then error message should be displayed to user. Please help me how to achive this. I know that i should use split method first but after that how to check each field length?
Your inputs appreciated.
Thanks.
- Chubby
- April 25, 2018
- Like
- 0
- Continue reading or reply