• ellospider
  • NEWBIE
  • 55 Points
  • Member since 2009

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 14
    Replies
I know S-controls were wheened out, but I still have some that are active.

How can I reference an s-control page in an apex class/trigger? In the apex trigger, I want to call the s-control page to perform certain actions.

Hi everyone,

 

My requirement is to integrate a rich text editor in to visualforce page .So I want an editor which has rich features like upload image in to salesforce.But iam not able to do this using Rich text editor .So Please tell me how to integrate any rich text editor in to visualforce page where i can upload images to the rich text editor.

                                                    Thanks and regards,

                                                                 Anu..

 

Folks !

Have 2 questions on Einstein Activity Capture

1. Is it possivle to sync just the Events and Contacts without syncnig email? 

2. From the documentatin I understand captured data is stored outside Salesforce. How to query those objects?
 
Greetings All !

We have a requirement to copy all public tags belonging to a custom object as comma seperated string on a custom field on master.  

eg.  
select id, name from cust_object__tag where type = 'Public' and itemId = 'a0SV600000JBbRRMAK' returns 

      ID                        Name
0t0000000008cjkSST              tag1
0t0000000008cjlSGH              tag3
0t0000000008cjlSGT              tag3

A long text field on cust_object  to be populated with 'tag1, tag2, tag3'.  What is the best approach to achieve this? 

Would really appreaciate any suggestions or code samples. 

I am trying to edit some Japanese translation using eclipse. However Japanese characters does not appear right. What do I need to do if I want to view them correctly. same problem with Chinese characters. Russian, French etc. seems to be fine.

 

Eclipse

Message Edited by ellospider on 06-19-2009 04:54 PM

Immediately after the callout request I get a callout response "System.HttpResponse[Status=Forbidden, StatusCode=403]" even though I have already configured the domain in the remote site configurations and verified the request, it works fine in any other client but salesforce. I've already verified that the request is not hitting the server in the other side of the request, so it must not be leaving salesforce for some reason.

Here is my request:

public String calloutNcall() {
       
        HttpRequest req = new HttpRequest();
        HttpResponse res = new HttpResponse();
        Http http = new Http();
       
        req.setEndpoint('http://ncall.myinstance.com.br/ncall/servicos/click2call.php');
        req.setMethod('POST');
        params = 'magic=1333';
        params += '&ramal' + ramal;
        params += '&numero' + ani;
        params += '&espera=60';
        params += '&nome=NCall';
        req.setBody(params);
        req.setHeader('Content-Type', 'application/x-www-form-urlencoded'); 
       
        try {
            res = http.send(req);
        } catch(System.CalloutException e) {
            System.debug('Callout error: '+ e);
        }
        System.debug(res.getBody());
        this.result = res.getBody();
        return null;
      }
}

