• Terence Viban
  • NEWBIE
  • 75 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 17
    Replies
Hi all,
I can no longer log into my scratch org using sfdx cli. I get the error Error authenticating with JWT config due to: invalid assertion.
When I look into my DevHub and through the terminal my scratch org is active.
I have also generated a password and can use that to log into my scratch org. So the scratch org is fine.
My DevHub is connected as well. Can someone explain to me what the above error message means and what I can do about it?
I have been working with scratch orgs for over a year now and never had this issue. This issue started when I set up CI using Circle CI. I have been able to connected to my DevHub and create and delete scratch orgs on the fly using CI. So suspect these two things might be related. But i do not understand how.
Thanks in advance

JWT Error when logging into scratch orgs
hi there,

I am building an application, that is pushing the limits of the platform a little. So the application should give users the possibility to process hundreds and potentially thousands of records through the UI. These records will be organized according to types ( Account, Contact, etc ) and for each type, the records will be displayed using a vertical lwc tabset as tabs.
When the users select a specific tab ( record ), a lightning-record-edit-form opens to show details of the record and the user can then work on. them.
Infact this has been built and works quite nice. But now we are trying to understand the boundaries and performance implecations of using the Lightning Data Service and  lightning-record-edit-form forms this way. Haven't been able to find anything on this in the documentation. As a example I know if I am to display data on a Visualforce pageBlockTable, my data can't have more than 1000 entries. It is this kind of info I am looking for, for Lightning Data Services and  lightning-record-edit-form.

Thanks in advance for your input.

Cheers
Hello, I have this lightning data table and I want to display my respond from an API but I can't figure out how to match values to the right columns.  I tried fetching from lwc that did not work. Appreciate any help. 
 
JAVa Script

const columns = [
    { label: 'ID', fieldName: 'id' },
    { label: 'image', fieldName: 'imageType' },
    { label: 'title', fieldName: 'title', type: 'name' },
    { label: 'ready', fieldName: 'readyInMinutes', type: 'number' },
    { label: 'Serving', fieldName: 'servings' },
    { label: 'sourceURL', fieldName: 'sourceUrl' },

];

export default class bitsin extends LightningElement {
columns = columns;
data;
  
connectedCallback(){
    CallOut().then(
        result => {
            this.data = result;
                console.log('THIS THE SUCCESS MES ' + result);
        }
   ).catch( error => {
        console.error('this is the error ' + error);
   })
}

}
 
HTML 

<template>
    <div class="slds-var-m-around_small">
        <div style="height: 300px;">
            <lightning-datatable
                    key-field="id"
                    data={data}
                    hide-checkbox-column
                    columns={columns}>
            </lightning-datatable>
        </div>
                    </div>
</template>
 
Apex class

public with sharing class CallOut {
    
    @AuraEnabled(cacheable=true)
    public static string spoonacular(){
        
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        string endpoint =  ''URLSAMPLE;
        request.setEndpoint(endpoint);
        request.setMethod('GET');
        httpResponse response = http.send(request);
        string donus;
        Integer statusCode = response.getStatusCode();
        if( statusCode == 200) {
           donus = response.getBody();
           system.debug('responsee ' + response.getBody());
        } else {
            system.debug('RESPOnse: ' + response.getBody());
        }

        return donus;
        

    }

       
}
 
JSON return

[
    {
        "id": 209128,
        "imageType": "jpg",
        "title": "Dinner Tonight: Grilled Romesco-Style Pork",
        "readyInMinutes": 45,
        "servings": 4,
        "sourceUrl": "http://www.seriouseats.com/recipes/2008/07/grilled-romesco-style-pork-salad-recipe.html"
    },
    {
        "id": 31868,
        "imageType": "jpg",
        "title": "Dinner Tonight: Chickpea Bruschetta",
        "readyInMinutes": 45,
        "servings": 2,
        "sourceUrl": "http://www.seriouseats.com/recipes/2009/06/dinner-tonight-chickpea-bruschetta-babbo-nyc-recipe.html"
    },
..... and so on

 
I am using the free developer edition.
And, I cannot enable the **Site.com Publisher User** option under My Profile Advance Setting.

I go this error when I tried to enable Site.com and Publisher User following the instruction from here https://developer.salesforce.com/page/Site.com:

No Site.com Contributor User Licenses Available
There are no Site.com Contributor User Licenses available. If you wish to add Site.com Contributor User Licenses, please <a href="/cases/logabug.jsp?00N00000000z2xc=Site.com+Contributor+License&type=Request&subject=Add+Site.com+Contributor+Licenses&retURL=%2Fhome%2Fhome.jsp&successURL=%2Fhome%2Fhome.jsp">submit a case</a>. A salesforce.com representative will contact you. 


Could you please tell me what this error means?

Thanks
 
Hi there,

having problems get a reference to my application event. I get the error above showing that my application is undefined. According to the docs I get do this:

var lookupEvt = $A.get("e.c:lookup");
        lookupEvt.setParams({ 
            lookupTyp: sender,
            searchOption: searchOption,
            selectedEmailAddresses:selectedEmailAddresses
        });
        lookupEvt.fire();

my event is called lookup.evt and looks like this:

<aura:event type="APPLICATION">
    <aura:attribute name="lookupTyp" type="String" />
    <aura:attribute name="searchOption" type="String" />
    <aura:attribute name="selectedEmailAddresses" type="String" />
</aura:event>

I register my event in another component like this:

<aura:registerEvent name="lookup" type="c:lookup" />

Component events work fine but I need to use application events because a couple of different components should be able to trigger and handle these events.

Any ideas on how to overcome this problem?




I have used component events and they work perfectly well. But I need 
Hi everyone,

I can't send emails from my developer org. I have tried on two separate dev orgs and everytime I look in the System debug logs, all I see is EMAIL_QUEUE. Why are the emails queued indefinitely?

I have also tried the following code snippet :

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
    String[] toAddresses = new String[] {'vnegi@salesforce.com'};
    mail.setToAddresses(toAddresses);
    mail.setSubject('Apex Email TEST');
    mail.setPlainTextBody('The Apex Test is finished processing');
    List<Messaging.SendEmailResult> sendRes = Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail }, true); 

