• abhishek gupta 299
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies
Access to XMLHttpRequest at 'source Url' from origin 'SF instance url' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
If i have added new picklist values in stagename of opportunity.How can I add that in the managed package as their is no option to add picklist values
I want a flow through which i can create package like Twilio,Mailchimp offers

I am trying to send email using einstein chatbot by implementing the action i.e Send email filed all values accordingly but the mail is not send and when I debug the response is IsSuccess=true.After I tried with invicable apex method and tried to send mail via 

 Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage();
            String emailAddress='abhishek.gupta@cloudanalogy.com';
            message.setSubject('Mail from bot');
            message.setToAddresses(new String[] {emailAddress});
            message.setHtmlBody('hii, thanks for giving us your time.');
            System.debug('message--> ' + message);
            Messaging.SendEmailResult [] r =Messaging.sendEmail(new Messaging.SingleEmailMessage[] { message });
But the issue remains same.
Let me know which permission I am missing here.
Thanks

Access to XMLHttpRequest at 'source Url' from origin 'SF instance url' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
If i have added new picklist values in stagename of opportunity.How can I add that in the managed package as their is no option to add picklist values
I want a flow through which i can create package like Twilio,Mailchimp offers
Hello,

I need to create a rest api which calls an external system and gets some info which are viewed in a lightining web component. Till now, the number of records rendered was set by a for loop as above:
 
for(Integer i=0; i<3; i++){
            el_invoices dummyRecord = new el_invoices();
            dummyRecord.InvoiceNumber='0000000001'+string.valueOf(i);
            dummyRecord.InvoicePeriod='09-2020,10-2020';
            dummyRecord.InvoiceType='Clearing Bill';
            dummyRecord.InvoiceTotalAmount=100.00;
            dummyRecord.RelatedServices='Related Services';
....

However, now i need to render as many records as a custom setting indicates. I created a custom setting with a value of number but i don't know how to make it function through this way. Can anyone help?

Thank you!
Hi,
i have a table inside lightning component..aura iteration items comes from another lightning component..when i add the new record then the table should refresh and display the values..can anyone help me with that..
<div class="slds-m-around_xx-small">
        <div class="slds-align--absolute-left">
        <h1 class="slds-text-heading--small">Below are the 5 most recent work time entries</h1>
            <br/>
        </div>
                </div>
                             
                            <table class="slds-table slds-table_bordered slds-table_cell-buffer">
        <thead>
            <tr class="slds-text-title--caps">
                
                <th scope="col"><div class="slds-truncate" title="Id">S.No</div></th>
               
                <th scope="col"><div class="slds-truncate" title="Work Date">Work Date</div></th>
                <th scope="col"><div class="slds-truncate" title="User">User</div></th>
                <th scope="col"><div class="slds-truncate" title="Minutes">Minutes</div></th>
                <th scope="col"><div class="slds-truncate" title="After Hours">After Hours</div></th>
                <th scope="col"><div class="slds-truncate" title="Reason">Reason</div></th>
                
                
            </tr>
        </thead>          
        <tbody>
    
               <aura:iteration items="{!v.timeList}" var="time" indexVar="sNo"  >
              
                       
             
                   <c:Inlinechildtime single="{!time}"  sNo="{!sNo + 1}"/>
                   
            </aura:iteration>
            </tbody>
            </table>
                            <br/>
                            <br/>
                            <center>
                            <div class="slds-m-around_xx-small">
        <div class="slds-align--absolute-Center">
        <h1 class="slds-text-heading--small">Do you need to add any additional work time?</h1>
            <br/>
            <br>
            </br>
            <br>
            </br>
        </div>
                </div>
                            
                    <button class="slds-button slds-button_success" type ="submit" onclick="{!c.actionhandler2}"  >Yes</button>
                                

                            <button class="slds-button slds-button_destructive" onclick="{!c.handleNext1}">No</button>
                                <br/>
                                <br/>
                                <br/>
                                <br/><br/>
                                <br/>
                                <br/><br/><br/><br/>
                           
            <aura:if isTrue="{!v.seeu}">
 <div role="dialog" aura:id="Modalbox" class="slds-modal slds-fade-in-open ">
               <div class="slds-modal__container">
                   
                   <div class="slds-m-around--xx-large">
                       
        <lightning:card title="Work Time" iconName="custom:custom86" class="slds-p-around_medium">
            <br/>
            <lightning:recordEditForm aura:id="leadCreateForm2"  objectApiName="SVC_Work_Time__c">
                <lightning:messages />
                 
                <lightning:inputField fieldName="Ticket__c" value="{!v.recordId}"></lightning:inputField>
                        <lightning:inputField aura:id="lookup" fieldName="Work_Date__c"></lightning:inputField>
                   
                   
                        <lightning:inputField aura:id="lookup" fieldName="User__c"></lightning:inputField>
               
               
                        <lightning:inputField aura:id="lookup" fieldName="Minutes__c"></lightning:inputField>
                  
                   
                        <lightning:inputField aura:id="lookup" fieldName="After_Hours__c"></lightning:inputField>
                
                          
                        <lightning:inputField aura:id="lookup" fieldName="Reason__c"></lightning:inputField>
                  <br/><br/><br/>
                <center>
                 
                <lightning:button type="submit" label="Save" variant="brand" onclick="{!c.handleOnSubmit}"/>
                    <lightning:button type="submit" label="Save and New"  variant="brand" onclick="{!c.handleOnSubmit2}"/> 
                <lightning:button  label="Close" onclick="{!c.closemodal}" variant="brand"/>
                </center>
            </lightning:recordEditForm>
        </lightning:card>
    </div>
                </div>
            </div>
            <div class="slds-backdrop slds-backdrop--open" aura:id="Modalbackdrop"> 
             </div>
         
          </aura:if>    

how to refresh this table..

thanks