• Henrique Ortiz
  • NEWBIE
  • 45 Points
  • Member since 2017
  • Process Analyst
  • Fael - Apollo Global

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 4
    Questions
  • 9
    Replies
How do I reset my playground to its original condition and remove all previous customizations, so that the DreamHouse sample application can be installed?
Hello everyone,

I need to convert this trigger into a class and them call it in a trigger in another object.
Can someone help me?

Also, I created 3 lists for validation of the records in this object, I know that is not the best way of doing, so what is the bets of way?
this 3 lists:cont_social, cont_loca, rg_cpf
 
trigger Unidade_Status on Campus__c (before update) {
    
    for (Campus__C a :trigger.new) {
        
        list <Integrante_equipe__c> integrantes = new list<Integrante_equipe__c>();
        integrantes = [SELECT ID FROM INTEGRANTE_EQUIPE__c WHERE INTEGRANTE_EQUIPE__c.POLO__C = :a.Id AND
                       integrante_equipe__c.funcao__C = 'Sócio' AND
                       integrante_equipe__c.cpf__C != null];
        
        list <Documentos_Parceiro__c> cont_social = new list <Documentos_Parceiro__c>();
        cont_social = [SELECT ID
                       FROM Documentos_Parceiro__c
                       WHERE Documentos_Parceiro__c.Unidade__c =: a.Id
                       AND Recordtype.name = 'Contrato Social'];
        
        list <Documentos_Parceiro__c> cont_loca = new list <Documentos_Parceiro__c>();
        cont_loca = [SELECT ID
                     FROM Documentos_Parceiro__c
                     WHERE Documentos_Parceiro__c.Unidade__c =: a.Id
                     AND Recordtype.name = 'Contrato de Locação'];
        
        list <Documentos_Parceiro__c> rg_cpf = new list <Documentos_Parceiro__c>();
        rg_cpf = [SELECT ID
                  FROM Documentos_Parceiro__c
                  WHERE Documentos_Parceiro__c.Unidade__c =: a.Id
                  AND Recordtype.name = 'RG/CPF Sócios'];
        

        if(a.City__C != null &&
           a.State__C != null &&
           a.Email__c != null &&
           a.Work_Phone__c != null) {
               
               if(a.LastActivityDate != null) {
                   
                   if(a.CNPJ__c != null &&
                      a.Razao_social_c__C != null &&
                      a.Street_Address__c != null &&
                      a.House_Number__c != null &&
                      a.Bairro__c != null &&
                      a.Zip_Code__c != null ) {
                          
                          if (!integrantes.isEmpty()) {
                              
                              if(cont_social.size() > 0 &&
                                 cont_loca.size() > 0 &&
                                 rg_cpf.size() > 0){
                                     
                                     a.Status_parceria__c = 'Em Análise';
                                 }
                              
                              Else {
                                  
                                  a.Status_parceria__c = 'Pré-Cadastro'; 
                              }
                          }
                          
                          Else {
                              a.Status_parceria__c = 'Pré-Cadastro';
                          }
                      }
                   Else {
                       a.Status_parceria__c = 'Negociação';
                   }
               }
               Else {
                   a.Status_parceria__c = 'Lead';
               }
               
           }
        Else {
            a.Status_parceria__c ='';
        }
    }
}

 

Hello guys, I'm trying to add the feed that we have in SF to the homepage of my community.
User-added image
I did my research and find that I would need a visualforce page.
I've try:

1.<chatter:feed entityId="{!$User.Id}"/>
2.<chatter:newsfeed/>

But all that I get was that
User-added image

An empty box.

How can I solve this?

 

Hello guys,

How can I change the colour pattern or the colour of one column in a dashboard component?
I'd like to change the blue to orange or red in this component. There is a way for doing that?
User-added image



 
Hello guys!

I'm having a hard time trying to figure this out.
I need a date field that brings me the last time a case has the owner change, that owner could be a queue or a user. 

How can I do this?

Hello guys, I'm trying to add the feed that we have in SF to the homepage of my community.
User-added image
I did my research and find that I would need a visualforce page.
I've try:

1.<chatter:feed entityId="{!$User.Id}"/>
2.<chatter:newsfeed/>

But all that I get was that
User-added image

An empty box.

How can I solve this?

 

How do I reset my playground to its original condition and remove all previous customizations, so that the DreamHouse sample application can be installed?
Hello guys!

I'm having a hard time trying to figure this out.
I need a date field that brings me the last time a case has the owner change, that owner could be a queue or a user. 

How can I do this?
I am working on the Salesforce1 Mobile Customization Badge and am in the module for the object specific quick actions. I have followed these steps:

Create a quick action on the event object for entering a prospective buyer's feedback
Your brokers want to capture the feedback of their potential buyers after they look at a property. Create a quick action on the event object so brokers can update an event with their notes immediately after a showing. Add the action to the publisher for the Showing layout.
Create a quick action for the event object
Action type: Update a Record
Label: Enter Feedback
Remove all the fields on the page layout except for Name
Put the Feedback field on the page layout
Add the Enter Feedback quick action to the publisher for the Showing Layout. You might have to override the predefined actions in the Salesforce1 section of the publisher.

And have this action done with layout streamlined:
User-added image

And the placement of the action:

User-added image

But I still get this error for Name and Feedback missing? 

User-added image

If anyone can help, that would be greatly appreciated. I am not sure what I am missing. 
Hi everyone,

I'm trying to finish the " Data  import" units. It's a quite short unit because there are only 2 questions

When I check the answers, nothing happen, trailhead tell me that my answers are right (with the green dot) but I have no point and the data management unit is not complete. I thought that i needed to do an exercise but it seems to be only 2 questions.

Did I miss something or is it just a bug ? ( the part with " missing%(points)value" seems weird)

User-added image

Thanks
Hi all....
Having a real issue with stage 5 of this Superbadge.
I have tried and re-tried this several times, re-creating both the Report Type and Report, but getting the same error:
User-added image

The Report Type Looks like this:
User-added image

The created report is:
User-added image

I cannot see what is wrong with this at all!
Filter is locked.
Full Name is used.
Grouped by Account Name then Full Name and Hobby is a Column.

Any help would be greatly appreciated, as I have been looking at this for 3 days!

 
Hi everyone,

I'm trying to finish the " Data  import" units. It's a quite short unit because there are only 2 questions

When I check the answers, nothing happen, trailhead tell me that my answers are right (with the green dot) but I have no point and the data management unit is not complete. I thought that i needed to do an exercise but it seems to be only 2 questions.

Did I miss something or is it just a bug ? ( the part with " missing%(points)value" seems weird)

User-added image

Thanks