Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
2 votes
1 answer
26 views

How can i change default list view for custom object

I have a custom object called "Customer Successes". I can not figure out how to change the view so that when i click on the tab at top, i see the view selected in image. Currently, I have ...
bart2puck's user avatar
  • 147
-1 votes
1 answer
31 views

Adding new prospect to a list using API

I am writing some automation in Python to push prospects into a Pardot list. I thought the list endpoint would help me acheive this. But, it only gets the metadata of the list. Is there any endpoint ...
Aragorn Vale's user avatar
-1 votes
0 answers
19 views

List views within an Account

I am trying to edit a list view of opportunities that I get from within an account. From an account record I go to view opportunities but I want to change the columns that I see. the cog is grayed ...
Susie's user avatar
  • 1
0 votes
1 answer
63 views

How to merge objects in query?

I have 2 custom objects. Let's say its customObj1__c and customObj2__c. List<customObj1__c> obj1 = [SELECT Id, Name__c, Age__c FROM customObj1__c ORDER BY CreatedDate ASC]; List<customObj2__c&...
Saber's user avatar
  • 1
0 votes
0 answers
47 views

How to call the LWC/ Aura Cmp in List View Buttons directly?

We are moving Salesforce Classic to Lightning. In that process I have a Opportunity Object . In that Opp List View I have a "Reset", This is an OnClick JS button. Now for this button I ...
kothamasu kavyasri's user avatar
0 votes
1 answer
38 views

Compare 2 Lists of same sobject and store the unique records in a list

I have 2 List<Sobject> one contains existingRecordsList and other updateRecordList. existingRecordsList = (Account:{abc__c=a0o7a000,xyz__c=a0o5r000, id =a0o5r000002GaHhAAK}) updateRecordList = ...
Raham's user avatar
  • 43
-1 votes
1 answer
38 views

How to disable inlinedit option on list views for a specific profile only?

How to disable Custom list view inline-edit option for fields for a specific profile ? .
Basha's user avatar
  • 3
0 votes
1 answer
55 views

SOQL inside invocable method returns no results

I have an invocable method which is invoked when a platform event is published. So far the invocable method invokes on time and some elements of the data are extracted from the platform event. Now ...
sumchans's user avatar
  • 777
1 vote
1 answer
78 views

List of Strings is empty in @Future-method

So I have a list of Strings which is populated with Ids (in form of Strings) in the batchProcessSchedules() method. By reaching the limit (size) it will pass this list, together with another list and ...
FelixHVD's user avatar
0 votes
1 answer
65 views

there must be only one primary contact on account by utilising isprimary checkbox

stuck in here What if someone uses dataloader and make 2 contacts for same account as primary, then my code is not working public class Contactispr { public static void Conta(List<Contact> ...
manutomar46's user avatar
0 votes
0 answers
34 views

How to use the List<Account> value created in ApexClass in Visualforce Page

My Apex Class is like this. public with sharing class displayWarning { ApexPages.StandardController controller; public displayWarning (ApexPages.StandardController controller) { this....
ttarikyuksel's user avatar
-1 votes
1 answer
72 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
341 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
  • 107
0 votes
1 answer
51 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
738 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,298
0 votes
1 answer
246 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
  • 19
0 votes
0 answers
83 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
95 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
139 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
504 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
1 answer
59 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
56 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,460
0 votes
1 answer
186 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
983 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
140 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
209 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
0 votes
2 answers
4k 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
113 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,189
0 votes
2 answers
121 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
1k 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
  • 343
-4 votes
1 answer
74 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
  • 433
0 votes
1 answer
1k 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
62 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
424 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,298
-1 votes
3 answers
267 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. ...
kkJhn's user avatar
  • 23
-1 votes
2 answers
129 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
177 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,298
1 vote
3 answers
962 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
129 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
35 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
314 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
451 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
3k 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
288 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
294 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
190 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
952 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
163 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
32 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
2 3 4 5
18