Skip to content

Jitendra Zaa's Blog

Blog posts on Salesforce, Java, .Net, PHP, Heroku and many more

  • Home
  • Blog
  • Videos
  • About Me
  • Buy
    • Mastering Visual Studio and Salesforce DX
    • Apex Design Patterns – Salesforce
Jitendra Zaa's Blog

Tag: Standard Report Visibility

Apex, Visualforce, Data Loader and SOQL Interview Question – Part 17

Author posted by Jitendra on Posted on October 10, 2013February 9, 2015 under category Categories Apex, Salesforce and tagged as Tags Apex, Community, DataLoader, Eclipse, Field Level Security, FLS, Google Docs, Interview Questions, Person Account, Report, Salesforce, SOQL, Standard Report Visibility, Winter 14 with 2 Comments on Apex, Visualforce, Data Loader and SOQL Interview Question – Part 17

161 : Sometimes while deleting record it gives error “Object cannot be Deleted”. What is the reason for this kind of error ?
Ans :
This is generic error message prompted by Salesforce many times, which is not well informative. To get informative message, we can try to delete same record in “Developer Console”. In Developer Console Debug log, we will get exact error message.
Example : Lets say there is one record which is parent of more than 2000 records and grand parent of 5000 records. In such scenario from developer console it gives error something like “record cannot be deleted because it has many associated objects” However in User Interface, it will just display that “Object cannot be deleted.“


162 : Why are Visualforce pages served from a different domain?
Ans :
If we see carefully, all our Visualforce pages are served like “c.YOURSERVER.visual.force.com/apex/YOURPAGENAME” ,
And because of this most of time we run into Same-Origin Policy error in Javascripyt if we try to access parent page from Iframe. Following reason is explained by one of the evangelist of Salesforce:

“The move to separate domains has one very specific purpose: leverage the browser security model (same domain policy) to protect our customers and the salesforce.com service from cross site scripting and cross site request forgery attacks.

Moving to the serving pages from separate domains is a critical component of our ongoing commitment to insure the highest level of security and availability for everyone.

In the world where everything is served from the same domain any custom page that you visit had full access to any other page in your org and also any page served from salesforce.com itself. This included potentially malicious code that was installed as part of a force.com package.” Continue reading “Apex, Visualforce, Data Loader and SOQL Interview Question – Part 17”

Author JitendraPosted on October 10, 2013February 9, 2015Categories Apex, SalesforceTags Apex, Community, DataLoader, Eclipse, Field Level Security, FLS, Google Docs, Interview Questions, Person Account, Report, Salesforce, SOQL, Standard Report Visibility, Winter 142 Comments on Apex, Visualforce, Data Loader and SOQL Interview Question – Part 17

Search

Social


Jitendra

Subscribe to Blog via Email

Never miss a post. Provide your email address to get latest blog posts, right into your email box.

Join 1,550 other subscribers

Award

Top Salesforce Developer Blog of 2020

Buy

Udemy Salesforce DX course by Jitendra Zaa
Apex Design Pattern by Jitendra Zaa

Archive

  • Home
  • Blog
  • Videos
  • About Me
  • Buy
    • Mastering Visual Studio and Salesforce DX
    • Apex Design Patterns – Salesforce
Since 2009 By Jitendra Zaa (formerly Shivasoft.in)