Questions tagged [function]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
82 views

Importing Function from LWC js File returns 'Is Not Function'

Trying to figure out how to share JS functions with another component. I have followed the documentation on the LWC here Here is the functions.js file reusableLWCFunctions.js const myfunction = (...
1
vote
1answer
41 views

SQL - How to filter the max value

I am in the middle of creating an SQL in SFMC. I have three attributes in the source Data Extension: GlobalID, CategoryDescription MAX (yes, the name is weird, but it is not the point...). What I ...
1
vote
0answers
14 views

Report Formulas - Divide Summary Field by Number of Users

I am trying to find the Average Number of Hours each user logs per week (by Billable vs Non-Billable Hours). I have attached a screenshot. I want the sum of the hours (20.34) divided by the number of ...
0
votes
0answers
15 views

How to get covered my aggregate result in my test class [duplicate]

I have one class and in my test class i am getting only 65 % code coverage, and all my aggregate function is red. How could I cover these lines of code? Here is my class global class ...
0
votes
1answer
156 views

How to call a method in a lightning component in same helper

I have a delay function in a lighting component helper from which I want to call another function I get the error [this.displayToast is not a function] how do I achieve this? Delay function: ...
1
vote
1answer
107 views

[APEX]: Way to iterate over method parameters

I have a method that accepts 4 parameters. I want to do the same action for every parameter if it's not null. Is there a way to iterate over all parameters rather than building if blocks? So for ...