• Sprutiraj Panda 7
  • NEWBIE
  • 5 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 11
    Replies
HI 
I m trying to put the Approval Link o the Visualforce email tamplate But its showing the below error .

Error: Unknown property 'core.email.template.EmailTemplateComponentController.Account'

i use the simple method to create the apprver link to add the Vf page eamil both are i use but its not working on the visualforce page email tamplate showing the above error please any one helpme on that ..
{!ApprovalRequest.External_URL}
{!ApprovalRequest.Internal_URL}
HI 
I m trying to put the Approval Link o the Visualforce email tamplate But its showing the below error .

Error: Unknown property 'core.email.template.EmailTemplateComponentController.Account'

i use the simple method to create the apprver link to add the Vf page eamil both are i use but its not working on the visualforce page email tamplate showing the above error please any one helpme on that ..
{!ApprovalRequest.External_URL}
{!ApprovalRequest.Internal_URL}
Hi All, 

I have list of users and need to add them to a public group using apex.

help me on this.
Hello All,
Implementing a basic navigation component. No error while pushing the code to the scratch org, but when i click on the navigation buttons no action. Below is the image of our component on Account Record page.

User-added image

NavigationinLWC1.html
<template>
    <lightning-card title="Navigation Service in Lightning Web Component">
        <lightning-card title="Navigation to Record Page">
            <lightning-button-group>
                <lightning-button label="New Record Page" onclick={navigateToNewRecordPage}></lightning-button>
                <lightning-button label="Edit Record Page" onclick={navigateToEditRecordPage}></lightning-button>
                <lightning-button label="View Record Page" onclick={navigateToViewRecordPage}></lightning-button>
            </lightning-button-group>
        </lightning-card>
    </lightning-card>    
</template>

NavigationinLWC1.js
import { LightningElement,api } from 'lwc';
import {NavigationMixin} from 'lightning/navigation'
export default class NavigationinLWC1 extends LightningElement {
    @api recordId;
    navigateToNewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "new"
            }
        });
    }

    navigateToEditRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "edit"
            }
        });
    }

    navigateToViewRecordPage(){
        this[NavigationMixin.Navigate]({
            type:'standard__recordPage',
            attribute:{
                "recordId":this.recordId,
                "objectApiName":"Account",
                "actionName": "view"
            }
        });
    }
}

Kindly help me out.
Hello all 

My requirement is that whenever i change the status in the picklict field different color should pop up,
In my requirement i have picklist field called flat status, in that there are 3 fields (Sold,available,Booked), whenever i click on Sold it should show as "red", when i click on Available it should show as "Green", when i click on booked it should show as "Yellow"

for this i have tried formula field and written a formula as
IMAGE( 
CASE(Project_Status__c, 
"Green", "/img/samples/light_green.gif",
"Yellow", "/img/samples/light_yellow.gif",
"Red", "/img/samples/light_red.gif", 
"/s.gif"), 
"status color")

The error shows as " Error: Field Flat_Status__c is a picklist field. Picklist fields are only supported in certain functions"

Is there any better way to achive this

Any Help or suggestion would be Highly appreciated
 
Hi Folks,

I am attempting Service Cloud super badge which was recently released. I am trying to complete challenge no 3 - Create service level and actions.

We have to set up minimum response time and resolution time. The problem I face here is I do not see the response time in minutes. 

In the challenge, it mentions 20 minutes and I am not finding a way to set minutes, every process(Time-based workflow, Entitlement hours, Escalation rules) are in hours and there is no provision to set in decimal.

Am I heading in the right direction? Please suggest.

 
Hi all. I found all related article on this forum, but there is no answer for this issue captured below.
User-added image

I sorted 'My Top Volunteer Organizations' Report on grouped level only.
Didn't sort on any non-grouped level.
User-added image

How do I resolve this issue?
it looks like even system error or wrong error msg.
Hello,
I would like to display the link for Approval Process Object in Visualforce email template.
The template has the following conditions:
   recipientType="Contact" 
   relatedToType="Opportunity"
How can I display same URL used in HTML template here: ApprovalRequest.External_URL? so it links to an approval page directly?
Thanks for any input
Anna
hi gyus... This code is working fine..when ever I insert or update record it sends email.. but I am quite confused  so plz explain me the use of line 16,line 19,line 25 & what is the use of flag... and tell me that is messaging.singleEmailMessage is defined keyword...??
Last but not the least I want to edit the code in such a way that if i insert the data with dataloader where there is more than one contact then send email to more than one contact is inserted at a time....

************apex class**********
public with sharing class HelperContactTrigger {
    public static List<Contact> sendEmail(List<Contact>Contacts)
    {
     //query on template object
        EmailTemplate et=[Select id from EmailTemplate where name=:'Sales: New Customer Email'];

        //list of emails
        List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();   
        
        for(Contact con : Contacts)
        {
          //check for Account
            if(con.AccountId != null && con.Email != null){

                //initiallize messaging method
                Messaging.SingleEmailMessage singleMail = new Messaging.SingleEmailMessage();

                //set object Id
                singleMail.setTargetObjectId(con.Id);

                //set template Id
                singleMail.setTemplateId(et.Id);

                //flag to false to stop inserting activity history
                singleMail.setSaveAsActivity(false);

                //add mail
                emails.add(singleMail);
            }
        }
            //send mail
        Messaging.sendEmail(emails);

        return Contacts;          
        
    }

    public static List<Contact> sendEmailafter(List<Contact>Contacts)
    {
    //query on template object
        EmailTemplate et=[Select id from EmailTemplate where name=:'Sales: New Customer Email'];

        //list of emails
        List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();   
        
        for(Contact con : Contacts)
        {
          //check for Account
            if(con.AccountId != null && con.Email != null){

                //initiallize messaging method
                Messaging.SingleEmailMessage singleMail = new Messaging.SingleEmailMessage();

                //set object Id
                singleMail.setTargetObjectId(con.Id);

                //set template Id
                singleMail.setTemplateId(et.Id);

                //flag to false to stop inserting activity history
                singleMail.setSaveAsActivity(false);

                //add mail
                emails.add(singleMail);
            }
         }
            //send mail
        Messaging.sendEmail(emails);

        return Contacts;          
        }
    }

*********Apex trigger********
trigger SendEmailToAccount on Contact (after insert,after update) 
{
    if(Trigger.isAfter)
    {
        if(Trigger.isInsert )
        { 
            //helper class for single email but bulk messages
            HelperContactTrigger.sendEmail(trigger.new);
        }
    }
        if(trigger.isAfter && trigger.isUpdate )
        {           
         HelperContactTrigger.sendEmailafter(trigger.new);
        }
}

 
Hi,

trigger contactrecords on Account (before insert)
 {

    List<String> myname=new List<String>();
    for(Account a:trigger.new)
    {
    myname.add(a.name);
    }
    List<contact> mycontact=[select id,name from contact where name in:myname];
    delete mycontact;
}

Please help me.
Hi,

I'm fairly new to formula fields and am having trouble with this one. I want to display various images depending on which picklist value is chosen.  Here is one formula I've tried, and am getting a very confusing error message :( 

Error: Incorrect number of parameters for function 'ISPICKVAL()'. Expected 2, received 9

Could anyone guide me in the right direction? Thanks!

IMAGE (
ISPICKVAL (
Contact_Status_Data__c,
   "Active", "img/msg_icons/confirm32.png",
   "Inactive", "img/msg_icons/error32.png",
   "Non-Serviced", "img/msg_icons/warning32.png",
   "No Volume", "img/msg_icons/info32.png"
))