Skip to main content
Group

EMEA MVP Office Hours

MVP Office Hours provides another channel for advanced salesforce administrators to engage with community advocates virtually via video conferencing to ask anything about Salesforce.com. Whether you have a challenge you’ve been dying to run by someone or want to have additional conversation around the question you posted to Salesforce Answers this is the forum for you to get real time feedback from subject matter experts. How do you participate? Register prior to the session then simply join the web conference using the URL provided in your email confirmation. VoIP will be enabled, if you prefer to use the phone the dial-in information will be displayed after you join the session.

I want to reply from the case object to the customer's email address with the same email threads.

NOTE: No need to redirect to Salesforce Classic.

@SalesForce Developer @EMEA MVP Office Hours @Salesforce Trailhead

1 answer
0/9000

@Usman Ali @EMEA MVP Office Hours  

Bhavin Patel (Salesforce)

 

how to change the below code with best practice ?

for(Id c : pId)

{

List<Student__C> child = [select Department__c, isApproved__c, Name, Id FROM Student__c where Department__c =:c AND isApproved__C = True];

pchild.put(c,child);

}

 

trigger StudentTrigger on Student__c (after insert,after update,after delete,after undelete)

{

if(trigger.isAfter && (trigger.isInsert || trigger.isUpdate || trigger.isUndelete))

{

StudentTriggerHandler.getStudent(Trigger.newMap);

}

if(trigger.isDelete)

{

StudentTriggerHandler.getStudent(trigger.oldMap);

}

}

///Handler

public class StudentTriggerHandler

{

public static void getStudent(Map<Id,Student__C> obj)

{

set<ID> pId = new set<ID>();

for(Student__C a : obj.values())

{

pId.add(a.Department__c);

}

Map<Id,List<Student__C>> pchild = new Map<Id,List<Student__C>>();

for(Id c : pId)

{

List<Student__C> child = [select Department__c, isApproved__c, Name, Id FROM Student__c where Department__c =:c AND isApproved__C = True];

pchild.put(c,child);

}

system.debug('pchild - ' + pchild);

List<sobject> updatedstudent = new List<sobject>();

for(Id idValue : pchild.keyset())

{

integer count =0 ;

for( Student__C s : pchild.get(idValue ))

{

system.debug(' Map keyset Id Value' + idValue );

system.debug(' list values : '+ s);

count =count +1;

}

if (count == 0)

{

Department__c sc = new Department__c();

sc.Id =idValue;

sc.Child_Approved_Status__c ='';

updatedstudent.add(sc);

}

else if(count == 1 )

{

Department__c sc = new Department__c();

sc.Id =idValue;

sc.Child_Approved_Status__c ='1 child approved';

updatedstudent.add(sc);

}

else if(count == 2 )

{

Department__c sc = new Department__c();

sc.Id =idValue;

sc.Child_Approved_Status__c ='2 children approved';

updatedstudent.add(sc);

}

else if(count > 2 )

{

Department__c sc = new Department__c();

sc.Id =idValue;

sc.Child_Approved_Status__c ='All child approved';

updatedstudent.add(sc);

}

}

update updatedstudent;

}

}

4 answers
  1. Oct 23, 2022, 7:10 PM

    Hi @Kaala G Just a follow up check Could you please let us know if above answer helped you or you need more information on the same?

0/9000
2 answers
  1. Oct 10, 2022, 4:52 PM

    HAI

     

    <template>  <lightning-card title="Case Info" icon-name="standard:record"> <template if:false={showOutput)>  <div class="slds-m-around_medium">  <lightning-input label="Case Subject" onchange={handleChange} class="slds-m-bottom_x  small"></lightning-input>  <lightning-input label="Case Description" onchange={handleChange} class="slds-m  bottom_x-small"></lightning-input>  <lightning-button label="Submit" variant="brand" onclick={submitCase]></lightning  button>  </div>  </template>  <template if:true={showOutput}>  <div class="slds-m-around_medium">  The case subject is {subject} <br/>  The case Description is (desc) <br/></br>  <lightning-button label="Refresh" variant="brand" onclick=[refresh}></lightning-button>  </div>  </template>  </lightning-card>  </template>

0/9000
1 answer
  1. Andrew Russo (BACA Systems) Forum Ambassador
    Oct 3, 2022, 11:04 AM
0/9000

⏰ 10 Days Left to Nominate a 2022 Salesforce MVP 📣 🏆    

 

Do you know a Trailblazer hero? An exceptional leader and lifelong learner who goes above and beyond to help other Trailblazers succeed in the Salesforce ecosystem? ✅  

 

Now’s the time to honor them! We’re thrilled to invite our entire community to join us in submitting nominations for our Salesforce MVP Class of 2022.

 

➡️ Head to our blog to learn more about the nomination process and the characteristics of a Salesforce MVP.  

 

Submit your nominations here by December 3! #Salesforce MVPs

2 comments
0/9000

📣 Attention UK & Europe Salesforce.org community!! 📣

 

We're hosting the first virtual Open Source Community Sprint in your timezone on June 29th and we want you to be there. :)

 

Save-the-date 29/06 now and watch this space for official registration, coming in late May.

 

✅️ We want to hear from you! If you have a project idea to tell me about and bring to the Sprint, or to volunteer to help join the planning committee, reply or send me a direct message!

Or, if you're an existing Sprint project leader and would like to bring your project to Europe, let me know! We'd love to have a combination of new local ideas and existing established projects to work on during the event.

 

See you then!

 

#SFDOsprint 

 

@Salesforce.org Customer Success 

@EMEA MVP Office Hours 

@Nonprofit Hub 

2 comments
0/9000

Community builder without view setup idea.

 

Access to workspaces only requires Create and Set Up Communities, but community builder also requires view setup.  That means my marketing people have to get view setup to customize their community pages.  :(  I'd love to be wrong, so let me know if so.

 

Please vote for this idea:

https://trailblazer.salesforce.com/ideaView?id=0874V000000U74NQAS

 

@All Dreamforce  @* Salesforce Administrators * @EMEA MVP Office Hours @MVP Office Hours (US) @MVP Office Hours APAC @Solo Admins @Admin Group, Raleigh, US 

0/9000

When is the next MVP EMEA Office Hours set to be? Register link dont show.

3 comments
  1. Jun 7, 2020, 3:08 PM
    What you have described is pretty much this whole community. I recommend you join some more online groups, and if possible, attend a local community group when lockdown has lifted.
0/9000

EDIT: Jan and Louise are "it" come tag along if you'd like this still is a fun networking session for all of you and more :)

 

DF19 👀 Looking for 2 Salesforce MVPs to help host the two following Meet & Greets with us at the Trailblazer Community Cove and EMEA based preferred:

- Tue 2pm EMEA Trailblazers Get Together (1h) https://success.salesforce.com/sessions?eventId=a1Q3A000021ea1UUAQ#/session/a2q3A000002BKzQQAW 

- Wed 11am Meet Salesforce MVPs (1h) https://success.salesforce.com/sessions?eventId=a1Q3A000021ea1UUAQ#/session/a2q3A000002BL03QAG

Thanks a lot!

4 comments
0/9000