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

  • Chatter
    Feed
  • 0
    Best Answers
  • 20
    Likes Received
  • 0
    Likes Given
  • 812
    Questions
  • 291
    Replies
Hello,
How can i retrive translations of a Flow in visualstudio or package ,please ?
I have a flow whch i build using flow builder, it has two version, the version are translated in translation workbench.
how can i retrive them
Hello,
I have a Flow, it has screen and screen components.
I have translated the screen components t french.
but irrespective of the translation, the value are always displayed in english.

What can be the reason, please
Hello,

On the screen of a flow, i have a input text with label as
First name.
I want to translate it to different language based on one of the input parametrs of flow.

How can this be accomplished, please 
Hello,
When a new lead is affected to user the email notification is received multiple times, sayng lead is affected, where can i check and correct it, please 
Hello,
I am trying to update a field in before udpate, but the updated value is not taken in to account, even in after update.
Any reason, i am doing wrong. 
Trigger (){

BeforeUpdate(List<Accounts> listOfAccounts){

  TempLoop= SOQL to get listOfAccounts.XYZ__r.Field__c
  for(Account acc : listOfAccounts){
       acc.FieldtoUpdate__c = TempLoop.XYZ__r.Field__c //It dont works 

   }
}

AfterUpdate(List<Accounts> listOfAccounts){
Print listOfAccounts[0].acc.FieldtoUpdate__c 
Result: it dont take in to account the updated field value

}

}

 
Hello,

I have below error for a query,
System.QueryException: Non selective query againt large object type more thatn 200000
for this query
List<User> userList = [SELECT LDAPId__c FROM User WHERE TECH_LDAPId__c=: sLDAPId AND LDAPID__c != null AND IsActive=true];
how can i resovleve this, please
 
Hello,

I have below loop where is loop across accounlist and create few set.

Loop{
populate set 1
populate Set 2
}

use set 1
use set 2

Is there a way to create a map something like:
private static Map<Id, ResourceDTO> tempmap     = new Map<Id, ResourceDTO>();
 
private class ResourceDTO {
                       
    public string id {get; set;}             
    public string name {get; set;}
    public string documenttype {get; set;}
    public string documentcategory {get; set;}
    public string filetype {get; set;}                       
    public string content {get; set;}
    public List<string> permissions {get; set;}
    public string publishdate {get; set;}
    public string lastmodifieddate {get; set;}
}

how can i access them , please 

 
Hello,

I have below loop where is loop across accounlist and create few set.

Loop{
populate set 1
populate Set 2
}
use set 1
use set 2

Is there a way to store both set in same map and use the map
like map.set1 ,map.set2
Set<String> setOne 			= new Set<String>();
        Map<String,Account> mapEmailAccount 	= new Map<String,Account>();
        List<Account> lstAccountToUpdate     = new List<Account>();
        for(Account oAccount: lAccounts){
            if(!somecondition){
                if(oAccount.Email!=null){
                    setOne.add(oAccount.Email);
                    mapEmailAccount.put(oAccount.Email,oAccount);
                }
                lstAccountToUpdate.add(oAccount);
            }
        }

 
Hello,

How can i do the SOQL query and save the result in utility class and further call the vaules populated in utility class
 
Trigger:

    trigger AccountTrigger on Account(before insert, before update)  
    {
        AccountTriggerHandler handler = new  AccountTriggerHandler();
        
        handler.updateUser(Trigger.new);  // Call method for update account field.

    }

Trigger Handler Class:


    public class AccountTriggerHandler
    {

//TO DO: Do the SOQL Call and store in utility class

           public void updateUser(List<Account> accList)
           {
                  Set<Id> masterIds = new Set<Id>();
                  
                  for(Account accObj : accList)
                  {
                    if(accObj.Master__c != null)
                       masterIds.add(accObj.Master__c);
                  }
            
                    Map<Id,Master__c> masterMap = new Map<Id,Master__c>([Select Id, test_user1__c from Master__c where Id IN : masterIds]);
                     
                     
                  for(Account acct : accList)
                  {
            
                    if(masterMap.containsKey(acct.Master__c))
                    {
                       Master__c masterObj = masterMap.get(acct.Master__c);
                  
                        if(acct.test_user1__c == null)
                
                           acct.test_user1__c = masterObj.test_user1__c;
                    }
                  }
           }
    }

Thank you for suggestion

Hello,

I have trigger in below pattern

One Account trigger
- Calls Trigger handler

Account Triger handler
- makes distinhuish betwen before ,after, insert, updae
- have each fucntion , which call class to execute actions/functions

I want to improve the trigger to get the data at the beinning of the handler class and execute the trigge logic by using the map 
in other owrds, SOQL to get the user and Account data in beginning and store in map. and use the map in the rest of the account handler.

where i could start from, please 

Hello,

