• Mark Root
  • NEWBIE
  • 30 Points
  • Member since 2013
  • Director of Product Design
  • edjix, LLC

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 10
    Questions
  • 17
    Replies
We are now getting the following error when running one of our AppExchange apps on the Summer '17 sandbox preview.  All we've done is create a Visualforce page that references a component in our managed package app but none of the resources are loading.  Even adding a CORS entry does not resolve the problem.  All critical updates have been activated for the org and nothing has changed in our code.  Reverting to API version 39 for the VFpage does not resolve the issue, either.  Is there a bug with the Summer '17 release?

ERROR: Access to Font at 'https://rmhdsm--dev2.cs41.my.salesforce.com/visualforce/{snip}journal.ttf' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
I need to upgrade an Apex Class of a managed package from API version 24 to version 38 in order to take advantage of the relatively new Work Order object.  Because the Class uses an older API version, it contains a global static test method which I'm unable to remove because it's part of a managed package.  I'm also not able to comment it out using @deprecate and so what can I do to get around this problem?
I'm working with an EE Salesforce org that's exhibiting some strange behaviour when it comes to Visualforce pages.

Normally, when I create a Visualforce page and then preview it, the domain changes because of the cross-domain security fix that was introduced a while back.  For example, the following is what the full URL of a VF page called "test" should be:

https://c.cs23.visual.force.com/apex/test

Here's what I'm getting on this particular org, though:

https://cs23.salesforce.com/apex/test

How is that possible?  I cannot seem to find anything that overrides the new visual.force.com domain with the old salesforce.com technique.  Has anyone seen this before or is there some kind of setting I'm not familiar with?  Thanks.

Mark.
Until Winter '16 I was able to log into customer sites via "Grant Account Login Access" and use dataloader.io to load data for them. When I try to do this now, though, I get an insufficient privileges error in Salesforce. Is there any way I can get around this new limitation? Thanks.
I have a flow that loops through a screen displaying a list of dynamic multi-select checkboxes.  Problem is, when the loop comes back around to display the next screens of options, the checkboxes are retained from the previously submitted screen.  Without adding another "blank" screen, which does at least clear the cached values, is there a way to clear the values programmatically?  I would think turning off the "Previous" button would do this automatically, but it doesn't.
I'm trying to use JSON to update posts on a WordPress website but am getting the following error saying the URL is not a valid endpoint. The endpoint works, though, and so is there something else that needs to be done to allow this data transfer to go through?  If I remove the "boaterspoint" subdomain and point to the root, which has a different WordPress site associated with it, everything works fine.  Any ideas?

