• NarenK
  • NEWBIE
  • 50 Points
  • Member since 2012

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 21
    Questions
  • 15
    Replies

Hi All,

 

In Saelsforce how can I get a previsous date using the current data(i.e datetime.now()).

 

Any help on this regard is really aprreciated.

 

-Narendra

  • January 31, 2013
  • Like
  • 0

Hi All,

 

I need to display a large chunk of data in my application. So I want to dispaly records using pagination technique. Now my quesiton is  Salesforce support pagination directly (what I meant to ask is visualforce have any tags in it inbuilt which handles pagination). If there is no such tag then how can we handle efficiently.

 

- Narendra

  • January 25, 2013
  • Like
  • 0

Hi All,

 

I am using apex:pageBlockTable tag to render a table in my visualforce page. I would like to display "No Records are avilable" when there is no data to display in table. But I am not sure how to handle this.

 

Any help on this regard is really appreciated.

 

- Narendra

  • January 25, 2013
  • Like
  • 0

Hi All,

 

Today when I tried to test a piece of code on summer 12 pre releaser org which is actually working on spring 12 release I am running into issue.

This piece of code call a external rest web service and prints response to debug logs.

 

I am constantly getting the following error in response body.

 

System.HttpResponse[Status=Forbidden, StatusCode=403] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://local.yahooapis.com/MapsService/V1/geocode">http://local.yahooapis.com/MapsService/V1/geocode</A> <P> The following error was encountered: <UL> <LI> <STRONG> Access Denied. </STRONG> <P> Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. </UL> <P>Your cache administrator is <A HREF="mailto:root">root</A>. <BR clear="all"> <HR noshade size="1px"> <ADDRESS> Generated Thu, 31 May 2012 05:55:08 GMT by proxy-sfm.net.salesforce.com (squid) </ADDRESS> </BODY></HTML>

 

And also I tried to use different rest web services and for all of them I am getting the above error. But when I tried to call Google rest apis everthing is working fine.

 

Any idea why I am getting this error on summer 12 pre-release org?

 

Thanks in advance for your help!.

 

Regards,

Naren

Hi All, Recently I encountered a strange problem on SandBox environment. I am unable to get the values present in a custom settings while running test cases where as If I am running same test cases in Dev environment I am able to get the values. Any idea why it is behaving differently on Dev and SandBox env? Thanks in advance for your help! Regards, Naren

Hi All,

 

In VisualSource pages/apex is it possible to redirect to a applications (present in force.com menu)?

 

I know we can redirecto to a page. But the problem here is lets say currely I am in app ABC and the target redirection page present in "XX" application. In that case if I do redirection, the page is rendering properly but I am still staying in "ABC" app instead of 'XX" application. My expecation here is because the page is present in "XX" app It must take me to XX app and render the page. Is there a way to get rid of this behaviour?Please let me know.

 

Thanks in advance for your help.

 

Regards,

Narendra

  • April 27, 2012
  • Like
  • 0

Hi All,

 

In VisualSource pages/apex is it possible to redirect to a applications (present in force.com menu)?

 

I know we can redirecto to a page. But the problem here is lets say currely I am in app ABC and the target redirection page present in "XX" application. In that case if I do redirection, the page is rendering properly but I am still staying in "ABC" app instead of 'XX" application. My expecation here is because the page is present in "XX" app It must take me to XX app and render the page. Is there a way to get rid of this behaviour?Please let me know.

 

Thanks in advance for your help.

 

Regards,

Narendra

  • April 27, 2012
  • Like
  • 0

Hi All,

 

When an end user access an application by default user will be landed to specified tab based on application configuration.

 

How can we change this behaviour? Based on user profile can we change this behavious (changin apex contollers /visualforce pages code)?

 

Pleas let me know.

 

Thanks in advance for your help!

 

Regards,

Naren

  • April 24, 2012
  • Like
  • 0

Hi All,

 

