Questions tagged [variable-names]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

Get Field Label from history object in LWC

I am writing an LWC component to display history object results of a custom object. I am unable to retrieve field label from "FIELD" in _history object. Tried to build the logic in component.js, you ...
0 votes
2 answers
121 views

AMPScript, rendering literal variable names

I’m trying to pull in variable values from a SSJS content block. I’ve looped over a base name to create incremental variable names. It is outputting the literal variable names in to the email as ...
2 votes
2 answers
161 views

Do I need to close variables before re-opening them?

I'm currently working on an email template that will have multiple content area's. My question is if 1 or more of the content area's are using the same variable will I need to close the variable's in ...
3 votes
1 answer
5k views

What's the official term for $A in Lightning Components?

I understand that this variable can be used to access component-level information, but I was wondering what the official term for it is.
2 votes
1 answer
470 views

pulling in a variable in the URL

When I send a campaign the variable 't1CategoryLinkName' doesn't get pulled in and I end up with this link <a href="https://www.sport.co.uk//?utm_source= I've tried setting up a new variable right ...
1 vote
1 answer
6k views

Renaming LWC const variable breaks component behavior

I was surprised to find that changing the variable name for a JS const from fields to CONTACT_FIELDS caused my component to stop functioning. (I realize this is a naming convention for Java constants, ...
2 votes
1 answer
229 views

Refer to a dynamic variable on a link

I'm facing an issue since yesterday. I wanted to test the fact that, within a FOR loop, i'm able to dynamically create variables for each link. A quick example: %%[ For @u = 1 to 10 do Set @row = ...
3 votes
0 answers
1k views

Retrieve Journey Name using ampscript or ssjs

Does anyone know how to retrieve the Journey Name using either ampscript or ssjs? I want to populate the name inside of a variable when the email is sent through a journey? Something similar to ...
0 votes
1 answer
76 views

How to make varaible of items in a iteration in a lightning component

I have an iteration which reproduces a list on a lightning page. I want to make this iteration variable based on 2 lists. How do I make the list (items) variable based on IF condition? Or do I need to ...
0 votes
0 answers
569 views

Modify Name in Wrapper class with sObject type

I am using code that someone else worked on. From the code, I can tell it is smart enough to recognize that the record it is processing is the current record for the lightning component. How can I ...
2 votes
1 answer
3k views

How to set HTML as a value for an AMPSCript variable

I'm trying to set the value of a variable to be a complete table housing all the HTML I need to build a clickable image, title, and button. For brevity, I currently have: VAR @featureTitle SET @...
16 votes
1 answer
5k views

How long can an Apex identifier (variable) name be?

Apex class and trigger names can be up to 40 characters long. That got me thinking... How long can an Apex identifier (variable) name be?
-3 votes
1 answer
36 views

Trigger is not working as expected when dealing with large set of records

I need to calculate percentage based on multiple fields and i need to display field with percentage symbol. So, I wrote a trigger and calculates the score and after converting in to text and ...
1 vote
1 answer
739 views

Audit trail when an Opportunity Team Member is added

Our workflow: The Account Rep creates an opportunity. At the appropriate time, they 'request' a Consultant. This is done in SFDC with a checkbox "Consultant Requested" This checkbox triggers an ...
1 vote
1 answer
190 views

Custom Java Button Create Record on Object and fill also lookup to other Object

I created a Java Button that should create a Record on Object Zeiteintrag__c on this record is a Master Detail Relationship (Stundenkonto__c) that should be Updated with the ID of the Record of this ...
4 votes
1 answer
673 views

Error: Unknown property referenced in TestPage... Bug or Feature?

Salesforce telephone support tells me that I should not use Visualforce variables in this way because they're only intended for display in a Visualforce page and not for inclusion in a calculation. ...
1 vote
1 answer
1k views

Using multiple variable with same name in dynamic SOQL

Good day everyone I have some problem in regards with using dynamic query with too many variables. To explain further below is some part of my code. String QueryString = ''; List<List<String>...
0 votes
1 answer
2k views

JSON: how to declare an attribute whose name contains $ symbol? [duplicate]

I have written apex class.variable declaration is: public string QPA$MV2 {get;set;} It shows error: Error: Compile Error: Invalid identifier: QPA$MV2 at line 254 column 23 How to resolve it ?
0 votes
1 answer
63 views

Public list variable is empty

I have a class with 3 methods (1 static and 2 normal) - A,B,C methods. B is the static method. A calls B method, B calls C method. There is master list variable which is updated in C method. In ...
1 vote
2 answers
428 views

Custom settings field error

Although I am having this field in my custom settings it shows Error : Variable does not exist. Please find below code snippet. Can someone let me know what could be the reason? Code Snippet: ...