• Guilherme_Monteiro
  • NEWBIE
  • 35 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 7
    Replies
I need to figure out when a session points to Login As so that I can create a transaction security policy.

Hi, folks!

Could you please help me with the following scenario?

I have created a <lightning-datatable> tag in my <template> and I need to hidden the dropdown list with the options Wrap Text and Clip Text.

Screenshot:

As far as I know, there isn't any OOTB class that could help me with that.

When trying to apply a custom style, nothing happens:

.THIS slds-button slds-button_icon-baree{
    display: none ;
}

Has anyone any idea of how to solve that?

Thanks in advance.

 
Hi, everyone!

I need to write a test class in apex, but, I'm stuck at the moment I need to send an Email message record to approval.

There's an active approval process, and both the case and email message triggers the entry criteria (even though, I have set to ignore them).

I'm getting a DML Statement error as if there wasn't a valid approval process.

System.DmlException: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process was found.: []

As you can see, on the screenshot highlighted all fields are being sent to the approval process request.

System Debug
@isTest private class sendEmailMessageToApprovalTest{
    @isTest static void approvalProcessEmailMessage(){
        
        //Creating a new case
        Case cs                    = new Case();
        cs.Subject                = 'My new case';
        cs.Activity_Type__c = 'Postal';
        cs.Type                     = 'Warranty';
        cs.SubType__c         = 'Equipment';
        cs.Case_Option__c   = 'Global';
        cs.Origin                    = 'Phone';
        cs.OwnerId                =  UserInfo.getUserId();
        insert cs;
        
        //Creating a new email message
        EmailMessage email = new EmailMessage();
        email.FromAddress  = 'test@test.com';
        email.Incoming     = True;
        email.ToAddress    = 'secondtest@test.com';
        email.Subject      = 'Test email';
        email.HtmlBody     = 'Test email body';
        email.ParentId     = cs.Id; 
        insert email;
        
        ProcessDefinition processDefinitionId = [SELECT Id
                                                                        FROM ProcessDefinition
                                                                       WHERE TableEnumOrId='EmailMessage'
                                                                       AND State='Active'
                                                                       LIMIT 1];
        
        // Create an approval request for the opportunity

       Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
       req1.setComments('Submitting request for approval.');
       req1.setObjectId(email.id);
       req1.setSkipEntryCriteria(true);
       req1.setSubmitterId(cs.OwnerId);
       req1.setProcessDefinitionNameOrId(processDefinitionId.Id);
        

       // Submit the record to specific process
 
 
       Approval.ProcessResult result = Approval.process(req1);
        
    }
}

I really appreciate your help.

Thanks in advance,


Guilherme
 

Hi, folks!

Could you please help me with the following scenario?

I have created a <lightning-datatable> tag in my <template> and I need to hidden the dropdown list with the options Wrap Text and Clip Text.

Screenshot:

As far as I know, there isn't any OOTB class that could help me with that.

When trying to apply a custom style, nothing happens:

.THIS slds-button slds-button_icon-baree{
    display: none ;
}

Has anyone any idea of how to solve that?

Thanks in advance.

 
Case error on opening the casejAfter the spring '20 update there is an error for the Obect label of a custom object that is related to the contract of a Case on opening the case.The Object label name should be: 'Contractantrollen'.
Hello,

I need the list of fields and functions which can be used with respective field type.
Ex.
Field Type: Picklist
Function can be used with: ISPICKVAL
Hi,
 Stuck at Challenge no:6
Challenge Not yet complete... here's what's wrong: 
We can't find the Cloudy Weather response sent reusable text. Ensure the Macro adds the Cloudy Weather response sent reusable text to the description.
Also not able to add Update Case action in Instruction.
As shown in image,Update Case cannt be added to instruction.
Completed all the steps mentioned above related to this error.
Please help on this.

Thanks,
Krutika
 
Hi,

I can't seem to get past this error. 
We can't find the Cloudy Weather reusable email. Ensure the Macro uses the Cloudy Weather reusable email for the subject and body.

Here is what I  have:

User-added image

User-added image

I have created quick text, email template, and macros.

Any help is appreciated,
~VIP
Followed through the steps and I am receiving the error


There was an unhandled exception. Please reference ID: AKWLPXWN. Error: Faraday::ClientError. Message: INVALID_FIELD: SELECT Id FROM Contact where name='Edna Frank' ^ ERROR at Row:1:Column:30 field 'name' can not be filtered in a query call

Any suggestions?
This task, creating a Static Resource from:
Download the current version of the jQuery Mobile JavaScript library, currently jQuery Mobile 1.4.4, in the ZIP format.
The newest version, 1.4.5 is 7MB and of course does not upload.