I want to get list of accounts created from 2016 by months.
What is SOQL query i can use, please ?
as the records are in 30 million, i plan to execute soql by each month
Hello,

I have created a flow on Case object.
I have a custom_setting2_c with fields custom_field_2__c a checckbox
with Default Organization Level Value which is true or false.

How can i include the check for the custom setting value in flow, please ?
Hello,
I want to create a global checkbox which if true will exute code block one.
What is simplest way to achieve it , please ?
If(Global checkbox == True){
    @AuraEnabled(cacheable=true)
    public static string FucntionName(){
       //Logic
   }
}else{
    @AuraEnabled
    public static string FucntionName(){
       //Logic
   }

}
thank you for advice
Hello,

I have below limit reaching as we send many emails from apex
SINGLE_EMAIL_LIMIT_EXCEEDED
We are obliged to send email from apex as the logic is comlex. is there any workaround for the soltion.
Can we stock email somewhere and send email later
thank you for feedback
 
Hello,

For the release update "Enforce Access Modifiers on Apex Properties in Lightning Component Markup"

I would like to know the steps to follow for analysis and possible workaround if possible.

links for reference :
Link 1 (https://help.salesforce.com/articleView?id=release-notes.rn_lc_enforce_prop_modifiers_cruc.htm&type=5&release=230)
Link 2 (https://help.salesforce.com/articleView?id=release-notes.rn_lc_crucs.htm&release=228&type=5)

Thank you for advise
 
Hello,

For the release update "Disabled Ref Id and New Threading Behavior for Email-To-Case"

I would like to know the steps to follow for analysis and possible workaround if possible.

links for reference :
Link 1 (https://help.salesforce.com/articleView?id=000356212&language=en_US&mode=1&type=1)
Link 2 (https://trailblazer.salesforce.com/ideaView?id=0874V000000UJNPQA4)

Thank you for sharing 
 
Hello,
All my detail pages of the objects (account, opportunity and lead) are not correct. They are oriented to old settings
what can be points to check, please ?
Hello,

I have a user in community who sees two different things in Sandbox and Production.
How is it possible to check what is the difference, please ?
 
Hello,

I had issue on the salesforce side during the weekdnend due to update of salesforce.
Is there any link that can share this details, please ?

CORS Cross-Origin Resource Sharing
Hello,

I have a HTML page like below which i want to integrate in Visualforce page.
How can i do so, please
 
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script src=" https://cdn.chatbotpage.com/testingcode/bundle.min.js"></script>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>
<div id="chatbot-root"></div>

</body>
</html>

 
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,

On the screen of a flow, i have a input text with label as
First name.
I want to translate it to different language based on one of the input parametrs of flow.

How can this be accomplished, please 
Hello,

I have below loop where is loop across accounlist and create few set.

Loop{
populate set 1
populate Set 2
}

use set 1
use set 2

Is there a way to create a map something like:
private static Map<Id, ResourceDTO> tempmap     = new Map<Id, ResourceDTO>();
 
private class ResourceDTO {
                       
    public string id {get; set;}             
    public string name {get; set;}
    public string documenttype {get; set;}
    public string documentcategory {get; set;}
    public string filetype {get; set;}                       
    public string content {get; set;}
    public List<string> permissions {get; set;}
    public string publishdate {get; set;}
    public string lastmodifieddate {get; set;}
}

how can i access them , please 

 

Hello,

I have trigger in below pattern

One Account trigger
- Calls Trigger handler

Account Triger handler
- makes distinhuish betwen before ,after, insert, updae
- have each fucntion , which call class to execute actions/functions

I want to improve the trigger to get the data at the beinning of the handler class and execute the trigge logic by using the map 
in other owrds, SOQL to get the user and Account data in beginning and store in map. and use the map in the rest of the account handler.

where i could start from, please 

Hello,

For the release update "Enforce Access Modifiers on Apex Properties in Lightning Component Markup"

I would like to know the steps to follow for analysis and possible workaround if possible.

links for reference :
Link 1 (https://help.salesforce.com/articleView?id=release-notes.rn_lc_enforce_prop_modifiers_cruc.htm&type=5&release=230)
Link 2 (https://help.salesforce.com/articleView?id=release-notes.rn_lc_crucs.htm&release=228&type=5)

Thank you for advise
 
Hello,

i have a use case where i wamt to isert record in to custom log before a null pointer exception is fired.
I am reproducting the null exception and adding log.
but i see that the log is not inserted before the null pointer exception is fired

what can be the issue please

Hello,

I have a code pice like below
If(String.isNotBlank(StringFieldNAME)){
            If(StringFieldNAME.Contains(';')){
                StringFieldNAME = '["'+StringFieldNAME.replaceAll(';','", "')+'"]';
            }            
        }

In the putput of JSON, i have like this
"[\"J\", \"L\", \"M\", \"N\"]"

But My Expectations is 
"["J", "L", "M", "N"]"

How can i do it ?
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 !