Questions tagged [list]

A list is an ordered collection of elements that are distinguished by their indices. List elements can be of any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
65 views

apex list of object

I have a list of objects: List<Volume_Detail__c> listVolumesDetails = new List<Volume_Detail__c>([SELECT Id,Year__c,January_Volume__c, April_Volume__c,Volume__c FROM Volume_Detail__c ...
user avatar
0 votes
1 answer
74 views

Custom Settings - Unable to access or see custom setting in Flows

I created a Custom Setting with Visibility - Public & Type - List to reference in Flows. But I don't know why I can't find the value. I noticed other Custom Settings with Type - Hierarchy are ...
Pam's user avatar
  • 97
0 votes
1 answer
41 views

Not able to add list<String> BCC to setBccAddresses ,VARIABLE_ASSIGNMENT [885 line] common.apex.runtime.impl.ScalarList@3fc50cb5

FYI .........If I remove this BCC code emails are going fine. enter code here public static List<Messaging.SingleEmailMessage> listEmailMessage = new List<Messaging....
shashank kulshreshtha's user avatar
0 votes
1 answer
108 views

How to iterate over map with id and Sobject list

I have the following piece of code: map<id,List<Spot__c>> spotMap = new map<id,List<Spot__c>>(); List<application__c> apPList = [SELECT ID, Account__r.id,(SELECT id,...
Thomas's user avatar
  • 2,294
0 votes
1 answer
100 views

Split up the field and form new map in Apex

I am having one unique scenario, as if ResV is coming as below in the list List<AsQres> assresponseMulti = new List<AsQres>(); output as below - (ASQREsponse":{ Id=0jb2z000000Cauijui,...
Shekher's user avatar
  • 11
0 votes
0 answers
48 views

How to refresh automatically a list with active audience channel in Marketing Cloud

I've created a filtered list with Active Audience channel. I intend to use this list in a contact deletion process. Is there any way to refresh this type of list automatically (something similar with &...
AdinaU's user avatar
  • 1
0 votes
2 answers
70 views

update fields in a records which is coming as a string

I am getting fields and its values in form of a string, for example: field1*Value1,Field2*Value2,Field3*Value3 I need to update above 3 fields in a record with their given values. Object ob=new object(...
Learner's user avatar
  • 21
0 votes
2 answers
99 views

How can I bulk search Subscriber Keys for imported lists to Marketing Cloud?

I work at an organization that frequently hosts webinars. We use marketing cloud to send generic, full subscriber list emails promoting these events. But we also use it to send follow-up emails to ...
user132792's user avatar
4 votes
1 answer
199 views

What is the 'ids' system variable in salesforce?

I am recently working on a project to pass selected records from a list view to a screen flow. I pretty much have it working, but there is one aspect I am using that I really don't understand, and I ...
Luke Sharon's user avatar
0 votes
0 answers
72 views

Need advice on use of Visualforce page vs Lightning Web Components

I am trying to create a button on a list view in salesforce that, when clicked, will open a popup dialog of sorts. I would expect the button to be at the top of the list view, directly alongside the '...
Luke Sharon's user avatar
0 votes
1 answer
58 views

HTML conditionnal List

I have a Data Extension with 3 variables/columns. In my email, i want to display the content of these 3 columns as follow : Your products : ○ %%ID_Product_A%% ○ %%ID_Product_B%% ○ %%ID_Product_C%% My ...
ayakuza91's user avatar
0 votes
0 answers
45 views

Unable to parse JSON with list

Currently, I'm trying to access JSON with the list included, but when I tried to access the organization from the matches list it's saying variable doesn't exist. Please let me know how to fetch the ...
Pavan tej's user avatar
  • 1,439
0 votes
0 answers
37 views

Should we make the leap from standard list view capabilities to a custom UI?

In our managed package we have been trying to use standard list view functionality for bulk actions of viewing, editing or processing multiple records. We’re at the point were some of the following ...
Jack McGrady's user avatar
0 votes
1 answer
139 views

Receiving this error "Method does not exist or incorrect signature: void add(OpportunityTeamMember) from the type List<List<OpportunityTeamMember>>"

I am trying to pass a list of records back into a flow as a collection variable but keep hitting this error Method does not exist or incorrect signature: void add(OpportunityTeamMember) from the type ...
Mona Weso's user avatar
-1 votes
1 answer
615 views

Only "Recently Viewed" option for list view

It seems my only option to view leads is "Recently Viewed". How can I change this?
user128559's user avatar
0 votes
1 answer
119 views

getting attempt to de-reference a null object while assigning value to a list

List<SIM_Cam_Request__c> requestRecordList=new List<SIM_Cam_Request__c>(); requestRecordList = [SELECT id, name, SIM_Cam_System_Role__r.Name, deletedSimCamSystemRole__c, FROM xyztable ...
Avinash Chourasiya's user avatar
-1 votes
1 answer
121 views

Subscription Method of a Subscriber in SFMC

I'm in need of Subscriber source details. As I'm going through each report, I found List demographics give Subscription method details but not at the subscriber level. Do we have any feature in the ...
ScarletWings's user avatar
-1 votes
2 answers
2k views

hide the delete button in a related list for a custom object

How can I hide the delete button for a record in a related list for that record's object?
kushagra saini's user avatar
0 votes
1 answer
93 views

Convert String of primitive type to a List of primitive type

I have a case in which we got some text-area fields that can have a list of String, Integer, and Decimal as a String. for example, the field can have: 1111,2222,3333,4444,5555 another example, the ...
Salvation's user avatar
  • 1,147
0 votes
2 answers
105 views

List has no rows for assignment to SObject when tried to Get All Manager Id

I have a problem with this code , I trie to get all the list of account for the five manager of the user , I used this code but I get this error : List has no rows for assignment to SObject This is ...
Salesforce dev98908's user avatar
0 votes
1 answer
662 views

What is the recommended place in SFMC where subscribers's custom user-preferences for emails should be stored (i.e. custom email subscription center)? [closed]

Goal: I am looking into creating a custom user-preference center for subscribers in SFMC (to manage email preference - like offer email, newsletter emails, etc - i.e. custom email subscription center)....
kl2's user avatar
  • 317
0 votes
0 answers
143 views

Show list of error in ShowToastEvent LWC

Hello everybody I am currently working with a LWC form that gathers information from the user and send it to an apex class that verifies if the data from the user is correct. In case of not being ...
user avatar
-4 votes
1 answer
59 views

Error: illegal assignment list to list [closed]

@RestResource(urlMapping='/Contact') global class WSgetcontact { @HttpGet global static list<contact> doGet() { WSgetcontact.contactproductwrapper result = new WSgetcontact....
Vidya's user avatar
  • 1
0 votes
2 answers
2k views

Passing List of Ids from LWC to Apex

I am trying to pass multiple opp Ids in order to link a file that is getting uploaded to those opps. I have my list of records Ids that I am passing to the apex but I am getting an error, {message: &...
Frank's user avatar
  • 405
0 votes
1 answer
992 views

Sort a list alphabetically

i have a multiselect picklist field Roles and i was trying to get the values in alphabetical order based on that(Roles) field.The method is as follows public static List<opportunityRoles> ...
Tency Serah's user avatar
0 votes
0 answers
50 views

How do you initialize a list of feedItem on creation?

I've been having a hard time finding an answer to this question. How when you instantiate a list of FeedItem, do you manually initialize that list with more than one item at a time? So far this is ...
JM Luttrell's user avatar
0 votes
1 answer
350 views

Error:Method does not exist or incorrect signature: void add(List<Contact>) from the type List<List<GetContact.methodOutputs>>

I am trying to pass a firstname and lastname to an invocable method and get a list back of contacts filterd on firstname and lastname but get the error before saving my class: Method does not exist ...
Thomas's user avatar
  • 2,294
-1 votes
3 answers
219 views

Remove Duplicates in a list while adding up the other fields

I am trying to remove duplicate values in a list while adding up the other fields. e.g. my logic is → remove duplicates by (Name + role__c) and add the paid__c and hours__c values to the unique one. ...
jhin's user avatar
  • 23
-1 votes
2 answers
92 views

Extract data from string and reframe it into another

I have got a string in below format: String test = '11, -22|32.45, 34|32, 41|32, 12.12'; I am trying to convert it into below format: {"a":11,"b":-22|"a":32.45,"b&...
user15754268's user avatar
0 votes
2 answers
134 views

How to pass field of id from List to set

I have the following List from which I want to pass the UserId field into a set string filter ='select UserId from OpportunityTeamMember'; List < sObject > filterList = database.query(...
Thomas's user avatar
  • 2,294
1 vote
3 answers
662 views

Technical Reason For Declaring A List with New vs. without New in Apex

What is the technical reasoning behind the two ways to declare a List? I know that new tells the compiler to create an instance of the List class, but what does the second one do differently? Also, ...
natashabowman's user avatar
-1 votes
1 answer
78 views

Get object with specify id from list object in APEX [closed]

I have a list like following: List<idName> = [idName:[name='AAA', id=1], idName:[name='BBB', id=2], idName:[name='CCC', id=3]] And one input is equal 2; So how can I ...
Richard's user avatar
  • 33
0 votes
1 answer
34 views

Duplicate in list

I am trying to update SObject record depending on the crtieria, id it matches create a SObject variable and adding values and then finally adding this into a List.When a match is found the Sobject ...
Yami's user avatar
  • 1
1 vote
1 answer
298 views

Can't parse JSON properly - access to inner list values

for two days, i am trying to figure out parsing of following json. [ { "name": "Czech Republic", "alpha2Code": "CZ", "...
MatejN's user avatar
  • 31
0 votes
0 answers
318 views

APEX: How to find index of a list using partial text?

I have a very common requirement yet I am unable to find articles online. Requirement is - I want to find index (position) of an element in the list using partial text search for instance this code - ...
Praveen Behera's user avatar
0 votes
2 answers
2k views

Remove duplicate values in a list

Hello Im Trying to remove duplicate values in this table The specific field is Sold_to_Broker_1_Commission_Rate_c, now my method is only returning the list with others parameters (more development), ...
Alex Barón's user avatar
0 votes
1 answer
205 views

How to insert a record and input values from the master/parent information

I have a custom object named "Property Booking" where if the status changed to approved I have to create a record for my "Quotation" custom object. The tricky part here for me is I ...
Kejer's user avatar
  • 31
0 votes
1 answer
212 views

Add Internal Email Distro to All Marketing Cloud sends

We have 40 distributed teams that send emails and they use multiple lists and DE's. How can my team be copied on every email we send through SFMC? Other email platforms allow for you to CC an ...
Kevin G's user avatar
1 vote
1 answer
147 views

Create map from list and set where set value matches value in list

I have an apex class that is parsing json responses from a few apis. The result is having a set and a list from the responses and I would like to map them together where the map key would be the value ...
Wes's user avatar
  • 41
0 votes
1 answer
705 views

Populating Publication list using a Data extension, is that possible?

I have set up a Smart Capture form to handle subscription preferences, it just receives the subscriber information and stores it in a DE, there are 5 boolean attributes in the DE that correspond to 5 ...
David Boada's user avatar
-1 votes
1 answer
154 views

How to aggregate list value due to field

I have a query like this: List<MyCustomObj> myCustomObjList = [Select code, color, isSold FROM myCustomObj]; and that's the result: myCustomObjList = [a1a, red, true], [a1a, ...
Frii75's user avatar
  • 1
0 votes
1 answer
23 views

Wrapper resultlist will not appear at my visualforce page

The resultlist of my wrapper will not appear at my visualforce page. The debug log shows me that something is in the resultlist, but nothing at my visualforce page. public class Camp_Letter { ...
FenTro's user avatar
  • 29
-1 votes
1 answer
1k views

Why is send list email showing 'email queued' and not sent?

why is Salesforce showing "List email was queued" and the email was not sent? I have checked and the user does have the permission to send list email at the profile level.
dev4life's user avatar
  • 372
-1 votes
2 answers
3k views

how to convert a list to list of lists in Javascript

I'm trying to turn a list into a list of lists. In this case I have a list similar to the following: a = [ 1, 1, 1, 2, 3, 3] and I would like to separate the same items for another list, like: a = [[1,...
Eduardo Murakami's user avatar
0 votes
1 answer
102 views

Display list vertically in vf page

I have an inputText field in which I want to display a String list.The list diplay horizontally like 'test1', 'test2', 'test3' .I want it vertically like test1 test2 test3 The purpose of displaying ...
Fawad azam's user avatar
-3 votes
1 answer
512 views

Pushing objects in a list Apex [closed]

I have an list of object eg: List a = 1 , 2, 3, 4 now i want to push an object in position 2 , i.e a.push(5,2) // push 5 in position 2 // 1,2,5,3,4 is the value of a how can i achive this in apex?
Akash Jain's user avatar
0 votes
1 answer
34 views

Can't add custom class to list

I have custom Wrapper class public without sharing class OppProdWrapper { public String Name; public Decimal UnitPrice; public Decimal TotalPrice; public OppProdWrapper(String ...
Yauheni's user avatar
  • 29
0 votes
1 answer
162 views

How to populate records into specific wrapper structure?

There is an external system, from which I need to pull (via REST request) information about, let's say, brands and their categories. After the request, I need to collect the data in such structure: ...
Dmitriy Yurkin's user avatar
0 votes
1 answer
278 views

All Subscribers issues across Multiple BU's

I have a Master BU and 5 child BU's. When a subscriber signs up on the website they were added to child BU and a welcome Email is triggered, they were added to All subscribers in all child BU'S and ...
karthik v's user avatar
0 votes
1 answer
145 views

Delete all the Subscriber from a Supression List

I'm trying to remove all subscribers from a suppression list, I have been able to get one in particular to be deleted, but I have not been able to do it for all of them. How could it be done? Thanks ...
MRT's user avatar
  • 9

1
2 3 4 5
18