Here is the response:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License */ /* Page basics */ * { font-family: verdana, sans-serif; } html body { margin: 0; padding: 0; background: #efefef; font-size: 12px; color: #1e1e1e; } /* Page displayed title area */ #titles { margin-left: 15px; padding: 10px; padding-left: 100px; background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left; } /* initial title */ #titles h1 { color: #000000; } #titles h2 { color: #000000; } /* special event: FTP success page titles */ #titles ftpsuccess { background-color:#00ff00; width:100%; } /* Page displayed body content area */ #content { padding: 10px; background: #ffffff; } /* General text */ p { } /* error brief description */ #error p { } /* some data which may have caused the problem */ #data { } /* the error message received from the system or other software */ #sysmsg { } pre { font-family:sans-serif; } /* special event: FTP / Gopher directory listing */ #dirmsg { font-family: courier; color: black; font-size: 10pt; } #dirlisting { margin-left: 2%; margin-right: 2%; } #dirlisting tr.entry td.icon,td.filename,td.size,td.date { border-bottom: groove; } #dirlisting td.size { width: 50px; text-align: right; padding-right: 5px; } /* horizontal lines */ hr { margin: 0; } /* page displayed footer area */ #footer { font-size: 9px; padding-left: 10px; } body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } --></style> </head><body id=ERR_ACCESS_DENIED> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://ncall.myinstance.com.br/ncall/servicos/click2call.php">http://ncall.myinstance.com.br/ncall/servicos/click2call.php</a></p> <blockquote id="error"> <p><b>Access Denied.</b></p> </blockquote> <p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p> <p>Your cache administrator is <a href="mailto:support@salesforce.com?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&amp;body=CacheHost%3A%20proxy-dfw.net.salesforce.com%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Thu,%2006%20Oct%202016%2014%3A10%3A29%20GMT%0D%0A%0D%0AClientIP%3A%2010.247.62.9%0D%0A%0D%0AHTTP%20Request%3A%0D%0APOST%20%2Fncall%2Fservicos%2Fclick2call.php%20HTTP%2F1.1%0AUser-Agent%3A%20SFDC-Callout%2F37.0%0D%0ASFDC_STACK_DEPTH%3A%201%0D%0AContent-Type%3A%20application%2Fx-www-form-urlencoded%0D%0ACache-Control%3A%20no-cache%0D%0APragma%3A%20no-cache%0D%0AHost%3A%20ncall.myinstance.com.br%0D%0AAccept%3A%20text%2Fhtml,%20image%2Fgif,%20image%2Fjpeg,%20*%3B%20q%3D.2,%20*%2F*%3B%20q%3D.2%0D%0AProxy-Connection%3A%20keep-alive%0D%0AContent-Length%3A%2058%0D%0AX-Forwarded-For%3A%2010.247.221.59%0D%0A%0D%0A%0D%0A">support@salesforce.com</a>.</p> <br> </div> <hr> <div id="footer"> <p>Generated Thu, 06 Oct 2016 14:10:29 GMT by proxy-dfw.net.salesforce.com (squid)</p> <!-- ERR_ACCESS_DENIED --> </div> </body></html>
I am familiar with conditionally rendering visualforce content based on evaluating if a field equals a certain value. What I am trying to accomplish is selectively showing or hiding a few fields, based on what today is. To complicate things, these need to be date ranges. For example, if the user were to be entering a form from May 16th through Jun 15th, 2015, then I want to display an entry field on the form called May 2015. If they are accessing the form on June 16th through July 15th, then they woul dsee July 2015, etc. Any examples out there of dynamic Visualforce rendering based on evaluating TODAY() or some other mechanism?
We have a curstom object, case_Account, which contain an email field, I would like to have a formula field which tell whether this case account is a salesforce licensed user based on the email field. Is there a way to do this?
Hi.  I am unable to delete a few enteries on my company account.  Our CEO has granted me full authorization on this account.  However I am unable to delete the entries. Kindly give me full prevlige. Our CEO's name is David Sher and his email ID is David@elite-ivf.com.  My username on SF and email id is Leon@elite-ivf.com.  Kindly solve my problem asap.  Thanks.  Below is the error which I am receiving. 

Insufficient Privileges
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. 

Click here to return to the previous page.
Hello,

I would like to create a webform similar to Web to Lead where in i can input contact fields that inserts records in Salesforce.
That means if i give a url to any third party person, who should not login and add contact record directly in the Salesforce. What are the options?
Can someone share how to create a VF page that displays a complete dashboard so it can be utilized as a home page component? The older questions out here refer to a HTML method that is no longer allowed by SF. I am new to VF pages and don't really know how to write one from scratch yet. 
When I am trying to review my code coverage in Salesforce (browser) I am getting wildly incorrect coverage results. For example, I have a class "AccountTeamHelper" and in the browser it is saying (on the Apex class page, and in the developer console) 54% coverage. If I run the test in the IDE (eclipse) I am getting a result of 98%. To see which one was giving me the incorrect information I went into the class code coverage view in the Developer Console and half of the lines didn't even match up (Red lines on comments, etc.) and it said some constructors were not being covered, but I can clearly see in my first test on that all of the constructor methods are being tested. It is kind of annoying that I have to test my code outside of the system on a slower process because I can't trust the results being returned to me in the browser. I have also tried clearing all test data, re-compiling all classes, and then running all tests. This has not changed my inaccurate code coverage results.
If I click a link in google to an article on developers.salesforce.com in any browser, the article loads, then there is a page refresh and takes me to the intiial forums page. I then have to search and try to find the same article within the site
Greetings All !

We have a requirement to copy all public tags belonging to a custom object as comma seperated string on a custom field on master.  

eg.  
select id, name from cust_object__tag where type = 'Public' and itemId = 'a0SV600000JBbRRMAK' returns 

      ID                        Name
0t0000000008cjkSST              tag1
0t0000000008cjlSGH              tag3
0t0000000008cjlSGT              tag3

A long text field on cust_object  to be populated with 'tag1, tag2, tag3'.  What is the best approach to achieve this? 

Would really appreaciate any suggestions or code samples. 

I know S-controls were wheened out, but I still have some that are active.

How can I reference an s-control page in an apex class/trigger? In the apex trigger, I want to call the s-control page to perform certain actions.

Hi everyone,

 

My requirement is to integrate a rich text editor in to visualforce page .So I want an editor which has rich features like upload image in to salesforce.But iam not able to do this using Rich text editor .So Please tell me how to integrate any rich text editor in to visualforce page where i can upload images to the rich text editor.

                                                    Thanks and regards,

                                                                 Anu..

 

I am trying to edit some Japanese translation using eclipse. However Japanese characters does not appear right. What do I need to do if I want to view them correctly. same problem with Chinese characters. Russian, French etc. seems to be fine.

 

Eclipse

Message Edited by ellospider on 06-19-2009 04:54 PM
Hi All,
 
Im hoping someone can help me with an SOQL query:
 
I'm trying to return activities within the last 3 months. I.e where Activity Date >= NOW()-3 months
The SOQL documentation suggests you have to supply a native comparison value ie not a calculation.
 
Has anyone come across this before?
 
Thanks in advance,
 
Steve