Skip to main content

Questions tagged [array]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
3 answers
18k views

Apex Array Slice

Sometimes I like to use a Queueable to perform work on a list of Ids or sObjects over the heaver Batchable Interface. However, to do this, we need a very solid implementation of an Array slice ...
Caspar Harmer's user avatar
12 votes
1 answer
29k views

Array.push() won't update Lightning Web Component View [duplicate]

We are migrating over to Lightning Web Components in the last couple of weeks now and we had some struggles with the arrays in Javascript. On a trackable array, when I call push in a wiredMethod, ...
Selçuk's user avatar
  • 133
7 votes
1 answer
3k views

Array.push() on a @tracked array doesn't cause component refresh in lightning-accordion in LWC

This may be a duplicate of Array.push() won't update Lightning Web Component View However, that is for an @wire case, while this is for lightning-accordion. I am attempting to use the lightning-...
DaveS's user avatar
  • 1,604
6 votes
1 answer
2k views

How does Guide Template Language parse a straight JSON array?

I'm learning Guide, and I've been able to parse an array of objects... AmpScript: set @json = '[{"voucher":"123456789"}, {"voucher":"234567890"}]' Guide: {{.dataobject JsonVar type=variable ...
Ron Coffman's user avatar
4 votes
0 answers
3k views

How do I access an array index referenced by attribute?

I am totally new to Lightning, and I come from a JavaScript background. This is what I have so far. <aura:attribute name="Packages" type="Map" default="{p1: {name: 'Package 1', price: '2500 $'}, ...
Praveen Kumar Purushothaman's user avatar
3 votes
2 answers
2k views

How to pass an array of a class from a helper to an apex controller

I have created a class with several fields like this: public class Tier{ @AuraEnabled public String Name {get; set;} @AuraEnabled public integer Min {get; set;} ...
Henk3000's user avatar
  • 537
2 votes
1 answer
902 views

How to pass a Javascript array to an Apex controller?

I have the following problem, I want to assign an array of javascript to a list of the apex controller. I have to update 3 list of the saleforce page with a "save" button and pass to the controller ...
Mauricio Blanco's user avatar
0 votes
2 answers
352 views

How to insert a data from the same inputfields into a custom object

I,m trying to save data into a custom object from a repeated form in visualforce page. This is the visualforce code. Can I do do this using array? or list? or map?.. any idea?.. <apex:form> <...
Lennon Leopoldo's user avatar
0 votes
1 answer
1k views

Display list in triggered send email based on supplied data

I have only recently started using the salesforce marketing cloud (exact target) to send out emails, so if there's something conceptually wrong with my question, forgive me :). So let's say I have ...
Adam Vigh's user avatar
  • 159
0 votes
2 answers
9k views

How to pass array to apex method in LWC

I am creating custom functionality of Adding opportunityLineItem in LWC. Once I input details and click 'Save' I am not able to pass string value or object value to Apex method. Throwing error. ({"...
SFDC 44's user avatar
  • 664