• Avish Samdani 5
  • NEWBIE
  • 5 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
I have created one lightning component. The lightning component is rendering the canvas app content. Cacnvas app content is loading perfectly. In the canvas app there is button, On click of that button they are opening the content in i-frame. When I click button I am getting the following error:
Refused to frame "IFrame content URL" because an ancestor violates the following Content Security Policy directive: "frame-ancestors Canvas app url".

Is there any configuration we need to change in salesforce. As far as I know this is blocking by CSP.
I have created one lightning component. The lightning component is rendering the canvas app content. Cacnvas app content is loading perfectly. In the canvas app there is button, On click of that button they are opening the content in i-frame. When I click button I am getting the following error:
Refused to frame "IFrame content URL" because an ancestor violates the following Content Security Policy directive: "frame-ancestors Canvas app url".

Is there any configuration we need to change in salesforce. As far as I know this is blocking by CSP.
I have a string variable of an SOQL query where I have a relationship query name but the output returns only the relationship Id. Below is the query and the output in detail.

String s = 'select XYZ__r.Name from contact where Id = \'0031D00000KkQLKQA3\'';
system.debug(Database.query(s));

Output : (Contact:{XYZ__c=a0w1D000000RezuQAC, Id=0031D00000KkQLKQA3})

How do I get the XYZ__r.Name in the output. 

Hello,

We can add a datasource onto the attribute in the design resource, like this:
<design:attribute name="Name" datasource="value1,value2,value3" />

How can I use a dynamic datasource instead of hardcoding the values.

Thanks,

Devendra 

We have a register site writing in SF Sites with VF/Apex.  The Site runs without login via a Sites Guest User.  The Apex controller is coded without sharing. 

 

We'd like to allow the visitor to the Site to update the email address on their Contact record.  But, update access to Contact can't be granted to the profile, only Read and Create.  So the update won't work.

 

Anyone know a work-around? 

 

The one thing I thought if is to save the email address to a custom object then have batch apex running under a different login sweep the data and make the changes to the Contact records.  Seems like a lot of work to build all that when all I want to do is a allow update access only through this VF page.