• Ken Koellner @ Engageware
  • NEWBIE
  • 50 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 76
    Questions
  • 76
    Replies

I use Developer Console to analysis performance using Execution Overview.  One thing that I find missing is that Flow is not shown.  I can see all the FLOW_.... entries in the log but nothing appears in any of the analysis panels.

Is this a gap, it just doesn't do it and you have to go to the log text?

I see Workflow as one of the options shown but that appears to show only old Workflow, and not Flow.

Am I missing something?

I know that workbench isn't officially supported, but I have been trying to use it for several days, but it isn't working and is giving me this error message:

UNKNOWN ERROR: read error on connection to ec2-34-194-152-137.compute-1.amazonaws.com:6379

There is a thread about this as well: https://salesforce.stackexchange.com/questions/405728/unknown-error-read-error-on-connection-to-ec2-34-194-152-137-compute-1-amazonaw

Would someone please look into this and fix the issue?  If not, is there someone we should contact to get it fixed?  Thanks!

Does anyone know what calls contribute to the FIELDS_DECRIBES limit?  I read that describes limits were elimnated in '14 but some must still exist as I see the following in Dev Console Execution Overview...

User-added image
The following code does not contribute to the limit ...

for (Integer i=0; i<191; i++) {
	Schema.DescribeFieldResult sfField = Account.Industry.getDescribe();
}

SF documentation says to use methods that support Locale, specfically format().  But I'm sorely disappointed to find there there is no inverse of this method.  valueOf() is not the inverse of format(). 

Decimal myDecimal = 123456.09;
String myString = myDecimal.format();
Gives me "123,456.09" in the US.

If you call Decimal.valueOf('123,456.09') you get an exception.  And if you had your locale set to France, you'd get the analogous error with Decimal.valueOf('123.456,09').

It appears I now have to write a method that understands Locale and the characters used in that Local and approrpriately hacks the value to get valueOf() to work.  

Before I write it, anyone have such a method already coded?

 

(It really seems to be that Apex should be able to do this out of the box.)

We have the feature on that enabled strict picklist for the State field in addresses such as in Lead.  We do not want to configure intergration values as we want the state names, e.g., "Texas" to be used everywhere.

An external system is sending state code, .e.g, "TX".  I was hoping to write a trigger on Lead that runs on before insert that translates the value.

The code below is a portion of the code run in the before trigger...
Map<String, Integration_State_Map__mdt> stateMap = Integration_State_Map__mdt.getAll(); 
        for (Lead leadIter : newLeadList) {
            if (String.isBlank(leadIter.State)) {
                continue;
            }
            Integration_State_Map__mdt stateEntry = stateMap.get(leadIter.State);
            if (stateEntry != null) {
                leadIter.State = stateEntry.State_Name__c;
            }
            System.debug('\n' + JSON.serializePretty(leadIter));
        }

I can see that the trigger is indeed translating the state value.  Note the Sytem.debug statement above.  Below is a portion of the output showing that state is "Texas" and not "TX".

{
  "attributes" : {
    "type" : "Lead"
  },
  "Company" : "foo2",
  "DoNotCall" : false,
  "HasOptedOutOfFax" : false,
  "OwnerId" : "0055e000006PjyxAAC",
  "RecordTypeId" : "0125e000000qlvFAAQ",
  "CountryCode" : "US",
  "Status" : "Not Started",
  "IsConverted" : false,
  "IsUnreadByOwner" : false,
  "HasOptedOutOfEmail" : false,
  "State" : "Texas",
  "LastName" : "foo1"
}
A portion of the log with the error is shown below.
 
13:01:13.537 (1604369671)|CODE_UNIT_FINISHED|LeadInsert on Lead trigger event BeforeInsert|__sfdc_trigger/LeadInsert
13:01:13.537 (1610792921)|DML_END|[5]
13:01:13.537 (1611266013)|VF_PAGE_MESSAGE|There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states.
13:01:13.537 (1611458601)|EXCEPTION_THROWN|[5]|System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states.: [State]
13:01:13.537 (1612090942)|HEAP_ALLOCATE|[5]|Bytes:216
13:01:13.537 (1612311151)|FATAL_ERROR|System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states.: [State]

I would think if the value is changed before trigger, it would accept the value.  I don't undestand why it is still complaining.

Any ideas how to get this to work????
When uploading a Chatter Photo, there is the option -- Show my photo on publicly accessible pages.

I see when uploading a photo that the field IsProfilePhotoActive is set to true.

I cannot find a field in User that represents the publicaly accessible option.  I see a field named IsExtIndicatorVisible but that does not appear to be it as I have that option on in my User and the field is still false.

Anyone know if that value is available or not in a field somewhere?

