• Sunita P
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies
Shared Activities are enabled, however I'm not able to find the TaskRelation object in workbench. I'm I missing something? Thanks.
Hello everyone,

I have a quick question about a the Break statement, how does a break statement work in a nested for loop e.g.

for(....1st loop){
    for(.... 2nd loop){
        // I have some condition that should break out of the 2nd for loop and continue with the 1st for loop
       if(...){
           break;
      }
   }//End of 2nd for loop
}// end of first for loop

When I write this code in a class, the end curly brace for the class is showing red, even when the the curly braces are matching correctly.

Please help....Thank you.
 
Hello Team,

I have created a VF page and included that page as an section on the Opportunity Detail page, however the click to dial does not show on the VF page section.

Is there a way to resolve this, so that click to dail will be shown on the Embedded page. 

Thank you.
Hello Team,

I have created a Visualforce page to display customized Opportunity Contact Role on the Opportunity detail page, the following code is working fine-
<a href="/p/opp/ContactRoleEditUi/e?oppid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}" target="_top">Edit</a>

I do not want to hardcode the URL, tried using the URLFOR function -- <a href="{!URLFOR($Action.Opportunity.edit, ContactRole.id)}">Edit</a> where ContactRole is the attribute on the apex:pageblocktable -- <apex:pageBlockTable value="{!Opportunity.OpportunityContactRoles}" var="ContactRole">. I'm getting an error 'Content cannot be displayed: Invalid parameter for function URLFOR' and the Visualforce is not being displayed...

Please help..

Thank you.

 
Hello everyone,

I have created an inline Visualforce page, I was able to create the Edit link, however, I'm unable to add the 'Del' link. I'm using a standard controller with no extentions. Below is a screenshot -

User-added image

Thank you.
 
Hello everyone,

I'm new to writing customs integrations between slack and salesforce, is there a sandbox or test environment to test the custom integrations. hank you.
Hello everyone,

I'm working with the geonames web services, the datetime field is being returned as null when I'm deserializing as follows--

 ResCls eqList = (ResCls)JSON.deserialize(responseBody,ResCls.class);

Here's the wrapper class-
public class ResCls{
        List <Earthquakes> earthQuakes;
        
        public ResCls(List <Earthquakes> eqlist1){
            earthQuakes= eqlist1;
        }
    }
    
    public class Earthquakes{
        public Datetime eqDatetime;
        public Double depth;
        public Double lng;
        public String src;
        public String eqId;
        public Double lat;
        public Double magnitude;
        
        public Earthquakes(Datetime eqd, Double dep, Double lng1, string src1, string eqid2, Double mag, Double lat1){
            eqDatetime = eqd;
            depth = dep;
            lng = lng1;
            src = src1;
            eqId=eqid2;
            magnitude = mag;
            lat = lat1;
        
        }
           
    }

Here's the sample JSON that is being deserialized-
{"earthquakes":[{"datetime":"2011-03-11 04:46:23","depth":24.4,"lng":142.369,"src":"us","eqid":"c0001xgp","magnitude":8.8,"lat":38.322},{"datetime":"2012-04-11 06:38:37","depth":22.9,"lng":93.0632,"src":"us","eqid":"c000905e","magnitude":8.6,"lat":2.311},{"datetime":"2007-09-12 09:10:26","depth":30,"lng":101.3815,"src":"us","eqid":"2007hear","magnitude":8.4,"lat":-4.5172},{"datetime":"2012-04-11 08:43:09","depth":16.4,"lng":92.4522,"src":"us","eqid":"c00090da","magnitude":8.2,"lat":0.7731},{"datetime":"2007-04-01 18:39:56","depth":10,"lng":156.9567,"src":"us","eqid":"2007aqbk","magnitude":8,"lat":-8.4528},{"datetime":"2015-04-25 06:13:40","depth":15,"lng":84.6493,"src":"us","eqid":"us20002926","magnitude":7.9,"lat":28.1306},{"datetime":"2016-12-17 11:00:30","depth":103.19,"lng":153.4495,"src":"us","eqid":"us200081v8","magnitude":7.9,"lat":-4.5091},{"datetime":"2007-09-12 21:49:01","depth":10,"lng":100.9638,"src":"us","eqid":"2007hec6","magnitude":7.8,"lat":-2.5265},{"datetime":"2016-03-02 12:55:00","depth":24,"lng":94.275,"src":"us","eqid":"us10004u1y","magnitude":7.8,"lat":-4.9082},{"datetime":"2015-05-30 11:36:00","depth":677.56,"lng":140.4932,"src":"us","eqid":"us20002ki3","magnitude":7.8,"lat":27.8312}]}

I have tried using 'string', that is also returning datetime as null, all other fields are being deserialezed just fine. Not sure what could be the issue.

Thnak you.
 
