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

  • Chatter
    Feed
  • 0
    Best Answers
  • 17
    Likes Received
  • 0
    Likes Given
  • 702
    Questions
  • 275
    Replies
Hello,

I have created a connected app.
How can i expose a custom object for web service ?

thank you for suggestion
Hello,

I have a button like below on Opportunity object
User-added image
 
<apex:page standardController="Opportunity" extensions="VFC009_CreateContract" lightningStyleSheets="true" docType="html-5.0" >
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <head>
          <apex:slds />
        </head>
        <body>

        </body> 
    </html>
</apex:page>
 
public class VFC009_CreateContract {

    public VFC009_CreateContract(ApexPages.StandardController stdController){
        currentOpp = (Opportunity)stdController.getRecord();
        initPage();
    }

}

If the Created date of opportunity in less than jan 2015, i want to display a message to user to say that "opp is too old cant convert" else the apex code is executed normally.

How can i implement the code ?

Thank you for suggestion !
Hello,

I have below set up:

(Master)Account
             Opportunity
(Detail) Address (Master Lookup)
             Quote (Detail lookup)              
 
I have a lookup on Quote to Address.
I want to implement the filter criteria to display only address which belong to Account id of Quote.

My filter criteria is

Address: Account = ? 

in ? i have only Opportunity ID but i dont have Account ID
I created a formula to get the account but its not displaying in filter criteria.

thank you for advise
Hello,

I have below code which was workign in Sandbox but on production it fails because records are more than 50000, how can i solve this issue without regression.
public static void PutCodeForAccount( List<Account> accountList ){
Account acc = getLatestAccount();
if(acc != null) {
            Integer intValue = getIntFromName(acc.Code__c);
}

//Method to get the Last inserted Record based on created Date for the existing records
    private static Account getLatestAccount() {
        List<Account> accounts = [SELECT ID, NAME, Code__c  FROM Account ORDER BY CreatedDate Desc];  ///// System.LimitException: Too many query rows: 50001
        if(accounts.size() > 0) {
            return accounts[0];
        }
        return null;
    }

// Method to spilt the first 4 characters from concatinated number
    private static Integer getIntFromName(String Name) {
        String phrase = Name;
        
        Integer rephrase = null;
        
        if(phrase != null && phrase.length() > 4) {
            phrase = phrase.substring(4, phrase.length());
            if(phrase.isNumeric()) {
                rephrase = Integer.valueOf(phrase);
            }
        }
        return rephrase;
    }

The account code(Code__c) lookss like ABCD980001

So the above code takes the integer value of the code from the latest inserted account.

I just want to get the last inserted account

Thanks for help
Hello,

I want to get a token from the end point:
User-added image
For passing parameters in end point i have Authorization, Header and Body.

Ho can i write the code for the Authorization part, Authorization type = basic, User name and password, etc 

I already have written code for header and body

thank you for suggestion !
Hello,

I have a usecase where, i get 4 characters of account name and i append a unique 10 digit number after.

i am wondering how can get the last number generated and increment it by one.

thank you for suggestion !
Hello,

I am geeting a substring like below
strText = strText.substring(0,10);
How can i make it 10 characters if the str text is less than 9 characters.

Thank you for suggestion !


 
Hello,

I have activated feed tracking on Object Contract.

I dont see it on layout or contact history, how can i check it on page layout and also how can i query it in Query editor ?

thank you for suggestion
Hello,

I have below settings:

objectCustom__c
   picklist_custom__c
   A
   B
   C

    picklist_custom1__c
    X
    Y

I want to implement Validation rule like below:

Validation Rule 1:

If picklist_custom__c  = C,
   then only User is able to choose picklist_custom1__c = X 

Validation Rule 2:
If  picklist_custom1__c = X,
 Then dont allow user to modify it

What should be validation rule code.

Thank you for sugestion.
Hello,

I want to update a field on a Account to true when the satus of opportunity is changed to Won.

How can i be able to achieve with Procssbuilder or workflow

thank you for suggestion
Hello,

I have a objectCustom__c
with a picklist_custom__c with vaues A, B, C
I have another picklist_custom1__c with values X and Y

I want that the user can change the value of picklist_custom1__c to X only when the picklist_custom__c == C

and once the picklist_custom1__c =X, then he should not be able to modify it

How can i implement the validation rule for the same

thank you
Hello,

I have below error:
FATAL_ERROR caused by: System.AsyncException: Future method cannot be called from a future or batch method:

for a workarounf, can i do like below
Trigger before update
  Call a future class
     Call API
     DO a Update action

Trigger After update
    Call a future clas
       Call a API

What will be my best configuration to do

What are generic rules , DML, Future how to set them

thank you for suggestion
Hello,

I exeucte a postman request to get the token.

I was writing a code for authenticating the API in slaesforce, but found that the headers are not correct.

I tried to get the headers by other way.

User-added image

How can i write the code for first part of the screen shot,  ?
Hello,

https://www.google.com/maps/d/u/0/
With above link, if we store a CSV it gives many locations on map

User-added image

Is there any salesforce tutorial for interationg and finally display the map in Salesforce

thank you for suggestion !

Thank you ?
Hello,

If the field level setting is ready only. for all profieels except system administrator.

and a trigger exisits on that field to fill it before insert.

Will the trigger execute ?
thank you for suggestion
Hello,

I get a token from Postman and then i use the token to call and API.

How can i write te salesforce code for same:

below is screenshot in postman:
User-added image
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 am creating a reports on Contracts.
I filtered by date.

I dont see all the contracts.

is there any standard field that blocks the display of contracts in reports ?

thank you for suggestion
Hello,

I have below error, what can be reason:

Non static method cannot be referenced from a static context: void ContractTriggerHandler.OnAfterUpdate(List<Contract>, List<Contract>, Map<Id,Contract>, Map<Id,Contract>)

Any suggestions ?
Hello,

I want to implemeent below usecase

After update
 - I want to check that if the Picklist_Custom__c value = XYZ
IF true i want to call a Apex_classNAme.ApexFucntion()

How can i write the code for same.

thank you 
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,
 
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,

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,

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
Hello,

I have an emailTemplate.

When the email is sent to the clients, first word HELLO, which is in bold appears to be in different color to some users.

What can be the reason for this unusual behaviour ?
Hello,

I have below error when deploying a process builder with the email alert
You must specify a verified Org Wide Email Address for this sender type

what canbe the workaround ?

 


Hello,

I have "organisation wide adress" but sometimes, when users sends the email: he gets this error message.
 
responseof distance server
552 size limit exceeded

Thanks for advise
Hello,

I was trying to add a "dashboard filter" in lighning.
I am getting only "date" fields for filter.

What are limitations for dashboard filter ?

Thank you for inputs 
Hello,

I am using lightning.

How can see the archived chatter groups ?
Are than any impacts to acivate or diactivate a chatter group ?

Thank you for suggetion