07:10:24.459 (459013285)|CALLOUT_REQUEST|[103]|System.HttpRequest[Endpoint=http://boaterspoint.teammarinedealer.com/wp-json.php/posts/, Method=POST]

07:10:24.461 (461177013)|EXCEPTION_THROWN|[103]|System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = http://boaterspoint.teammarinedealer.com/wp-json.php/posts/
We have successfully created our own branded signup form for our Free Trial and it works perfectly off of our website.  Is there a way we could do the same thing for our Test Drive site, though, so that we wouldn't have to shuffle people off to our AppExchange listing just to try out the solution?  Most of our prospects aren't on Salesforce yet and so sending them to the AppExchange is not as seamless as we'd like it to be.  We would still want to capture their basic contact information and generate a new Lead, of course, but this would all be done on our site just like our branded Trialforce signup form works.
We are currently an ISV partner but have developed a Force.com OEM solution.  Will the current $2,700 AppExchange Security Review listing process still apply to us or is there some other OEM Security Review we can go through?  We do not intend to list on the AppExchange, because none of our customers use Salesforce, and so where will we be submitting for SR?
I would like to have a Trialforce template preconfigured with person accounts enabled so that when a new trial org is created it has person accounts already turned on.  Will this be a problem?
Anyone know how I could set up a little tour of new features or fields that have been added to a SF org so users could be notified, similar to what SF does for us with their new features?  We could code something in VF to handle it but we'd need a way of knowing whether or not the user had visited that area of the site already.
We are now getting the following error when running one of our AppExchange apps on the Summer '17 sandbox preview.  All we've done is create a Visualforce page that references a component in our managed package app but none of the resources are loading.  Even adding a CORS entry does not resolve the problem.  All critical updates have been activated for the org and nothing has changed in our code.  Reverting to API version 39 for the VFpage does not resolve the issue, either.  Is there a bug with the Summer '17 release?

ERROR: Access to Font at 'https://rmhdsm--dev2.cs41.my.salesforce.com/visualforce/{snip}journal.ttf' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
I have a flow that loops through a screen displaying a list of dynamic multi-select checkboxes.  Problem is, when the loop comes back around to display the next screens of options, the checkboxes are retained from the previously submitted screen.  Without adding another "blank" screen, which does at least clear the cached values, is there a way to clear the values programmatically?  I would think turning off the "Previous" button would do this automatically, but it doesn't.
Hi,
I'm bulding an Approval process, for that I'm preparing an email (Text) template to include VisualForce page link so that approvars opens that page and submit. I can get the Salesforce Base URL from apex but I have no clue how to get it form email template.
See the following template that I have gotten from APEX.
<a href='https://'+ System.URL.getSalesforceBaseUrl().getHost() +  
             '/apex/GUGocardPhotoApprovalPage?ContactId='+contactID'>Click here </a>

 
I need to upgrade an Apex Class of a managed package from API version 24 to version 38 in order to take advantage of the relatively new Work Order object.  Because the Class uses an older API version, it contains a global static test method which I'm unable to remove because it's part of a managed package.  I'm also not able to comment it out using @deprecate and so what can I do to get around this problem?
How to put URL dynamically in HTML email template, i want to populate url dynamically otherwise on every instance i have to chance the URL.

Some one please suggest me what we have to do here.
I'm working with an EE Salesforce org that's exhibiting some strange behaviour when it comes to Visualforce pages.

Normally, when I create a Visualforce page and then preview it, the domain changes because of the cross-domain security fix that was introduced a while back.  For example, the following is what the full URL of a VF page called "test" should be:

https://c.cs23.visual.force.com/apex/test

Here's what I'm getting on this particular org, though:

https://cs23.salesforce.com/apex/test

How is that possible?  I cannot seem to find anything that overrides the new visual.force.com domain with the old salesforce.com technique.  Has anyone seen this before or is there some kind of setting I'm not familiar with?  Thanks.

Mark.
I have a flow that loops through a screen displaying a list of dynamic multi-select checkboxes.  Problem is, when the loop comes back around to display the next screens of options, the checkboxes are retained from the previously submitted screen.  Without adding another "blank" screen, which does at least clear the cached values, is there a way to clear the values programmatically?  I would think turning off the "Previous" button would do this automatically, but it doesn't.
I'm trying to use JSON to update posts on a WordPress website but am getting the following error saying the URL is not a valid endpoint. The endpoint works, though, and so is there something else that needs to be done to allow this data transfer to go through?  If I remove the "boaterspoint" subdomain and point to the root, which has a different WordPress site associated with it, everything works fine.  Any ideas?

07:10:24.459 (459013285)|CALLOUT_REQUEST|[103]|System.HttpRequest[Endpoint=http://boaterspoint.teammarinedealer.com/wp-json.php/posts/, Method=POST]

07:10:24.461 (461177013)|EXCEPTION_THROWN|[103]|System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = http://boaterspoint.teammarinedealer.com/wp-json.php/posts/
I need to be able to drop and drop row within a table in Visualforce, can anyone give a pointer on how to implement this functionality. I use "pageBlockTable" component. I tried using custom JavaScript but not able to get to  <TR> from what "pageBlockTable" generates. Thanks in advance.
Hi All,

I've created a visual workflow that asks the users for a number.  It maps to a number field on the quote object.  When I try to do a fast create for quote, I get the below error.

UPSERT --- UPSERT FAILED --- ERRORS : (INVALID_TYPE_ON_FIELD_IN_RECORD) Term: value not of required type: 36 --- for SFDC record with ID : null,

The field in the quote does have the decimal places as two.  When I type in 36.00, I still get the error.  The only time I do not get the error is when I type in 36.01 or some number that has 2 decimal places.  I even created a new field to test, put decimal places as 0, and I still got the error.  Does anyone know how to create an input type field of number and have it update a field type of number?  My assignment is correct to assign the object field to the number.  The odd part about this is I am using fast create, do not have a record ID as I'm trying to create a new quote, yet it is showing that I am upserting...  The field Term is the number field that I am trying to update.  I am currently building this in my sandbox to test.  Any help would be appreciated!
We are currently an ISV partner but have developed a Force.com OEM solution.  Will the current $2,700 AppExchange Security Review listing process still apply to us or is there some other OEM Security Review we can go through?  We do not intend to list on the AppExchange, because none of our customers use Salesforce, and so where will we be submitting for SR?
I would like to have a Trialforce template preconfigured with person accounts enabled so that when a new trial org is created it has person accounts already turned on.  Will this be a problem?
Anyone know how I could set up a little tour of new features or fields that have been added to a SF org so users could be notified, similar to what SF does for us with their new features?  We could code something in VF to handle it but we'd need a way of knowing whether or not the user had visited that area of the site already.

Hi, 

 

    I'm working on email templates recent days, and I encounted a problem that I can't import css in a Visualforce Email Template.

 

    The strange thing is that even I paste the code in this article the css code still takes no effect.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_email_templates_stylesheets.htm

 

    Is this usage not supported in new version? Or do I miss some details?  Your help would be appreciated, Thanks.

    

<html>
			<style type="text/css">
			body {font-family: Courier; size: 12pt;}

			table {
			border-width: 5px;
			border-spacing: 5px;
			border-style: dashed;
			border-color: #FF0000;
			background-color: #FFFFFF;
		}

		td {
			border-width: 1px;
			padding: 4px;
			border-style: solid;
			border-color: #000000;
			background-color: #FFEECC;
		}

		th { 
			color: #000000;
			border-width: 1px ;
			padding: 4px ;
			border-style: solid ;
			border-color: #000000;
			background-color: #FFFFF0;
		}
		</style>
		<body>

    

I am about to kill myself here guys. I cant tell/dont know what I am doing wrong. Please, I need a second pair of eyes.

 

I would really apprecaite your help

 

Visualforce Email tempalte does not apper exaclty the same when i Send Test to my email.

 

<messaging:emailTemplate recipientType="User"
    subject="This is a TEST">
    
   <messaging:htmlEmailBody >
       <html>
    
    <body>
     <STYLE type="text/css">
          body {
          background: #142952;
          
    }


#page {
    float: center;
    clear: both;
    width: 491px !important;
    width: 100%;
    padding: 2em 49px;
    color: #000;
    font-size: 1em;
    margin-left:auto;
    margin-right:auto;
    background:#CCC;
     </STYLE>
     
<div id="page">
      <p style="font-size:16px">This a TEST This is a TEST</p>
    </div>
       </body>
   </html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>

 Thanks in advance guys!!

Hi ,
Can anybody help me with the fromula field which will calulate the Age  from date of birth and display it in Years,Months & Days.?
All validations should be there.Including Leap Year Scenario.

 

BR,
Me

We building integration between Salesforce and PHP.
Build REST service in PHP to fetch data from MySQL database and return data in JSON format. It is working fine for first 2-3 Callouts then Salesforce shows us Gateway timeout Error in debug logs. We tested web-service with ARC,Postman,https://www.hurl.it/ many mores and it's working fine.
Below are the HTTP Request code.
Request
string searchText = 'buzz';
HttpRequest req = new HttpRequest();
req.setEndpoint('http://domainname.com/api/getQueryData.php?cachebuster=' + system.now().millisecond());
req.setMethod('POST');
req.setTimeout(30000);
req.setHeader('Accept', '*/*');
req.setHeader('Cache-Control', 'no-store');
req.setHeader('Content-Type','application/json');
string bodyReqeust = 'SELECT * FROM  tableName where '; 
bodyReqeust = bodyReqeust +' Name LIKE \'%'+searchText+'%\'';
bodyReqeust = bodyReqeust +' OR Description LIKE \'%'+searchText+'%\'';
bodyReqeust = bodyReqeust +' LIMIT 10';

map<string,object> mapRequest = new map<String,object>();
req.setBody(JSON.serialize(mapRequest));

Http http = new Http();
HTTPResponse res = http.send(req);
system.debug('res.getBody()::'+res.getBody());

Response :

System.HttpResponse[Status=Gateway Time-out, StatusCode=504] System.HttpResponse[Status=Gateway Time-out, StatusCode=504]"|0x207ad0fb


ERROR: The requested URL could not be retrieved http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License

body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } -->
"CacheHost: proxy-ord.net.salesforce.com
ErrPage: ERR_CONNECT_FAIL
Err: (110) Connection timed out
TimeStamp: Mon, 11 Sep 2017 12:13:02 GMT

ClientIP: 
ServerIP: 

HTTP Request:
POST /api/getQueryData.php?cachebuster=841 HTTP/1.1
Accept: */*
Cache-Control: no-store
User-Agent: SFDC-Callout/41.0
SFDC_STACK_DEPTH: 1
Content-Type: application/json
Pragma: no-cache
Host: domainname.com
Proxy-Connection: keep-alive
Content-Length: 138
X-Forwarded-For: 10.223.198.130
">support@salesforce.com</a>"

System.HttpResponse[Status=Gateway Time-out, StatusCode=504]

Can someone help Us?