• Sandrine
  • ALL STAR
  • 7059 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 20
    Likes Received
  • 0
    Likes Given
  • 772
    Questions
  • 284
    Replies
Hello,

I am updating the records in below usecase:

- Get 60000 records by SOQL
- Prepare a list of 5000 records
- Update abouve records

As the operation is one time and long, how can i update the list using Batch.

thank you for rough code, please
Hello,

I have below error when i try to change accoutn on opportunity,

what can be probable reason
 
We hit a snag.
Review the errors on this page.
invalid cross reference id

.

I dont see any error in debug logs
Hello,

I am trying to replace  ; with ", "

I wrote below code ,jsonBody = jsonBody.replace(';','", "');

But in the string it alwyas appears the same

What can be the reason for the problem
Hello,

I have a lead source picklist value like "Web: XYZ"
a lead assignment rule is linked to this picklist.

When a lead is sent from website, web to lead.

the source is not assigned as  "Web: XYZ" hence the lead assignment rule is not working.

How can i make sure that the Lead source is affected to "Web: XYZ"

thank you in advance
Hello,

I changed the default values of the picklist;
will it change the exsiting values of the records present,
thank you for suggestion
Hello,

I have a picklist:
Few picklist values were disactivated, i activated them but those picklist values are not visible during creation or modification of the Record.

Is there  any step i am missing ?
thank you for suggestion !
Hello,

I have below error whicle i use the code
Cannot modify a collection while it is being iterated.
 
List<OpportunityContactRole> opportunityContactRoleList = (List<OpportunityContactRole>)Database.query(VCloneRecord.getCreatableFieldsSOQL('OpportunityContactRole','OpportunityId ='+'\'' + currentOpp.Id + '\'',NULL));
        List<OpportunityContactRole> cloneOpportunityContactRoleList = new List<OpportunityContactRole>();
        for (OpportunityContactRole item : opportunityContactRoleList) {
            OpportunityContactRole q = item.clone(false, true);
            q.OpportunityId = oppClone.id;
            If(q.OpportunityId != NULL)
                opportunityContactRoleList.add(q);
        }
        insert opportunityContactRoleList;

any suggestions, please ?
Hello,

insert cloneQuoteList; 

I am inserting the list of quote.
How can i get the Opportunity Id and Inserted qute id after the insert.

I want to use the Ids to insert the cloned quote line items

thank you
Hello,

When a lead is associated by lead assisgnment, i donest send any alert,
but before the user was getting a alert.

Is there any settign to do ?
thank you for reply
Hello,
I am trying to do deepclone by below method.
i want to clone opportunity with related list
currentOpp = (Opportunity)stdController.getRecord(); 
Opportunity oppClone = currentOpp.clone(false, true);

but when i do system debug for oppClone, it only contains ID

and i have below error
Error:
insert failed. First exception on row 0 with id 0060Q00000D3AnjQAF; first error: INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id]
Hello,

I have a Custom object linked to 4 other custom objects (cust__1,cust__2,cust__3,cust__4)

I want to duplicate the record, similar to clone.
Record with its 4 objects related.
Is there a solution to do so, thank you for advise
Hello,

I have below usecase  thank you for proposing me code for few parts.
1) override a button with Visualforce page or a new custom button
2) on clicking on button a popup will open with 4 checkbox and a button to save or cancel
4) based on the checkbox selected the information is sent to back end.

I am looking for solution compatible with lightning interface.
Hello,

I have an Opportunity related to standard and custom objects.
I want to override the Opportunity clone button to let user choose the related objects he wants to clone.

Are there any tutorials i could refer ?
thank you
Hello,

Id can be on 15 or 18 digits.

If i delete the last 3 characters from my 18 digits id, will i always get the 15 digits id.

thank you for replly
Hello,
I have created a report of contract.
I exported the file.
I have 15 characters but i want 18 characters instead.

How can i extractthe report with 18 characters ?
thank you for suggestion
Hello,

I want to add follow button on the contract, how can i do so, thank you.

 
Hello,

I have a process builder which is invoked when it is invoked, i want to create a task for the user connected.

How is it it possible , thank you 
Hello,

How can i reject the old approved approval action , and keeep a history of the same.

thank you
Hello,

