• Mathias_K
  • NEWBIE
  • 20 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
Hello,

i'm just started a few days ago with Lightning and i got some problems to realize my ideas.
I have some questions and i hope you can help me!

I got a custom link at my Accountpage, which takes a value of a custom field and call with javascript a apex class (webservice).

Now i want to do a similar function in lightning. 

I just want to do an action at the accountpage which transfer the value of my custom field to the apex class, where my functions are realized. 

I thought i make a visual foce page in lightning and call the JavaScript, but i don't know how i transfer my values from the account page to the VF-Page. 

Hope you can help me.

best regards,
mathias

 
Hello,

i have created a email template which reminds the user by a workflow for the following meetings.

In this template (html) i want to add  the Name of the person, i will met. 
->    {!Event.Who} 
But in the mail which is send, is the "Name" the ID and not the Name. 
How can i fix it? 

best regards,
Mathias
Hello everybody, 

does anybody know, how i can use handwritten Notes in the Salesforce 1 App on the iPad? 

If i install for example MyScript Stylus, i can write in all other apps but not in the salesforce 1 app. 

I think a VF Page can be a solution. Any experience with this solution? 
 
How can i pass a String in a trigger at the testrun?
 
trigger tr_EventToReport on Event (after insert, after update) {    
    
    if (Trigger.isInsert){
    for (Event events : Trigger.new) {
        if (events.Type == 'SD_KeyAccount_Visit'){

        // URL auslesen für Ereignisverlinkung
        String baseUrl = System.URL.getSalesforceBaseUrl().toExternalForm()+'/'+events.Id;

        createVisitReports cvr = new createVisitReports();
            cvr.createVisitReport('0127E0000000pTqQAI', events.AccountId, events.WhoId, 
            baseUrl);

  }
        else {
            System.debug('KEIN KEYACCOUNT BESUCH');
      }   
    }
  }    
}

my testclass : 
@isTest
private class test_Create_Event {
    
    @isTest public static void createEvent(){
        // Erstellen eines Termins für Triggeraktivierung
        
        Event ev = new Event(OwnerID = '0057E000002cOCVQA2', Type = 'KeyAccount Besuch', 
                             ActivityDateTime = Date.valueOf('2017-07-12 12:30:00') , EndDateTime = Date.valueOf('2017-07-12 13:30:00'), 
                             WhoID = '0037E00000TAqP8QAL');
        insert ev;
        
        // Perform test
        Test.startTest();
        Database.DeleteResult result = Database.delete(ev, false);
        Test.stopTest();
    }
}

how can i pass the string and the method?? 
thx 4 help
Hello, 
i hope you can help me.

I have a trigger on a the Event Object , that creates a Visit Report (Customized Object) after generating a Event. 

At the moment the trigger generate a visit report but i want to write back the id of the generated visit report into the event. 

can i handle this in only one trigger? 

Thx 4 help
Hello,

i have created a email template which reminds the user by a workflow for the following meetings.

In this template (html) i want to add  the Name of the person, i will met. 
->    {!Event.Who} 
But in the mail which is send, is the "Name" the ID and not the Name. 
How can i fix it? 

best regards,
Mathias