• Saravanan Rajarajan
  • SMARTIE
  • 574 Points
  • Member since 2018

  • Chatter
    Feed
  • 8
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 63
    Replies
I have parent objet ParentX and child object childY.
I want to have related list of ChildY on parentX records.

My question is, i need tocreate lookup on child or parent ?
Visualforce export Excel with wrapped text
Please Over come below code 
need the text to wrap in the <Cell> tags? Below is the Style im using so far
 
<Style ss:ID="s1">
                   <Alignment/>
                        <Borders>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
                    </Borders>
                       <Font ss:Bold="1"/>
                       <Interior ss:Pattern='Solid' ss:Color="#2f9f38" ss:white-Space="normal"/>
                    <NumberFormat/>
                    <Protection/> 
                 </Style>

 
Create lightning component that contains button which calls action to create new Campaign member record populating few field values How can achieve this?
I keep getting this error in Business Administration Superbadge Challenge 3 despite having created the component:
User-added image
User-added image
I have tried cloning the dashboard and renaming it, deleting the component and adding it again multiple times and changing the 'View dashboard as' selection.


Any suggestions? Seems totally buged.
Hello,

I have parent objet ParentX and child object childY.
I want to have related list of ChildY on parentX records.

My question is, i need tocreate lookup on child or parent ?

Thanks 
hello, i am printing a Table into a Excel spread-sheet and need the text to wrap in the <Cell> tags? Below is the Style im using so far

<Style ss:ID="s1">
                   <Alignment/>
                        <Borders>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
                    </Borders>
                       <Font ss:Bold="1"/>
                       <Interior ss:Pattern='Solid' ss:Color="#2f9f38" ss:white-Space="normal"/>
                    <NumberFormat/>
                    <Protection/> 
                 </Style>
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: NOEFFJLP
I have parent objet ParentX and child object childY.
I want to have related list of ChildY on parentX records.

My question is, i need tocreate lookup on child or parent ?
Hello All,

Can anyone to fix this error please?  

Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: IVNFKUEO
I'm trying to complete the 2nd challenge in the App Customization Specialist superbadge and am getting the following error when checking the challenge.

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: TSRHXPFD

This is a new DE that was created for this Superbadge. The first challenge was successful.

Any ideas?  Thanks!

Trying to do a redirect to account (new) page so I can provide a default.

The following either produces  a stock account page or in some instances no page is shown:

<apex:page standardController="Account" action="{!URLFOR($Action.Account.New, null, ['Name'='Default'],false)}"/>

What is wrong with this? 
Hello All,

I am getting a FATAL ERROR while deploying the custom metadata component... Please suggest me on the same

Adv thanks...

Regards,
VSK98
 
  • April 11, 2019
  • Like
  • 0
Hi I have a requirement where I need to create multiple records in my custom object using REST API POST method.
Now the problem is I am able to create one record at a time and I am not able to create multiple records in one REST API call. I have found on net by passing JSON request body i will be able to create multiple records. 
I am completely new to integration and don't understand how to create mutilple records in one REST API call and how can i pass JSON request body in my REST API.

Can somebody help me in achiving my requirement please.
Here I am posting my code for reference: 
@HttpPost
    global static ID createListofAddresses(String Address, String City, String CompanyName, String CountryCode, String FirstName,
                                      String LastName, String Phone, String PostalCode, String StateCode, String Email
                                       ) {
        //First find the contact id matching the email.
        String ContactId = [SELECT Id
                              FROM Contact
                              WHERE Email = :Email].Id;
        //Second post the new ListofAddresses to the owner of the email.                                 
        List_of_Address__c thisListofAddress = new List_of_Address__c(
            Contact__c=ContactId,
            Address__c=Address,
            City__c=City,
            Company_Name__c=CompanyName,
            Country_Code__c=CountryCode,
            First_Name__c=FirstName,
            Last_Name__c=LastName,
            Phone__c=Phone,
            Postal_Code__c=PostalCode,
            State_Code__c=StateCode
        ); 
              /* List<List_of_Address__c> result = [SELECT Address__c, City__c, Company_Name__c,
                                Country_Code__c, First_Name__c, Last_Name__c, Phone__c, Postal_Code__c, State_Code__c
                                   FROM List_of_Address__c
                                WHERE Contact__c = :ContactId];                          
           if(result.size() > 0){
            return null;
             }else{*/
          insert thisListofAddress;
          return thisListofAddress.Id;
          
             }
Current we have a VF page that works fine in lightning experience, and we'll want to continue using it. The problem is initializing the page requires a JS button such as this. 

 
var w = window;
var html_doc = w.document.getElementsByTagName('head')[0]; 
var js = w.document.createElement('script'); 
  js.setAttribute('type','text/javascript'); 
  js.setAttribute('src','/support/console/31.0/integration.js'); 

html_doc.appendChild(js); 

