Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [collection]

The tag has no usage guidance.

0
votes
1answer
366 views

Making multiselect picklist value of a record to Map as Key value

In Product I have a multiselect picklist called Zonelist. I just need to have the Zonelist value in a Map collection. For example: Product Name - HP Monitor Zonelist - Zone1; Zone2; Zone3; How can ...
-3
votes
1answer
432 views

Update Parent Standard Object Getting Sum Value from Child in APEX

I am new in apex. I want to write a trigger in apex for before insert. I have to standard object (Contact, Opportunity). SELECT sum(amount), Bussiness__c from opportunity where stagename='Closed Won' ...
2
votes
0answers
994 views

Removing duplicates from a SObject Collection in Visual Flows

I am trying to tackle creating multi-touch campaign attribution using visual workflows and am running into a particular use case. To look at all of the Campaigns that are related to the Opportunity, ...
1
vote
0answers
12 views

Extract URL of the image from Rich Text field

I have a Rich Text Area field named 'ItemDescription__c' that belongs to a custom object 'Item__c'. Is there any way to extract the image's URL in that text area (an HTML code), and put it in a ...
1
vote
0answers
577 views

Use of Maps for record inserts

I totally get and use Maps for updating records. No question. If I am getting duplicate entries in my List for inserts (obviously this is poor coding which can be avoided). Know that. Let's say I ...
0
votes
0answers
25 views

Processing & writing bulkified validation using more than 50k records

I have two fields in my Opportunity object: Phone_1__c & Phone_2__c. Now I have to check to check the whole Org, if there are any opportunities made earlier using any of these two numbers. (Org ...
0
votes
0answers
11 views

Live agent API returning data always in ASC order

We are adding list for search result while hitting the live agent API call. This is returning always data in ascending order. Is their any way by which we can define the order for data collection ...
0
votes
0answers
15 views

Salesforce Flow: transform a coma separated list to a collection

I have a case when multiple values are submitted via Web-to-Case form in a single text field. The task is to create as many lookup relationships from the list as values listed. Before going APEX I ...
0
votes
0answers
212 views

Two different object with same API name, one is part of managed package. Getting collection store error

I have installed a managed package on my org. That managed package has an object with same API name as one of my custom objects. I have a trigger on my custom object where I query my object and assign ...