I have a map with Name(String) and Ranks(Integer),
Name is the Pricebook name and Rank is Order by.
map<String,Integer> mapOfNameAndRank = new map<String,Integer>();

Name1, 1
Name2, 2
Name3, 3
I am populating SelectOption in below manner: 
public list<SelectOption> listOfOpt {get;set;}
for(priceBook2 prc : [select id,Name from priceBook2 ){
            listOfOpt.add(new SelectOption(prc.Id,prc.Name));
        }

My usecase is that, the SelectOption should display the Name is the order defined in map.

How can i reiterate the SelectOption inorder to order it.

thank you for suggestion
Hello,

I want to create a master detail relation between Territory (master) and a custom object (as details).

I am not able to find the object.

Do i constate that the master detail is not available for this object.
At your disposal !

thank you for your suggestion !
Hello,

I have a map with Name(String) and Ranks(Integer),
Name is the Pricebook name and Rank is Order by.
map<String,Integer> mapOfNameAndRank = new map<String,Integer>();

Name1, 1
Name2, 2
Name3, 3
I am populating SelectOption in below manner: 
public list<SelectOption> listOfOpt {get;set;}
for(priceBook2 prc : [select id,Name from priceBook2 ){
            listOfOpt.add(new SelectOption(prc.Id,prc.Name));
        }

My usecase is that, the SelectOption should display the Name is the order defined in map.

How can i reiterate the SelectOption inorder to order it.

thank you for suggestion
Hello,

When somone gives a swagger, What else do we need to do to do testing in Postman.

is there any authentcation key i should ask ?

I imported the swagger and i directly clicked on send
I get below error
{
    "code": "500",
    "name": "Internal Gateway Error",
    "message": "error unknown
}
 
Hello,

I have below errror message i received from a process builder.

Error Occurred: The flow tried to update these records: null. This error occurred: DUPLICATES_DETECTED: Click on the links below to view or edit the potential duplicate records.. For details, see API Exceptions.

what can be reason

thanks for suggestion !
Hello,

I am looking for way to override the standard Recent account pages.
User-added image
Basically, I want to remove the New button, and keeping rest as it is.
I donot want to consume new tab

Thanks for suggestion
Hello,

I have a few account records, few of the accounts are ticked as "Customer account"/portal accounts
What does it signifies, and what is its importance ?

How can i make testing of its usability, like i want to know if it is was really useful to make this account as customer account ?

thank yo for suggestion !
Hello,

For the profiles related to chatter name, like chatter free user, chatter external user, there is no option for "Object setting", there a re only optione for "Apex class access", etc.

How can i access the object settings for this profiles
Hello,

While updating records using data loader, do the triggers execute ?

If not, what are other ways of updating records where i can make sure that the triggers execute.

Thank you for suggestions
Hello,

I have a currency field on my object with name Price__c i want to populate it from the field (ParentPrice__c ) of parent (Parent__c) 

how can i achieve it in trigger,
thanks for suggestion
Hello,

How can you check access to users or profiles for price books ?

Thank you
Hello,

I have a picklist with values A, B, C in them,

I want to force the user to chooseat least one of the choice.
Is there any standard way or should i implement any validation rule ?

Thank you for suggestion!
 
Hello,

I alwaays get error when i try to save something from Dev console

Failed to create createContainerMember for containerId duplicate value found: <unknown> duplicates value on record with id: <unknown>
Hello,
 
https://servicesgateway.com/{version}/rest/{service}
 <ConfigElement name="cAccount" Url="https://servicesgateway.com/1/rest/searchByName" ContractID="XXXX" UserPrefix="XXXXXXX" UserID="XXXXX" Password="XXXXX" AppID="XXX" Version="1" />

I have a above link, which is link for web service.

I want to get the data from this link.

What are steps to do so using REST 

Thanks
Hello,

I am looking for a tutorial to integrate a wed service using rest method.

I have webservice which sends XML request and get XML response.
I am looking for tutorial to integrate a simple exsisitng web service, later i will modify for me.

thanks
Hello,

How is it possible to calculate distance between two points given the lattitude and longitude.
Also, are there other geolocalization apps i can have a look

Thanks
 
Hello,

How is it possible to get the developer name for a record type
Hello,

I am using joined report

Is it possibel to take a screenshot of a report (or converting report in to pdf)and get it in apex.

I will later use it to email by scheduler

thank you
Hello,

I have a custom objects.
There are few rows created for this custom object.

How cna i know where all is this custom object used.
Hello,

How is it possible to include a visualforce page along with the dashboard. The dashboard will also have other reports as well
Hello,

How to check the number of dashboard created in salesforce.
 
Hello,

insert cloneQuoteList; 

I am inserting the list of quote.
How can i get the Opportunity Id and Inserted qute id after the insert.

I want to use the Ids to insert the cloned quote line items

thank you
Hello,

When a lead is associated by lead assisgnment, i donest send any alert,
but before the user was getting a alert.

Is there any settign to do ?
thank you for reply
Hello,

Id can be on 15 or 18 digits.

If i delete the last 3 characters from my 18 digits id, will i always get the 15 digits id.

thank you for replly
Hello,

I have created a lookup to pricebook from a custom object.
i dont see an option to add a filter to this lookup criteria, how can i do so

thank you for your solution
Hello,

When i try to delte the report, i have below error:

User-added image
i thik the problem is realted to report in recycle bin.

But how can i detect the reports that was deleted from this folder

thank you in advance
Hello,
Few fields are visible in Rollup summary but few not.
One of the field is Formula (Currency), which is available but other has same type but it is not visible. 

User-added image

what can be the reason ?
Hello,

I have created a button and added to the related paga layout, but this button is not visible.
How can i see it ?

thank you for suggestion 
Hello,

I have a CustomObject1__c

I want to put a condition where
IF the Status__c = 'XyW'
  then - CustomDateField is Mandatory && Date cannot be less than current month

Date can not be less than current month means
If today is 25 october2019  the date can be greater thatn 1st October 2019

Thank you for suggestion
          
Hello,

I have wrtitten a triger like below:

trigger contractAfterInsert on Contract (after insert) {   

When i create new contract, the trigger is never executed, i cecked in prespective analysis, only the validation rule and wrkflow is executed

any idea on reason ?
Hello,

I have received email saying that 3 of the sandbox will be migrted to new instance,
I received certain alreat for changing IP ranges, etc.
What actions are generally taken int his situation ?
do the exsisting users will be impacted, ?
i think there will be no impact on production.

thank you
Hello,

I have a lead, whcih i shared mannually to a user by apex code using/
below link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm

User-added imageI can also see that lead is shared with user.
But when user see it it shows inssufiecuient proveliges.

what can be reason ?
Hello,

What are the stpeps tofollow, tocreate a new record typein an exsiting org for 2 years.

Thank you for suggestion !
Hello,

I have certain fields on my paglayout. X, Y, Z.

I want to ad a button on the page, say..Custom button.

When "Custom button" is clicked, i want to call a APEXclassName.FunctionName(Value of CustomField X, Value of CustomField Y, Z).

I want to execute like this.

How cani implement the same

Thank you in advance
Hello,

I am making a SOQL quesry to object contact and lead.

From the values i get from the SOQL query, i will construct need to construct a JSON

I have multiple tree, like example below:
https://json.org/example.html
{
    "glossary": {
        "title": "example glossary",
		"GlossDiv": {
            "title": "S",
			"GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
					"SortAs": "SGML",
					"GlossTerm": "Standard Generalized Markup Language",
					"Acronym": "SGML",
					"Abbrev": "ISO 8879:1986",
					"GlossDef": {
                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
						"GlossSeeAlso": ["GML", "XML"]
                    },
					"GlossSee": "markup"
                }
            }
        }
    }
}

How can i construct a JSON from SOQL responce?
Hello,

When i am trying to convert lead, i have below error:
 
Unable to convert lead that is in use by workflow.

when i check in debug logsi dont see any errors, i only have few logs saying it entered managed package..
Can someone guide me ?

 
Hello,

I have email template that user receives.
When the user replies to this email, they get the HTML tags too.

How can i get rid of HTML tags in this case ?
 
Hello,

I have a process builder where it posts on chatter. the process builder is giving error sayig that the chatter group is archived.
but when i check the group,it is active.

Howcan i debug this issue ?
thankyou for advice
Hello,

How can i add a URL link to a VF page layout and is it possible that it can be dynamic as i wanted to do url passing.

thank you in advise