• Etienne Rocheleau 9
  • NEWBIE
  • 25 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 13
    Replies
Hi all
I've signed up for a free developer edition here:
https://developer.salesforce.com/signup 

and now I'd like to fill it with data. Best would be to fill it with existing data from my professional account. How can I export all data of my professional account and import it to this free developer edition?

Many thanks,

Philipp
I want to build a component that can ideally live inside the Napili community template header.

This component has to trigger some code whenever there is a navigation occuring in the community.

I have not found how to do this myself, 
The system event : aura:locationChange does not seem to do what I want to do,
And I have not found a way to listen on the `force:navigateToURL` and other suck events from the aura/force framework.

If anyone has an idea I would take it :)

As of now I can see this working by listening on the "render" and "rerender" of my component and keeping a check to see if the URL of the page has changed. (There has to be a better way?)
I have a managed package and inside it a VisualForce page that is meant to be included as a side panel of the case layout in a console app.

This VF page calls an action function on a controller and this function works on some orgs but doesn't on some other orgs with seemingly no difference in behavior of the requests.

The exact error I get is:
XMLHttpRequest cannot load https://c.na30.visual.force.com/apex/PanelForCasesCustom?isdtp=vw. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://na30.salesforce.com' is therefore not allowed access.
At first I thought it was a problem with a custom domain or a specific salesforce pod that was behaving differently than others, but recently I've had it happen on `na30` pod where in one org it worked and in another one it didn't.

Just to be clear, in both cases, the VF page is being served in an iframe because it is setup on the side of the case layout. In both cases the iframe src is the same. The request in the network tab of the chrome developer tools are both the same and come from the same origin. I tried to compare all the settings in the security section of the org setup and everything that seems to make sense is the same.

(Just to be safe I have included both those domains in the cors settings, and also in the whitelisted domains of both the app and the org itself).

I am asking here as a last resort before opening a case with salesforce.
Hi,

An action function call in a managed package throws in a custom VFP because the request and origin are not from the same domain.
 
XMLHttpRequest cannot load https://c.gus.visual.force.com/apex/PageName?id=PageId&isdtp=vw. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://gs0.salesforce.com' is therefore not allowed access.


This is the error I receive and when I check the request that was sent, I can see that the

RequestUrl : https://c.gus.visual.force.com/apex/...
Origin : https://gs0.salesforce.com

So of course it is not allowed access, but the question is why is my VFP action function origin not in the same domain as the target?

I have tried whitelisting c.gus.visual.force.com, gs0.salesforce.com, also added it to remote sites, added them to CORS...

I am at a loss right now.

I have two leads that I cannot really follow:

1. https://developer.salesforce.com/forums/?id=906F0000000Awi5IAC -> says that there is an internal setting that allows VF content to be served from the Salesforce.com domain. That it may be on for my org and that I do not want that because that's what causing my request to come from gs0.salesforce.com instead of c.gus.force.com

2. http://salesforce.stackexchange.com/questions/51193/xmlhttprequest-cannot-load-no-access-control-allow-origin-is-present -> This one seems to have the same problem, back in '14 and no resolve in sight.

I should note that the exact same code, with exact same managed package works in both a dev org and another org, just not on our orgs that are on gs0.

Any help would be appreciated. Thanks!

I am getting an error "Sorry, this domain name is already taken".  I am just enabling communities for the first time right now, so how is this possible?  Any ideas?
Hello,

Trying to build a Slack notification in apex like the one in the following picture.

User-added image

Here is my code. As you can see my error is on line 15? 

User-added image

Thanks in advance.
Mark
Hello

I amusing Eclipse IDE for Java Developer 4.6.3 and latest Force.com IDE.

I don't see the 'intellisense' available when I write the code. Is this feature not available? Or, what do I have to do to enable intellisense?

Thanks
Hello,

We got a request to create a Lightning Component that allows Users to create a fillable table similarly like you would in MS Word, where you select from a grid size (column# x row#) which then populates into a text area. Is such a thing possible without going deep into VF?
Hi all, 
Created custom button(Apex controller classs) to clone the record during cloning operation but, The following list 1-6 related lists(child objects) do not want to clone while cloning record. 

1.Open Activities
2.Activity History
3.Notes & Attachments
4.Related Vendors
5.Stage History
6.Opportunity Field History. 

How to achieve this??

 
Here's the code. The flip works just fine but no dice on the click. It works in code pen/js fiddle etc. I just can't get it all to fire off in VF page. This isn't the entire code but this is where the issue is. If this part would run we'd be gravy. 

  <html>  
     <head>  
     <apex:stylesheet value="{!$Resource.TilesStyles}" />   
      <script src="//code.jquery.com/jquery-3.2.1.js"></script>  
      <script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script> 

       <script>  
         $(document).ready(function(){  
            $('.hover').hover(function(){  
             $(this).addClass('flip');  
            },function(){  
             $(this).removeClass('flip');  
            });  
         });
          
       $("#additionalDivOne").on("click", function(){
         alert('this is not working');
       });
I am running this script in a VF page. When executed, the url the link goes to has undefined at the end with an error that the URL no longerv exists.

<apex:page standardController="Opportunity">
<script src="/soap/ajax/10.0/connection.js"> </script > <script src="/soap/ajax/10.0/apex.js"> </script >
<script type="text/javascript">
window.onload=init()
function init()
{ var p = new sforce.SObject('Opportunity');
p.id = "{!Opportunity.Id}";
p.Tax_Renewal_SFS_Books_Complete__c = true;
result = sforce.connection.update([p]);
window.location.href = "https://wktaa.my.salesforce.com/"+p.Id; };
</script>
</apex:page>

It performs the field update, just errors out on the re-direct.
I have the same code running on another object and it works fine.
Any ideas?
Hi all
I've signed up for a free developer edition here:
https://developer.salesforce.com/signup 

and now I'd like to fill it with data. Best would be to fill it with existing data from my professional account. How can I export all data of my professional account and import it to this free developer edition?

Many thanks,

Philipp
I have selected a domain name in sandbox. I have customized left panel and also added the URL to a salesforce file in the same sandbox. But the right side is always blank. Can someone please see what im doing wrong here?

 
User-added image
User-added image
User-added image