-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
1Likes Given
-
3Questions
-
1Replies
[Security Review] Sharing Level + CRUD/FLS on trigger
Hi,
Is there some sens to use "with sharing", and to enforce FLS while coding in a trigger? (on a helper class that is called by the trigger).
I think it's a non-sens. Somebody knows if the SF security review team is checking those things on trigger?
Regards,
Ilan
- Ilan Levi-Mazloum 9
- December 30, 2016
- Like
- 0
- Continue reading or reply
Canvas signed request with all user can self-authorize
Hi,
When using a canvas with Signed Request and using "All user may self-authorize", we need on first call (we don't receive the post["signed_request"]) launch an Oauth flow.
How can I do it? using the Sfdc.canvas.oauth.login function? When the flow is finished, when can I refresh the parent window to get the signed request?
When using a canvas with Signed Request and using "All user may self-authorize", we need on first call (we don't receive the post["signed_request"]) launch an Oauth flow.
How can I do it? using the Sfdc.canvas.oauth.login function? When the flow is finished, when can I refresh the parent window to get the signed request?
- Ilan Levi-Mazloum 9
- December 20, 2015
- Like
- 0
- Continue reading or reply
Canvas Signed Request Self authorize
Hi,
When using a canvas with Signed Request and using "All user may self-authorize", we need on first call (we don't receive the post["signed_request"]) launch an Oauth flow.
How can I do it? using the Sfdc.canvas.oauth.login function? When the flow is finished, when can I refresh the parent window to get the signed request?
Regards,
Ilan
When using a canvas with Signed Request and using "All user may self-authorize", we need on first call (we don't receive the post["signed_request"]) launch an Oauth flow.
How can I do it? using the Sfdc.canvas.oauth.login function? When the flow is finished, when can I refresh the parent window to get the signed request?
Regards,
Ilan
- Ilan Levi-Mazloum 9
- December 20, 2015
- Like
- 0
- Continue reading or reply
Which sharing keyword should I use on trigger handler class? With Sharing or Without Sharing?
Hi,
I am writing a trigger handler class for trigger in apex. But I am confused, whether to use 'With Sharing' or 'Without Sharing' keyword on handler class? In apex, trigger runs in system context so trigger handler should run in system context. So to run trigger handler in system context 'Without Sharing' keyword must be used on it. But almost all places, I have seen that 'with sharing' keyword gets used on trigger handler class.
Would anyone help me? Please.
I am writing a trigger handler class for trigger in apex. But I am confused, whether to use 'With Sharing' or 'Without Sharing' keyword on handler class? In apex, trigger runs in system context so trigger handler should run in system context. So to run trigger handler in system context 'Without Sharing' keyword must be used on it. But almost all places, I have seen that 'with sharing' keyword gets used on trigger handler class.
Would anyone help me? Please.
- Yogesh Shete
- January 27, 2017
- Like
- 0
- Continue reading or reply
Spring '18 Component lightning:recordEditForm Not Working as Expected
I'm following the examples as given in the updated documentation.
1) I'm getting the error 'Cannot read property 'defaultRecordTypeId' of undefined' even though there are no record types associated with my Conatct object. To get around this error, I have created a record type and I'm now passing in the recordTypeId. Updated code looks like:
I understand that this new component is in Beta for the current release, but I wanted to understand if the documentation is incomplete, if I'm making some simple error that I cannot see, or if the feature is not fully functional yet.
<aura:component> <lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Contact"> <lightning:messages /> <lightning:inputField fieldName="FirstName" /> <lightning:inputField fieldName="LastName" /> <lightning:inputField fieldName="Email" /> <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" /> </lightning:recordEditForm> </aura:component>Inserting a recordId in the above example results in the following error:
[Error in $A.getCallback() [Cannot read property 'value' of undefined]]Even the second example, attempting to create a record, is throwing an error:
<aura:component> <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Contact"> <lightning:messages /> <lightning:inputField fieldName="Name" /> <lightning:button class="slds-m-top_small" type="submit" label="Create new" /> </lightning:recordEditForm> </aura:component>In the above code, there are two separate errors happening:
1) I'm getting the error 'Cannot read property 'defaultRecordTypeId' of undefined' even though there are no record types associated with my Conatct object. To get around this error, I have created a record type and I'm now passing in the recordTypeId. Updated code looks like:
<aura:component> <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Contact" recordTypeId="XXXXXXXXXXXXX"> <lightning:messages /> <lightning:inputField fieldName="Name" /> <lightning:button class="slds-m-top_small" type="submit" label="Create new" /> </lightning:recordEditForm> </aura:component>2) Now that I'm past the recordTypeId error, I now receive this error:
cannot read property 'fields' of undefined
I understand that this new component is in Beta for the current release, but I wanted to understand if the documentation is incomplete, if I'm making some simple error that I cannot see, or if the feature is not fully functional yet.
- Tyler Woods
- January 18, 2018
- Like
- 4
- Continue reading or reply