S K
IndividualForum Replies Created
-
Hi Ravi,
Did you got the answer for this ?
-
S
MemberJuly 18, 2017 at 10:31 am in reply to: How to change the value of formula field by Salesforce Visualforce page?Can you help with more details here ? Formula field will be changed only if the referenced field involved gets changed. So, if you are changing that, the formula will change automatically.
-
S
MemberJuly 18, 2017 at 10:30 am in reply to: How to create a search page on Salesforce Lightning?It would be simple lightning component with placeholders for capturing field values. You can even work on making it generic so that same component can be used on multiple objects instead of just Contact.
For your specific query, can't you use salesforce global search for searching contacts.
-
Rightly said, You can check the timezone of the particular user for whom you are checking and then whenever the action is happening you can compare the current time and the particular user's time and display/hide error messages.
-
S
MemberJune 9, 2017 at 10:24 am in reply to: How to make a class available to others via extensions in Salesforce?When you others ? What does it mean ?
If you have any class used as custom extensions in visualforce page and that class's access modifier is public. It can be used by or within any other class
-
S
MemberJune 7, 2017 at 12:14 pm in reply to: Shall I use Salesforce workflow or Process builder or Visualflow?Can you please elaborate ? When they are not related to each other how would they be updated and deleted together. And what are you building which needs something like that. 🙂
-
No error will come and transaction will be successful. The workflow updates happen at the last which will not start a new transaction and hence will not push validation rule to execute. Hope this is clear.
-
S
MemberJune 7, 2017 at 12:09 pm in reply to: Delete more than 10000 records using script without limit in Salesforce ApexBetter to use Data Loader for such scenario.
Even if you have to Delete it using Apex script with some custom logic, I would recommend you to add records to collection and break it at 9990 and then create another instance of collection to update. You can write automated logic to break the collection based on the size and perform DML on them.
-
S
MemberJune 7, 2017 at 12:01 pm in reply to: In Salesforce, before exposing the REST API, we have to provide parameters to the 3rd party; what parameters needs to be provided?It depends which user flow you are using to connect with salesforce. It might be username password flow or OAuth. For each case - the services are accessed through URI and can be accessed with sourcename mentioned in URL Mapping of REST Resource.
-
S
MemberJune 7, 2017 at 9:52 am in reply to: In Salesforce, I am getting this error when I am running batch | error: atchable instance is too big: ManagementReportTwoBatchHi Pavan,
Generally, this error comes when you use Database.Stateful interface in your batch class. Salesforce in order to avoid hitting limits captures the heap size for such requests and display the error when it exceeds 6 MB for synchronous requests.
Ways to get around this -
1. Avoid using Database.Stateful
2. Reduce the amount of persistent data
3. Process less records per batchFor more details read this - https://help.salesforce.com/articleView?id=000239885&type=1
-
Not at once for sure. DML limit is maximum 10000 records in one collection. But yes, if you have pagination on the Vf Page. It can be done managing the state of records currently displayed on UI.
Hope this helps.
-
Can you please elaborate if there are people from multiple timezones in the Org ? Then 1-2 pm would be different for all.
Secondly, you can write a trigger to manage this. That can be a before delete trigger. Let me know nay other help.
-
S
MemberJune 7, 2017 at 4:06 am in reply to: Salesforce VIsualForce Pages - count number of times a page is loadedHi Harshita,
If you want to count the number of times a page is loaded. You can write an action attribute on Apex:page and invoke a controller method from it. Once invoked, you can write the logic which will update the counter by 1 in your controller.
You might think - Why Constructor is not used here - because DML operations are not allowed within a constructor..
Why Action Poller is not used - because that invokes itself after some designated time and might not happen immediately on page load.
Hope this helps ! Let me know your concerns or doubts.