var url = '/apex/TicketResolve?id={!Case.Id}&source=Product_Build__c&type=ticket';
             js.onload= function() { 
                    if(w.sforce.console.isInConsole() == false) { w.open(url,'_blank'); } 
                              else { 
                    navigateToUrl(url,'DETAIL','{!Case.CaseNumber}');
}

Now i'm trying to create a lightning component (initialized from a quick action) that does the same job. 

obviously the comp will need something like 
 
<aura:component implements="force:lightningQuickAction" implements='force:hasRecordId'>

To be honest i'm not sure what i'll have to add to the component section, it just needs to grab the current record id and then initaite the JS controller which is this. 
 
({
    goToUrl : function(component, event, helper) {

        var urlEvent = $A.get("e.force:navigateToURL");
        var recordId= component.get("v.recordId");

        urlEvent.setParams({
             "url": "/apex/TicketResolve?id=" + recordId + 
            "&source=SVC_Product_Build__c&type=ticket", 
            "isredirect": "true"
        });
        urlEvent.fire();
    }
$A.enqueueAction(action);
    })

Now above is just a guess of what i'll need; i wasn't sure if i need the "redirect" : "true" section...and i've seen people use ' instead of ". Also I'm wondering if the urlEvent.setParams will work.

Now does $A.enqueueAction(action); need to be there? the JS isnt calling on the server from what i understand...? It's not calling on apex methods?  i know the component.get function on the record Id is pulling from the record but isn't it getting that from the component portion of the aura bundle(which gets itself from the server) ...
 
i dont understand 

Build Volunteer Tracker app reports

please help what i have to do
I have read as many thread about this as I can without resolving the issue. The directions specifically state the range of Stage for the Y axis is from Qualification to Closed Won. You can modify the right side of the range with Maximum Groups Displayed = 9. There doesn't seem to be a way the eliminate the Stage= Prospecting in front of Qualification without modifying the report first. 

Challenge Not yet complete... here's what's wrong: 
The 'SolarBot Pipeline by Stage' component doesn't display data in the correct format or doesn't show both side-by-side bars correctly.
Close errors

I have set up the chart as follows:
Report = SolarBot Loyalty Revenue
Type = Verticle Bar Chart
X-Axis = Stage
Y-Axis = Sum Expected Revenue; Adjusted Expected Revenue
Unit= Thousands
Sort Rows= Label Descending
Maximum Rows Displayed = 9
I have tried it with both Light and Dark Themes.

Any ideas
Visualforce export Excel with wrapped text
Please Over come below code 
need the text to wrap in the <Cell> tags? Below is the Style im using so far
 
<Style ss:ID="s1">
                   <Alignment/>
                        <Borders>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
                    </Borders>
                       <Font ss:Bold="1"/>
                       <Interior ss:Pattern='Solid' ss:Color="#2f9f38" ss:white-Space="normal"/>
                    <NumberFormat/>
                    <Protection/> 
                 </Style>

 
Create lightning component that contains button which calls action to create new Campaign member record populating few field values How can achieve this?
Hi All,

As I am aware that we cannot create web to lea with an atachment and need to create a custom solution for the same.
I am looking for a detailed solution of how to achieve this.

TIA
Hi All,

I want to integrate Salesforce with Blockchain. I could not find any example. Could you please help me on this?
How to Display the date Field fronted error message in visualforce 

Date Field is select the future date throw error message
 
hi 
this my error in backend and this error message dispaly the frented message.
how to dispaly the frented message

Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Enter the Year of Passing: []
Hi all,
Right now I am creating a pop on detail page button.Everything is fine except it's height can anyone help me on how to create a dynamic iframe using javascript?

Here is my code.
(function() {
    var width = 700;
    var height = 515;
    var title = "Dialog title here";

    var box = new SimpleDialog("salesforce" + Math.random(), true);
    box.setTitle(title);
    box.displayX = true;
    box.isMovable = false;
    box.createDialog();
    box.setWidth(width);
    // set your html content here
    box.setContentInnerHTML(
      '<iframe src="/apex/toastmessage?Id={!Account.Id}" style="border:none;" width="100%" height="'+ (height - 30)+'px" />'
    );
    //set the height of the modal
     box.dialog.children[1].style.height = height + 'px';
    box.show();

    //if displayX is set to true, then override standard close event by this code
    box.dialog.getElementsByClassName('dialogClose')[0].onclick = function() {
      box.hide();
      // you can add code to reload the page or redirect to another page 
    };
    //optional : add this to close the modal onclick of the overlay background
    box.background.addEventListener('click', function() {
      box.hide();
    });
    
    // if you want to be able to close the modal from the Visualforce page
    window.addEventListener('message', function(event){
      if (event.data === 'close'){
        box.hide();
      }
    });
})();

Thanks in advance
Hi there, 

I got following error on step 3.

A Volunteer Shift Worker record created for another user is not in their approval queue, or it does not have the correct status automatically assigned.

Anyone passed this step?

Thanks
LinThaw
I tried adding visualforce page as tab in lightning app builder and I have also used standard controller in VF page but still I am gettinng error visualforce page not found
Please help.
Thank you in advance.