(Please answer if you know for sure and then I will vote your answer as best answer.  Please don't guess if not sure and then ask for vote for best answer.)
There's a checkbox on the VF page edit form labelled "Available for Lightning Experience, Experience Builder sites, and the mobile app"

I want to configure pages that are available on Lightning Desktop but not the Mobile App.  I'm wondering if that lable is at all correct.  I have some pages with it checked and some pages without it checked.  All are available on Lightning desktop but the unchecked ones aren't available in Mobile.  So maybe that box does what I want.  But I'm wondering why it contains "Lightning Experience" in the label if a page is available in Lightning without it checked?????

I want to start prototyping a Lightning Web Component to create AND edit a record in a custom object.  All the examples I found have one component for Edit and one Component for Create.  

Anyone have an example of a component that does BOTH edit AND create?

 

Hi,

how to get parent record values while creating child reocrd in Lwc component.

Thanks
KMK

This isn't so much a question as an observation, unless someone knows a work around.

It's nice the Apex debug logs now show an explanation of the query plan for SOQL as shown below --
 

10:00:09.343 (6541134992)|SOQL_EXECUTE_EXPLAIN|[150]|Index on Event : [Meeting__c], cardinality: 1, sobjectCardinality: 12760, relativeCost 0.001


However, it only does that for static SOQL.  For dynamic SOQL, it doesn't show a query plan--

10:00:09.343 (6677301225)|SOQL_EXECUTE_EXPLAIN|[312]|No explain plan is available

There are some cases where I wanted to check that a generated query was efficient so I had to extract the SOQL generated, then run it manually in Dev Console to check it.

It would be nice if debug also showed query plans for Dynamic SOQL.
<ui:inputText click="{!c.onfocus}" updateOn="keyup" keyup="{!c.keyPressController}" class="slds-lookup__search-input slds-input leftPaddingClass" value="{!v.searchTerm}" placeholder="search..."/>
Support for the ui: tags is supposed to be ending.  What I don't see in the lightning: tags is an equivelent to ui:inputText.  I have the tag above and am wondering what the best thing to replace it with is and if the same options will be available.  I haven't found anything that exactly matches and so I'm researching what to do to get the equivelent functionality.
 
Hi, 

  I made pick list required from page layout able to remove none from picklist in classic but in lightning its still showing as none please suggest me how to remove none from picklist in lightninig. 

Thanks
Sudhir
Hi team, 

When I code something and deploy to a sandbox, something it fails if I made a mistake or something doesn't work with the configuration of the sandbox.   When it fails, it used to give a details reason such as:
row 3 col 5 illegal assignment of String in Number field 

However, for some reason it stopped giving reasons but just the outcome
Now it just says DeployFailed: Deploy Failed

I am not sure if something change in CLI or I made a wrong setting. 
Can anyone please help?

Thanks!!
I'm seeking more info on lightning:input for use in a Lightning Component.

What I want to do is have the input text field submit when the user presses the Enter key. However, the Enter key seems to be ignored by lightning:input. Also, I can't even retrieve the keycode with my handler.

component markup:
                  <lightning:input aura:id="body"
                                         label=""
                                         name="Body"
                                         placeholder="Enter message..."
                                         value="{!v.Message.Body__c}"
                                         onchange="{!c.keyCheck}"/>

                    </lightning:layoutItem>
And my keyCheck handler:
keyCheck: function(component, event, helper){
        console.log(event.getParams('keyCode')); 
        }
The handler is getting called, but the value is undefined. I think it's undefined because the event that is happening is NOT the keypress/keyDown/keyUp, but rather the input field is changing. But lightning:input chokes (won't compile) if I try to add a keyDown event in its parameters in the markup.

BTW, I've tried doing this with ui:inputText as well, and that doesn't work either.

Help please?

 
Hello, is there any documentation that helps testing external web services endpoints using ZAP and Burp scanners?? I have searched everywhere in Google does not find a one. We are consuming web services from SAP. i.e., making callouts from Salesforce to SAP. Also, we are about to submit scan reports for the security review. This became a roadblock that we have difficulty to find right articles to start with. Please suggest. Would appreciate your help. Thanks a lot

We have a custom object which holds about 2 lakh records.

 

when i try to get MIN and MAX values of a custom field iam getting limit exception.

 

System.LimitException: Too many query rows: 50001 

 

can anyone please explain why iam getting these error even though iam not selecting all records.

 

And how an i get this values.below is the query.

 

List<AggregateResult> result =[select  min(id__c),max(id__c) from customobjectname];

 

 

 

thanks in advance

Hi,

 

I want to access allowed profiles of Organisation wide email addresses. I am able to access is that email address is allowed to all profiles or not. Can anyone please suggest me some solution to achieve 'Allowed profiles' details.

 

Thanks.