I'm working through the geolocation app in Trailhead and I ran into a minor problem. The last step in the "Build the Account Map Display" section has you create a new, fresh scratch org ("GeoTestOrg"), push your code into it, import data, and make sure your stuff works properly there. I've followed the instructions carefully (I think) but I get an error when trying to load the sample data:
ERROR:  No such column 'Location__Latitude__s' on sobject of type Account.
I checked the Account schema in GeoTestOrg using this command, but my Location__c field doesn't appear:
$ sfdx force:schema:sobject:describe -s Account -u GeoTestOrg
Using a similar command for my "working" scratch org, I do see Location__c having been defined (and I see my location markers, etc. properly when I run from there):
$ sfdx force:schema:sobject:describe -s Account
So it seems as if the Location__c custom field on Account isn't getting pushed to GeoTestOrg. From the Developer Console on GeoTestOrg I do see that my components and other files (AccountList, AccountMap, etc.) are there, so something got pushed successfully.

I tried the create / push / check steps again with another new scratch org and got the same result -- no new Location__c field on Account. Anybody have any idea what I might be doing wrong, or what I can do to investigate? Thanks in advance for any help!

 
Shared Activities are enabled, however I'm not able to find the TaskRelation object in workbench. I'm I missing something? Thanks.
Hello everyone,

I have created an inline Visualforce page, I was able to create the Edit link, however, I'm unable to add the 'Del' link. I'm using a standard controller with no extentions. Below is a screenshot -

User-added image

Thank you.
 
Hello everyone,

I'm working with the geonames web services, the datetime field is being returned as null when I'm deserializing as follows--

 ResCls eqList = (ResCls)JSON.deserialize(responseBody,ResCls.class);

Here's the wrapper class-
public class ResCls{
        List <Earthquakes> earthQuakes;
        
        public ResCls(List <Earthquakes> eqlist1){
            earthQuakes= eqlist1;
        }
    }
    
    public class Earthquakes{
        public Datetime eqDatetime;
        public Double depth;
        public Double lng;
        public String src;
        public String eqId;
        public Double lat;
        public Double magnitude;
        
        public Earthquakes(Datetime eqd, Double dep, Double lng1, string src1, string eqid2, Double mag, Double lat1){
            eqDatetime = eqd;
            depth = dep;
            lng = lng1;
            src = src1;
            eqId=eqid2;
            magnitude = mag;
            lat = lat1;
        
        }
           
    }

Here's the sample JSON that is being deserialized-
{"earthquakes":[{"datetime":"2011-03-11 04:46:23","depth":24.4,"lng":142.369,"src":"us","eqid":"c0001xgp","magnitude":8.8,"lat":38.322},{"datetime":"2012-04-11 06:38:37","depth":22.9,"lng":93.0632,"src":"us","eqid":"c000905e","magnitude":8.6,"lat":2.311},{"datetime":"2007-09-12 09:10:26","depth":30,"lng":101.3815,"src":"us","eqid":"2007hear","magnitude":8.4,"lat":-4.5172},{"datetime":"2012-04-11 08:43:09","depth":16.4,"lng":92.4522,"src":"us","eqid":"c00090da","magnitude":8.2,"lat":0.7731},{"datetime":"2007-04-01 18:39:56","depth":10,"lng":156.9567,"src":"us","eqid":"2007aqbk","magnitude":8,"lat":-8.4528},{"datetime":"2015-04-25 06:13:40","depth":15,"lng":84.6493,"src":"us","eqid":"us20002926","magnitude":7.9,"lat":28.1306},{"datetime":"2016-12-17 11:00:30","depth":103.19,"lng":153.4495,"src":"us","eqid":"us200081v8","magnitude":7.9,"lat":-4.5091},{"datetime":"2007-09-12 21:49:01","depth":10,"lng":100.9638,"src":"us","eqid":"2007hec6","magnitude":7.8,"lat":-2.5265},{"datetime":"2016-03-02 12:55:00","depth":24,"lng":94.275,"src":"us","eqid":"us10004u1y","magnitude":7.8,"lat":-4.9082},{"datetime":"2015-05-30 11:36:00","depth":677.56,"lng":140.4932,"src":"us","eqid":"us20002ki3","magnitude":7.8,"lat":27.8312}]}

I have tried using 'string', that is also returning datetime as null, all other fields are being deserialezed just fine. Not sure what could be the issue.

Thnak you.
 
I needed to be able to customize the fields visible on the Contact Role Opportunity related list to add the Contact Mobile Phone. I searched Answers and the famous Deepak came up with a brillant work-around solution using VisualForce (see link to the original thread below).

https://success.salesforce.com/answers?id=90630000000hp0AAAQ

I used the VF code he provided and modified it to pull in the Contact Mobile Phone into the Contact Roles related list on the Opportunity. It works perfectly except for a couple of things:
  • When I click to add a New Contact Role in the new VF page on the Opportunity, it pulls it in within the full SF tab and sidebar window (see screen shot below).
  • There is no link to the Contact record in the VF Contact Role related list (see screen shot below).
Add New Contact Role Opens in the full SF tab and sidebar window Shot
User-added image

VF Contact Role has no link to the Contact record​
User-added image


Does anyone know if is there a way to modify the VF code Deepak provided to resolve these two issues? 

Any help or advice will be most appreciated!

Thanks!