from https://help.salesforce.com/apex/HTViewSolution?id=000171487&language=en_US 

and the emails are still just queued.  Email deliveribility is set to "All Emails"

I have been stuck at this point for a few days and will appreciate any suggestions on what could be wrong. 

Thanks
HI All,
i am attaching files to an email that I send out form Apex code. I was reading the documentation of email file size limits and came across very conflicting statements. In the help section it is clearly written

"The size limit for multiple files attached to the same email is 25 MB, with a maximum size of 5 MB per file."
(https://help.salesforce.com/apex/HTViewHelpDoc?id=collab_files_size_limits.htm)

But then I also find this in a couple of places

"The max email message size for a complete email message including attachments is 10MB"
(https://developer.salesforce.com/page/Force.com_Email_Services_Size_Limitations)

"Email Services: Maximum Size of Email Message (Body and Attachments):10MB"
"Email services reject email messages and notify the sender if the email (combined body text, body HTML, and attachments) exceeds approximately 10 MB (varies depending on language and character set)."
(https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm)
(https://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_email_inbound_what_is.htm|StartTopic=Content%2Fapex_classes_email_inbound_what_is.htm|SkinName=webhelp)

My question is quite simple ... What limit should I care about if I intend to send attachments through email directly from the controller?
I have two objects parent__c and Teacher__c . There is no relationship between them .no materdetail no lookup . 
only name fields in both parent__c and teacher__c will be treated as common , because we will manual enter the name field . 
Parent fields: name(text )
, teacher_expertise (text)
Teacher Name (text)
Teacher fields :
- name (text)
expertise (picklist) 
Teacher_name( Text Fields)
I would like to update teacher_expertise and Teacher_name  field on parent objects :
Once we update fields on Teacher__c it should update Parent__c.
how can we use maps in this . 
Please help . Urgent
Thanks 
Hi all,
when i modify an existing visualforce email template, the changes are applied on the UI. Now if i query for email template like this 

SELECT id, Body, HtmlValue, Name, DeveloperName, LastUsedDate, CreatedDate, Markup, ApiVersion FROM EmailTemplate WHERE Name = 'QuoteVFTemplate'

the HtmlValue returned is unchanged. However the Markup reflects the changes I made to the template on the UI.

Can someone please tell me why this could be happening or point me to  the right resource? Haven't been able to find any documentation around caching of Email templates.

The use case is, I want to get the HtmlValue of the template and render it on a Visualforce Page as pdf.

Thank you
Hi all,
I am sending a single email from Apex code. Although I do not have any erros, the email doesn't get sent. As you can see from the code snippet, it is pretty uncomplicated. Wanted to do a test send before I get to the complicated stuff. There are not error messages but the email doesn't get sent. Any ideas???

Messaging.Singleemailmessage mail = new Messaging.Singleemailmessage();
mail.setToAddresses(new String[] {'terence1122@gmail.com'});
mail.setReplyTo('noreply@privatebudget.com');
mail.setSenderDisplayName('Private Budget App');
mail.setSubject('Private Budget records for ' + Date.today().month() + ' ' + Date.today().year());
mail.setBccSender(false);
mail.setUseSignature(false);
mail.setPlainTextBody('This is a test');
system.debug('@@@@ sendEmail - mail : ' + mail);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

The sytem debug produces the following
@@@@ sendEmail - mail : Messaging.SingleEmailMessage[getBccAddresses=null;getCcAddresses=null;getCharset=null;getDocumentAttachments=null;getFileAttachments=null;getHtmlBody=null;getInReplyTo=null;getOrgWideEmailAddressId=null;getPlainTextBody=This is a test;getReferences=null;getTargetObjectId=null;getTemplateId=null;getToAddresses=(terence1122@gmail.com);getWhatId=null;isUserMail=false;]

I am working on the dev org and executing the class which sends the mail from execute anonymous. 
Thanks
In Salesforce CRM Content, when you click on a document added to the library, you can preview the document. You can also open up comments, versions etc. in this small preview window.

Where are the comments stored? I have looked at every single standard object definition and I can't find where they are stored. For example tags can be retrieved from the TagCsv field on the ContentVersion object which i also needed to to, but I cannot find the comments anywhere.

So how can I programmatically access comments added to a document directly in content????

thank you