-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
55Questions
-
46Replies
Can we create a dynamic table in HTML or custom email template?
I have a requirement for which I have to send Some opportunity field data and create the table for that data. Firstly I use vf email template to create the table But now because I have to send a part of that data to another recipient too, my what id logic is not working with the other recipient part.
So I am thinking to call Html or custom instead of vf template. Is that possible to create to dynamic table in Htm and custom email templates?
Thanks in Advance
So I am thinking to call Html or custom instead of vf template. Is that possible to create to dynamic table in Htm and custom email templates?
Thanks in Advance
-
- Shubham Bansal 45
- May 12, 2021
- Like
- 0
- Continue reading or reply
Need Help in calling a apex method from helper in Lightning component.
Hi all I have a strange requirement of calling a helper method in which an apex method is calling, the trick is that I have to call my helper method with a delay of 30 sec.
But in some scenarios before the 30 sec, my component Dom is getting destroyed and in the helper, I face the error of set params of undefined.
I am not sure it is because Dom is destroyed or any other reason.
But in some scenarios before the 30 sec, my component Dom is getting destroyed and in the helper, I face the error of set params of undefined.
I am not sure it is because Dom is destroyed or any other reason.
-
- Shubham Bansal 45
- December 11, 2020
- Like
- 0
- Continue reading or reply
how can we detect in code that chat with agent is started successfully or not
I have a requirement to run a run when chat with agent does not start successfully or either user cancel chat request.
is there any way to detect that chat is started or not .
is there any way to detect that chat is started or not .
-
- Shubham Bansal 45
- December 09, 2020
- Like
- 0
- Continue reading or reply
Can we get object name along with with other information of prec-chat form fields.
Can we get the object name along with other information of pre-chat form fields?
I have a custom field language present in contact and case both and I want to differentiate between them but the API name is also the same.
Therefore I want the fields object names so that I can differentiate between them.
Any help is appreciated , Thanks in Advance
I have a custom field language present in contact and case both and I want to differentiate between them but the API name is also the same.
Therefore I want the fields object names so that I can differentiate between them.
Any help is appreciated , Thanks in Advance
-
- Shubham Bansal 45
- December 08, 2020
- Like
- 0
- Continue reading or reply
I want to run an aura component code when my live agent chat successfully starts
I want to run an aura component code when my live agent chat successfully starts.
Basically, I want to create a record if my chat get successfully But I am not able to find how to check whether the chat is started successfully or not, If anyone knows please help, I am implementing this on Salesforce lightning
Basically, I want to create a record if my chat get successfully But I am not able to find how to check whether the chat is started successfully or not, If anyone knows please help, I am implementing this on Salesforce lightning
-
- Shubham Bansal 45
- December 07, 2020
- Like
- 0
- Continue reading or reply
I have a pacakge in my dev org and i want to upload that package on appexchange
I have a package in my dev org and I want to upload that package on app exchange, can anyone help me thi by telling the steps of doing this
-
- Shubham Bansal 45
- December 03, 2020
- Like
- 0
- Continue reading or reply
how to create a partner business org so that I can upload my package on app exchange
how to create a partner business org so that I can upload my package on the app exchange
-
- Shubham Bansal 45
- December 02, 2020
- Like
- 0
- Continue reading or reply
I want to apply on change on my one of input field of prechat.
I have a custom prechat form and i want to apply on change in one field among all the fields but i am not able to able on on change because in case of prechat fiekds are created dynmically with out my control .
I follow this link to create custom prechat: https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_lightning_components_prechat_sample_aura.htm
could any one help?Its urgent
I follow this link to create custom prechat: https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_lightning_components_prechat_sample_aura.htm
could any one help?Its urgent
-
- Shubham Bansal 45
- November 19, 2020
- Like
- 0
- Continue reading or reply
Can we use Script or java scripts in email templates?
I have an email template and my requirement is that on my email there should be a more or less button which shows data.
When the user clicks on more the whole text should appear and when the user clicks on less then the partial text should appear.
When the user clicks on more the whole text should appear and when the user clicks on less then the partial text should appear.
-
- Shubham Bansal 45
- October 22, 2020
- Like
- 0
- Continue reading or reply
can we call lightning or lwc custom component in visual force email template?
can we call lightning or lwc custom component in visual force email template?
If yes give me an example that will be very helpful.
If yes give me an example that will be very helpful.
-
- Shubham Bansal 45
- October 12, 2020
- Like
- 0
- Continue reading or reply
Can we use media queries in visual force component?
I am using vf component in vf email template. but for the mobile view some UI issue occur,I try to use media query but id doesn't work, can anybody help in fixing this.
-
- Shubham Bansal 45
- October 12, 2020
- Like
- 0
- Continue reading or reply
Not able to see communities option in salesforce 30 days enterprise/trial version
Not able to see communities option in salesforce 30 days enterprise/trial version.
Can anybody tell why I am not able to see the communities option in the salesforce trail version?
Can anybody tell why I am not able to see the communities option in the salesforce trail version?
-
- Shubham Bansal 45
- October 12, 2020
- Like
- 0
- Continue reading or reply
I have a custom visualforce component for my vf email template. But I am not atble to make that template reponsive according to mobile screen .
I have a custom visual force component for my vf email template. But I am not able to make that template responsive according to the mobile screen.
I have tried to use media query but media query not works on vf component.
Also, only some inline queries are worked in my case can anyone help.
I have tried to use media query but media query not works on vf component.
Also, only some inline queries are worked in my case can anyone help.
-
- Shubham Bansal 45
- October 09, 2020
- Like
- 0
- Continue reading or reply
Hello , My community standard emails are not workin i have checked test deliverability and my email ids are also correct but my ucommunity user doesnot recieive any emails except welcome email
Hello, My community standard emails are not working I have checked test deliverability and my email ids are also correct but my community user does not receive any emails except welcome email.
Standard emails like select as best answer, reply on the group and all other emails are not working.
My org and community both are newly created.
Please help its urgent.
Standard emails like select as best answer, reply on the group and all other emails are not working.
My org and community both are newly created.
Please help its urgent.
-
- Shubham Bansal 45
- October 07, 2020
- Like
- 0
- Continue reading or reply
Is Question object is still functioning , I am not able to see Question object in my dev org.
Is the Question object is still functioning, I am not able to see the Question object in my dev org.
Its Urgent, Help will be appreciated.
Its Urgent, Help will be appreciated.
-
- Shubham Bansal 45
- September 24, 2020
- Like
- 0
- Continue reading or reply
I want to send custom mail to the user whose answer in community is selected as best answer.
when an answer is selected as best the id of that answer is stored in feeditem field but i want to send an immediate mail when answer is selected as best.
i have tried using after update trigger on feeditem but its no use.
can any one help.
i have tried using after update trigger on feeditem but its no use.
can any one help.
-
- Shubham Bansal 45
- September 22, 2020
- Like
- 0
- Continue reading or reply
Question object in salesforce
Question object is not appearing in developer console
How can i use Question object in my org?
How can i use Question object in my org?
-
- Shubham Bansal 45
- September 21, 2020
- Like
- 0
- Continue reading or reply
How to delete a target property from config elements from lwc.
How to delete a target property from config elements from lwc.
for exx:
<targetConfigs>
<targetConfig targets="lightningCommunity__Default">
<property name="recordId" type="String" label="Record ID" default="{!recordId}" description="The value should be {!recordId}."/>
<property name="objectApiName" type="String" label="Object Name" description="Automatically bind the page's object name to the component variable"
default="{!objectApiName}" />
</targetConfig>
</targetConfigs>
i want to delete property objectApiName but when i remove code or delete from community page and publish that then also it return me errot that i can delete a config property,
for exx:
<targetConfigs>
<targetConfig targets="lightningCommunity__Default">
<property name="recordId" type="String" label="Record ID" default="{!recordId}" description="The value should be {!recordId}."/>
<property name="objectApiName" type="String" label="Object Name" description="Automatically bind the page's object name to the component variable"
default="{!objectApiName}" />
</targetConfig>
</targetConfigs>
i want to delete property objectApiName but when i remove code or delete from community page and publish that then also it return me errot that i can delete a config property,
-
- Shubham Bansal 45
- September 21, 2020
- Like
- 0
- Continue reading or reply
I am able to get record id from community topic and collaboration group page but not able to get objectApiName in Lwc
I am able to get record id from community topic and collaboration group page but not able to get objectApiName in Lwc.
Could any one help mw to get objectApiName of community screen in lwc.
Its urgent
Could any one help mw to get objectApiName of community screen in lwc.
Its urgent
-
- Shubham Bansal 45
- September 18, 2020
- Like
- 0
- Continue reading or reply
Adding "Print" Button on Record Detail Page
I need to add "Printable View" Button to the Record page of Account object for only two Record types. If they click Printable view button it navigate to next tab and show the Account Detail Record as well as the related list records. Any suggestion would be helpful to implement this functonality. Thanks!
- JohnDurai
- December 21, 2020
- Like
- 0
- Continue reading or reply
Help with test class on trigger that creates/adds contact to email-to-case
Hello,
I have a trigger that if a email-to-case is created without a contact, a contact will be created and associated with that case based on the supplied email info.
I am just not a developer and have tried so hard to write a test class and not getting anywhere close. Please help I will never get this alone.
Here is my trigger:
trigger TriggertoCreateContactformCase on Case (before insert) {
List<String> UseremailAddresses = new List<String>();
//First exclude any cases where the contact is set
for (Case c:Trigger.new) {
if (c.ContactId==null &&
c.SuppliedEmail!=''|| c.SuppliedEmail==null)
{
UseremailAddresses.add(c.SuppliedEmail);
}
}
//Now we have a nice list of all the email addresses. Let's query on it and see how many contacts already exist.
List<Contact> listofallContacts = [Select Id,Email From Contact Where Email in:UseremailAddresses];
Set<String> ExstingEmails = new Set<String>();
for (Contact c:listofallContacts) {
ExstingEmails.add(c.Email);
}
Map<String,Contact> emailToContactMap = new Map<String,Contact>();
List<Case> casesToUpdate = new List<Case>();
for (Case c:Trigger.new) {
if (c.ContactId==null &&
c.SuppliedName!=null &&
c.SuppliedEmail!=null &&
c.SuppliedName!='' &&
!c.SuppliedName.contains('@') &&
c.SuppliedEmail!='' &&
!ExstingEmails.contains(c.SuppliedEmail))
{
//The case was created with a null contact
//Let's make a contact for it
String[] Emailheader = c.SuppliedName.split(' ',2);
if (Emailheader.size() == 2)
{
Contact conts = new Contact(FirstName=Emailheader[0],
LastName=Emailheader[1],
Email=c.SuppliedEmail
);
emailToContactMap.put(c.SuppliedEmail,conts);
casesToUpdate.add(c);
}
}
}
List<Contact> newContacts = emailToContactMap.values();
insert newContacts;
for (Case c:casesToUpdate) {
Contact newContact = emailToContactMap.get(c.SuppliedEmail);
c.ContactId = newContact.Id;
}
}
My Test Class pitiful, please help:
@isTest
private class CreateContactTest{
@isTest static void TriggertoCreateContactformCase () {
Case c = new Case(c.ContactId=='';
c.SuppliedName= 'Joan Ansderson';
c.SuppliedEmail= 'Anderson@gmail.com';
System.assertEquals(True, str.isSuccess());
}
}
I have a trigger that if a email-to-case is created without a contact, a contact will be created and associated with that case based on the supplied email info.
I am just not a developer and have tried so hard to write a test class and not getting anywhere close. Please help I will never get this alone.
Here is my trigger:
trigger TriggertoCreateContactformCase on Case (before insert) {
List<String> UseremailAddresses = new List<String>();
//First exclude any cases where the contact is set
for (Case c:Trigger.new) {
if (c.ContactId==null &&
c.SuppliedEmail!=''|| c.SuppliedEmail==null)
{
UseremailAddresses.add(c.SuppliedEmail);
}
}
//Now we have a nice list of all the email addresses. Let's query on it and see how many contacts already exist.
List<Contact> listofallContacts = [Select Id,Email From Contact Where Email in:UseremailAddresses];
Set<String> ExstingEmails = new Set<String>();
for (Contact c:listofallContacts) {
ExstingEmails.add(c.Email);
}
Map<String,Contact> emailToContactMap = new Map<String,Contact>();
List<Case> casesToUpdate = new List<Case>();
for (Case c:Trigger.new) {
if (c.ContactId==null &&
c.SuppliedName!=null &&
c.SuppliedEmail!=null &&
c.SuppliedName!='' &&
!c.SuppliedName.contains('@') &&
c.SuppliedEmail!='' &&
!ExstingEmails.contains(c.SuppliedEmail))
{
//The case was created with a null contact
//Let's make a contact for it
String[] Emailheader = c.SuppliedName.split(' ',2);
if (Emailheader.size() == 2)
{
Contact conts = new Contact(FirstName=Emailheader[0],
LastName=Emailheader[1],
Email=c.SuppliedEmail
);
emailToContactMap.put(c.SuppliedEmail,conts);
casesToUpdate.add(c);
}
}
}
List<Contact> newContacts = emailToContactMap.values();
insert newContacts;
for (Case c:casesToUpdate) {
Contact newContact = emailToContactMap.get(c.SuppliedEmail);
c.ContactId = newContact.Id;
}
}
My Test Class pitiful, please help:
@isTest
private class CreateContactTest{
@isTest static void TriggertoCreateContactformCase () {
Case c = new Case(c.ContactId=='';
c.SuppliedName= 'Joan Ansderson';
c.SuppliedEmail= 'Anderson@gmail.com';
System.assertEquals(True, str.isSuccess());
}
}
- Hanna Bergsma
- December 18, 2020
- Like
- 0
- Continue reading or reply
apex developer code
# create a map
chirutha - ramcharan
magadheer - ramcharan
orange - ramcharan
billa - prabhas
bhahuballi - prabhas
mirchi - prabhas
Data having be like
moviename - rating - collection
chirutha - 3 - 12cr
magadheer - 4 - 75cr
orange - 2 - 12cr
billa - 3 - 30cr
bhahuballi - 4 - 1000cr
mirchi - 4 - 50cr
# output will be like
Ramcharan acted in '3' movies .2 movies (chirutha , magadheera) hit with a collection of (12+75)=(87cr). 1 movie(orange) will be flop with the collection of (12cr).
# similar to the second one (prabahas)
hint : here movie rating between 1-2 declare as (flop), 3 will be declare as (average), 4& above will be declare as (hit)
chirutha - ramcharan
magadheer - ramcharan
orange - ramcharan
billa - prabhas
bhahuballi - prabhas
mirchi - prabhas
Data having be like
moviename - rating - collection
chirutha - 3 - 12cr
magadheer - 4 - 75cr
orange - 2 - 12cr
billa - 3 - 30cr
bhahuballi - 4 - 1000cr
mirchi - 4 - 50cr
# output will be like
Ramcharan acted in '3' movies .2 movies (chirutha , magadheera) hit with a collection of (12+75)=(87cr). 1 movie(orange) will be flop with the collection of (12cr).
# similar to the second one (prabahas)
hint : here movie rating between 1-2 declare as (flop), 3 will be declare as (average), 4& above will be declare as (hit)
- chaitanyakuamar Teru
- December 16, 2020
- Like
- 0
- Continue reading or reply
How to connect Trailhead play ground to newly created Dev org
Tryng to complete this module:
https://trailhead.salesforce.com/content/learn/projects/quick-start-build-a-workplace-command-center-app/set-up-your-developer-org
After create the my own dev org, there is a step:
2. In the Challenge section at the bottom of this page, select Log into a Developer Edition from the picklist.
I cannot fild the "Challenge section" mentioned above.
Can someone help?
https://trailhead.salesforce.com/content/learn/projects/quick-start-build-a-workplace-command-center-app/set-up-your-developer-org
After create the my own dev org, there is a step:
2. In the Challenge section at the bottom of this page, select Log into a Developer Edition from the picklist.
I cannot fild the "Challenge section" mentioned above.
Can someone help?
- Bryan G
- December 16, 2020
- Like
- 0
- Continue reading or reply
Need Help in calling a apex method from helper in Lightning component.
Hi all I have a strange requirement of calling a helper method in which an apex method is calling, the trick is that I have to call my helper method with a delay of 30 sec.
But in some scenarios before the 30 sec, my component Dom is getting destroyed and in the helper, I face the error of set params of undefined.
I am not sure it is because Dom is destroyed or any other reason.
But in some scenarios before the 30 sec, my component Dom is getting destroyed and in the helper, I face the error of set params of undefined.
I am not sure it is because Dom is destroyed or any other reason.
- Shubham Bansal 45
- December 11, 2020
- Like
- 0
- Continue reading or reply
how can we detect in code that chat with agent is started successfully or not
I have a requirement to run a run when chat with agent does not start successfully or either user cancel chat request.
is there any way to detect that chat is started or not .
is there any way to detect that chat is started or not .
- Shubham Bansal 45
- December 09, 2020
- Like
- 0
- Continue reading or reply
Can we get object name along with with other information of prec-chat form fields.
Can we get the object name along with other information of pre-chat form fields?
I have a custom field language present in contact and case both and I want to differentiate between them but the API name is also the same.
Therefore I want the fields object names so that I can differentiate between them.
Any help is appreciated , Thanks in Advance
I have a custom field language present in contact and case both and I want to differentiate between them but the API name is also the same.
Therefore I want the fields object names so that I can differentiate between them.
Any help is appreciated , Thanks in Advance
- Shubham Bansal 45
- December 08, 2020
- Like
- 0
- Continue reading or reply
I have a pacakge in my dev org and i want to upload that package on appexchange
I have a package in my dev org and I want to upload that package on app exchange, can anyone help me thi by telling the steps of doing this
- Shubham Bansal 45
- December 03, 2020
- Like
- 0
- Continue reading or reply
Can we use Script or java scripts in email templates?
I have an email template and my requirement is that on my email there should be a more or less button which shows data.
When the user clicks on more the whole text should appear and when the user clicks on less then the partial text should appear.
When the user clicks on more the whole text should appear and when the user clicks on less then the partial text should appear.
- Shubham Bansal 45
- October 22, 2020
- Like
- 0
- Continue reading or reply
Can we use media queries in visual force component?
I am using vf component in vf email template. but for the mobile view some UI issue occur,I try to use media query but id doesn't work, can anybody help in fixing this.
- Shubham Bansal 45
- October 12, 2020
- Like
- 0
- Continue reading or reply
Not able to see communities option in salesforce 30 days enterprise/trial version
Not able to see communities option in salesforce 30 days enterprise/trial version.
Can anybody tell why I am not able to see the communities option in the salesforce trail version?
Can anybody tell why I am not able to see the communities option in the salesforce trail version?
- Shubham Bansal 45
- October 12, 2020
- Like
- 0
- Continue reading or reply
pre chat form component validation
Hi
I created a component for the Pre chat form and following the examples in the Developer Guide 18, it basically creates the inputs from the custom Pre chat form by collecting them as arrays. It all is inserted just fine in the pre chat form but, the values of the inputs, such as name, are assumed as valid when they are empty which should not be a valid input specially since they are "required" as part of their attributes.
I have been searching for a solution for this and the only solution that makes sence in my mind would be to add an external script that would validate the customer inputs, so in other words that script would be part of the Static Resources and I would call it with this method "embedded_svc.settings.externalScripts = ['validation']", although this script is being ignore for some reason and the custom"prechat.js" from Live agent keep giving me this message: Validation passed, firing chat request event.
Is there a better way to validate the inputs for them not to be empty before starting a live chat? Is there a particular reason as to why my script that is a Static Resource is being ignored?
I created a component for the Pre chat form and following the examples in the Developer Guide 18, it basically creates the inputs from the custom Pre chat form by collecting them as arrays. It all is inserted just fine in the pre chat form but, the values of the inputs, such as name, are assumed as valid when they are empty which should not be a valid input specially since they are "required" as part of their attributes.
I have been searching for a solution for this and the only solution that makes sence in my mind would be to add an external script that would validate the customer inputs, so in other words that script would be part of the Static Resources and I would call it with this method "embedded_svc.settings.externalScripts = ['validation']", although this script is being ignore for some reason and the custom"prechat.js" from Live agent keep giving me this message: Validation passed, firing chat request event.
Is there a better way to validate the inputs for them not to be empty before starting a live chat? Is there a particular reason as to why my script that is a Static Resource is being ignored?
- Jose Nogueira Rodrigues
- November 21, 2018
- Like
- 0
- Continue reading or reply
How to access question object of Community Napili Template
Hi,
I was wondering where can I find or what is the object name that store all question posted () in community built on the Napili template?
I looked in Salesforce Question and Reply objects, but found nothing.
Thank you,
Pairin
- Pairin Mason
- February 17, 2015
- Like
- 0
- Continue reading or reply