• Rico Tobias Tägder
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
Hello Lovely Community,
I would like to say in the decision that:
Email ISCHANGED EQUALS True
User-added imageI played around with Formula but nothing worked. Also "Was Set" doesnt fit.

Do you have any idea how to accomplish this?

Thank you in advance

Hi Community,
I'm new in writing Apex Triggers and especially writing test classes.

So it shouldnt be a problem as there is a lot to find how to do it, but I dont find something about writing test classes for Triggers which call a Flow. I tried some standard approaches with no luck.

My Code:

trigger CallHwCalculationFlow on Lead_Product__c (after delete) {

//Get Lead__c ID
    Id leadId;
for(Lead_Product__c a: Trigger.old){
    leadId = a.Lead__c;
} 
   
// Call the Flow
Map<String, Object> params = new Map<String, Object>();
params.put('CurrentLeadID', leadId);
Flow.Interview.Update_Total_HW_Price calcFlow = new Flow.Interview.Update_Total_HW_Price(params);
calcFlow.start();
 


}

The part after "//Call the Flow" is hard for me to get. Maybe you have some examples, links or advices.

Thank you very much in advance!
 

 
Hello Community,
I'm working on a simple Invoice the user can call via button.

I have the following code snippet:
<p><apex:outputField value="{!Object.InvoiceAmount__c}"/></p>

I get following result:
User-added image
The currency of the Record is configured as 'GBP' but VF also shows the currency of the User, in this Case EUR.

I only want to see one amount in the currency of the Record. Do you have any idea?

I tried a lot with other tags like 'outputText', but then I dont see the currency and wrong number format (###.##).

Thank you in advance :)