Surbhi Sharma
IndividualForum Replies Created
-
Surbhi
MemberJune 10, 2016 at 4:35 am in reply to: Can I grant different field-level security based on record ownership?Hi Ravi,
Sharing can be done only on the record level. So, there isn't a way to hide fields based on ownership. You could hide the data in visualforce pages, but the data could still be accessible through reports or the API.
Thanks
-
Surbhi
MemberJune 10, 2016 at 4:31 am in reply to: How to have a specific Email2Lead address and assign to different owners?Hi Ravi,
For this you can write the assignment logic inside a class along with your inbound email service.
Thanks
-
Surbhi
MemberJune 10, 2016 at 4:29 am in reply to: Where can I add a trigger on the ChatterMessage object?Hi Ravi,
As per my knowledge, its not possible to write a trigger on ChatterMessage object.
Thanks
-
Surbhi
MemberJune 10, 2016 at 4:24 am in reply to: How can i hide approve/rejection link in approver history using visualforce area in home page component?Hi Himanshu,
Please try this approach:
<apex:page standardController="ObjectName">
<apex:relatedList list="ProcessSteps" >
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script>
<script> $(document).ready(function(){$(".SidebarShortcut").hide(); });</script>
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:51 pm in reply to: What is case management assignment in Salesforce?Hi Himanshu,
Case Assignment Rules – It determine how cases are assigned to users or put into queues as they are created manually, using Web-to-Case, Email-to-Case, On-Demand Email-to-Case, the Self-Service portal, the Customer Portal, Outlook, etc.
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:44 pm in reply to: What are the implications of implementing Database.Stateful in Salesforce?Hi Ravi,
This is used for keeping state of variable while execution of batch class.
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:40 pm in reply to: Has anyone successfully invoked the Metadata API from within Apex?Hi Ravi,
It's definitely possible to use CRUD based Metadata API in APEX. Please refer Salesforce Metadata API document that will be really helpful for you.
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:35 pm in reply to: How to display a message on a VF page depending upon the value of a variable in an trigger?Hi Himanshu,
Please try this approach :
<apex:pageMessage summary="My Error Message" severity="info" rendered="{!GetterVariableName = 'Test'}"/>
Thanks
-
Hi Himanshu,
As per my research, you can use the photobooth.js jQuery library which uses the HTML5 api to access the webcam to capture the images. It is available on github.
Thanks
-
Hi Naman,
I will suggest that if the requirement is for the public url, you can use files instead of attachment because you can easily get the public url for that.
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:19 pm in reply to: How to use save points in apex class while saving data and how to implement it?Hi Naman,
Try using this approach, hope this will help you:
Account a = new Account(Name = 'Abc');
insert a;
System.assertEquals(null, [SELECT AccountNumber FROM Account WHERE Id = :a.Id].
AccountNumber);// Create a savepoint while AccountNumber is null
Savepoint sp = Database.setSavepoint();// Change the account number
a.AccountNumber = '123';
update a;
System.assertEquals('123', [SELECT AccountNumber FROM Account WHERE Id = :a.Id].
AccountNumber);// Rollback to the previous null value
Database.rollback(sp);
System.assertEquals(null, [SELECT AccountNumber FROM Account WHERE Id = :a.Id].
AccountNumber);Thanks
-
Surbhi
MemberJune 9, 2016 at 1:16 pm in reply to: How can I fetch the list views columns in Salesforce?Hi Naman,
This can be done using Metadata API.
Thanks
-
Surbhi
MemberJune 9, 2016 at 1:08 pm in reply to: Is it possible to sort the opp line items on custom field?Hi Naman,
Do you want to sort the opportunity line items using apex or using standard functionality of salesforce ?
Thanks
-
Hi Ajay,
The easiest way is to have the report include the record id then use data loader to delete those records. It will just mean exporting the report to .csv then uploading with dataloader to delete them only.
Thanks
-
Surbhi
MemberJune 9, 2016 at 11:56 am in reply to: How can I control the execution of various process builders on same object?Hi Rachit,
You have to call multiple process in the way : An update records action for Process1 triggers Process2 and so on.
Thanks
-
Hi Himanshu,
You can add members to community using profile. The profile with Customer Community Login user license can be the member of customer community. By activating the community, your community will be published.
Thanks
-
Surbhi
MemberJune 9, 2016 at 7:28 am in reply to: How we perform Platform Encryption on standard Account and Contact fields in Salesforce?Hi Piyush,
For platform encryption, select the fields you want to encrypt. For your information, when a field is encrypted, its value is masked for users who don’t have permission to view encrypted data.
Please follow below steps:
1. Make sure that your organization has an active encryption key. If you’re not sure, check with
your administrator.
2. From Setup, use the Quick Find box to find the Platform Encryption setup page.
3. Click Encrypt Fields.
4. Click Edit.
5. Select the fields you want to encrypt, and save your settings.Thanks
-
Hi Piyush,
Unfortunately, I haven't got any way for getting session id in post install script. If anyone come to know about this, please do share.
Thanks
-
Surbhi
MemberJune 8, 2016 at 2:09 pm in reply to: How can I make a separate list of duplicate records from a list of records, and then send email to those lists?Hi Himanshu,
I will need some more details of your requirement, then only i will be able to provide you a better solution.
Thanks
-
Hi Ravi,
Use default value/formula field under the object to set to some value so that it won't be null.
Thanks
-
Surbhi
MemberJune 8, 2016 at 2:05 pm in reply to: How can I tell what is changing in Salesforce as they patch each pod?Hi Himanshu,
There is a "current patch" view on the Known Issues site of salesforce. Arguably this is the most important single piece of information, i.e. the stuff that is about to be fixed.
Thanks
-
Surbhi
MemberJune 8, 2016 at 2:01 pm in reply to: How can I use 'query more' using javascript remoting?Hi Ravi,
Please have a look on below code:
@RemoteAction
public static SObject[] getRecords(Id offsetId) {
if(offsetId == null) {
return [SELECT Id, Name FROM Contact ORDER BY Id ASC LIMIT 100];
} else {
return [SELECT Id, Name FROM Contact WHERE ID > :offsetId ORDER BY Id ASC LIMIT 100];
}
}function handleResult(result, event) {
// handle a batch here
// do more
if(result.length===100)
{!$RemoteAction.controller.getRecords}(result[99].Id,handleResult);
}
}
{!$RemoteAction.controller.getRecords}(null,handleResult);Thanks
-
Surbhi
MemberJune 8, 2016 at 1:59 pm in reply to: How to choose the close case layout for the mass close button in a list view?Hi Ravi,
You can edit / create new case buttons from Setup -> Customize -> Cases -> Buttons and Links.
If its an s-control you can just edit the existing Close button and set it to use your s-control. If you've got a visualforce page you will need to create a new custom button. You can then use the settings:
Display Type: List Button
Content Source: Visualforce PageThanks
-
Surbhi
MemberJune 8, 2016 at 1:45 pm in reply to: How to “diff” components included in managed package versions?Hi Ravi,
I think unless you have got the package already in a source control system, you will have to manually diff the two package versions yourself.
Thanks
-
Surbhi
MemberJune 8, 2016 at 1:37 pm in reply to: Can I increase the apex limit of my free Salesforce developer org?Hi Abhinav,
As per my knowledge, you have to contact to salesforce for increasing the apex limit in salesforce developer org.
Thanks