I am sending an email from my apex code using Messaging.sendEmail(). Everything is working fine. But I have a onq uestion here like, what happens If I send an email to invalid email addresss(email address doen't exist). Will SF will notify me about this failure?

 

Please let me know.

 

Regd,

Naren

  • April 20, 2012
  • Like
  • 0

Hi All,

 

How can we delete chatter messages present in a SF org?

 

Regards,

Naren

  • April 13, 2012
  • Like
  • 0

Hi All,

 

How can we delete chatter messages present in a SF org?

 

Regards,

Naren

  • April 13, 2012
  • Like
  • 0

Hi All,

 

I am facing a strange issue while creating TrailForce template in master organization. When I clik on new Template button, I am presented with two options. One is "Setup Only" and other is "setup and data".

 

My requirement here is, values present in custom settings must not be copied into template. So I choose "Setup Only" option and created a new trial template and updated the TrialForce.

 

When I checked in new provisioned org everything is fine except "Application Logo is missing". I am guseesing that the logo is in Document folder and I choose "Setup Only" wizard while creating template. So it is not copied to trial template.

 

When I checked in app creation, we can only set icons from document folder but we can set the external url of a image or something.

 

How can I overcome this problem? Any help in this regard really appreciated.

 

Thanks in advance for your help!

 

Regards,

Naren

  • April 13, 2012
  • Like
  • 0

Hi All,

 

In my salesforce instance I want to define a workflow such that when filed in a some X object changes it has to invoke a rest web service. Is this possible?

 

I know that we can call outBound messages but I am not sure about rest web services.

 

Thanks in advance for your help.

 

Regards,

Naren

  • April 05, 2012
  • Like
  • 0

Hi All,

 

In SalesForce.com can we create a scheduler to run every 3 mintues? I tried to do that by excuting the following command in developer console:

System.schedule('schdulername','0 3 * * * ?n',new SchedulerClassName());

 

But first time the scheduler running correctly but after then onwards it taking minimu 1 hour to run next scheduled job. Why it is that? Is it a salesforce limitation?

 

BTW, I am doing this testing from a dev org. Can I expect the same behaviour in production org?

 

Please let me know how to over come this. Thanks in advance!

 

Regards,

Naren

  • March 29, 2012
  • Like
  • 0

Hi All,

 

I included some custom settings in managed package but when installed this managed package ina DE org I don't see those custom settings. Am I am missing something here?

 

How can I do this? Any help on this really appreciated.

 

Regards,

Naren

  • March 08, 2012
  • Like
  • 0

Hi All,

 

In my Apex code I extensivly call some external rest web services. So I want to know is there a way to maintain Http connection pooling and session pooling thorugh my apex code instead if leaving it to system?

 

Any help in this regard really appreciated. Thanks in advance for your help.

 

Regards,

Naren

  • March 06, 2012
  • Like
  • 0

Hi All,

 

I need to get complete URL of the salesforce into which user logged in. Currently when I tried to get URL using ApexPage.getCurrentPage().getUrl(). It only giving me path to the page not give complete URL like https://na1.salesforce.com/testpath.

 

Could any one of you let me know how can I address my problem.

 

Regards,

Naren

  • February 17, 2012
  • Like
  • 0

Hi All,

 

Typically I write my apex code in eclipse. When I try to format the code using ctrl+shift+f, it is not working. Is there any way to format apex code in eclipse.

 

Please let me know. An help in this regard really appreciated.

 

Regards,

Naren

  • January 24, 2012
  • Like
  • 0

Hi All,

 

I want to get all fieldnames of a object in apex. How can I do this?

 

For example for User object I want to get all its field names like AboutMe, AccountId , Email etc.

 

Any help on this really appreciated.

 

Regards,

Naren

  • January 18, 2012
  • Like
  • 0

What is the difference between UserInfo.getOrganizationId() and Organization.Id.

 

I am expecting them to  return same organizationId. But both of them returning different values. 

 

UserInfo.getOrganizationId() returning 3 additional characters than Organization.Id.

 

Any help in this really appreciated.

 

Regards,

Naren

  • January 17, 2012
  • Like
  • 0

Hi All,

 

In Saelsforce how can I get a previsous date using the current data(i.e datetime.now()).

 

Any help on this regard is really aprreciated.

 

-Narendra

  • January 31, 2013
  • Like
  • 0
Hi All, Recently I encountered a strange problem on SandBox environment. I am unable to get the values present in a custom settings while running test cases where as If I am running same test cases in Dev environment I am able to get the values. Any idea why it is behaving differently on Dev and SandBox env? Thanks in advance for your help! Regards, Naren

Hi All,

 

In VisualSource pages/apex is it possible to redirect to a applications (present in force.com menu)?

 

I know we can redirecto to a page. But the problem here is lets say currely I am in app ABC and the target redirection page present in "XX" application. In that case if I do redirection, the page is rendering properly but I am still staying in "ABC" app instead of 'XX" application. My expecation here is because the page is present in "XX" app It must take me to XX app and render the page. Is there a way to get rid of this behaviour?Please let me know.

 

Thanks in advance for your help.

 

Regards,

Narendra

  • April 27, 2012
  • Like
  • 0

Hi All,

 

When an end user access an application by default user will be landed to specified tab based on application configuration.

 

How can we change this behaviour? Based on user profile can we change this behavious (changin apex contollers /visualforce pages code)?

 

Pleas let me know.

 

Thanks in advance for your help!

 

Regards,

Naren

  • April 24, 2012
  • Like
  • 0

Hi All,

 

I am sending an email from my apex code using Messaging.sendEmail(). Everything is working fine. But I have a onq uestion here like, what happens If I send an email to invalid email addresss(email address doen't exist). Will SF will notify me about this failure?

 

Please let me know.

 

Regd,

Naren

  • April 20, 2012
  • Like
  • 0

Hi All,

 

I am facing a strange issue while creating TrailForce template in master organization. When I clik on new Template button, I am presented with two options. One is "Setup Only" and other is "setup and data".

 

My requirement here is, values present in custom settings must not be copied into template. So I choose "Setup Only" option and created a new trial template and updated the TrialForce.

 

When I checked in new provisioned org everything is fine except "Application Logo is missing". I am guseesing that the logo is in Document folder and I choose "Setup Only" wizard while creating template. So it is not copied to trial template.

 

When I checked in app creation, we can only set icons from document folder but we can set the external url of a image or something.

 

How can I overcome this problem? Any help in this regard really appreciated.

 

Thanks in advance for your help!

 

Regards,

Naren

  • April 13, 2012
  • Like
  • 0

Hi All,

 

I included some custom settings in managed package but when installed this managed package ina DE org I don't see those custom settings. Am I am missing something here?

 

How can I do this? Any help on this really appreciated.

 

Regards,

Naren

  • March 08, 2012
  • Like
  • 0

Hi All,

 

Typically I write my apex code in eclipse. When I try to format the code using ctrl+shift+f, it is not working. Is there any way to format apex code in eclipse.

 

Please let me know. An help in this regard really appreciated.

 

Regards,

Naren

  • January 24, 2012
  • Like
  • 0

Hi All,

 

I want to get all fieldnames of a object in apex. How can I do this?

 

For example for User object I want to get all its field names like AboutMe, AccountId , Email etc.

 

Any help on this really appreciated.

 

Regards,

Naren

  • January 18, 2012
  • Like
  • 0

What is the difference between UserInfo.getOrganizationId() and Organization.Id.

 

I am expecting them to  return same organizationId. But both of them returning different values. 

 

UserInfo.getOrganizationId() returning 3 additional characters than Organization.Id.

 

Any help in this really appreciated.

 

Regards,

Naren

  • January 17, 2012
  • Like
  • 0