Forcetalks | Kumar | Activity https://www.forcetalks.com/kumarroopam/activity/ Activity feed for Kumar. Thu, 18 Dec 2025 08:47:48 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 c831a32316d373a2377f1efa5165d986 Kumar replied to the discussion How to restrict a user to not create more than 15 records in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-restrict-a-user-to-not-create-more-than-15-records-in-salesforce/#post-23142 Tue, 02 Jan 2018 13:57:57 +0530 Reply to How to restrict a user to not create more than 15 records in Salesforce?

Thanks you Mohit! Didn't strike me to use aggregate queries to group records by OwnerIds.

]]>
aa90e2f97ee5194af383afebf55daffb Kumar replied to the discussion How to restrict a user to not create more than 15 records in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-restrict-a-user-to-not-create-more-than-15-records-in-salesforce/#post-23106 Fri, 29 Dec 2017 12:16:22 +0530 Reply to How to restrict a user to not create more than 15 records in Salesforce?

Hey Shaik,

You would to most probably write a trigger on Opportunity which saves the count of records created by a user in a custom setting or something. From where you could validate that if a user has created 15 records on Opportunity or not.

Thanks

]]>
14ac0e53089301a863324d5dd90e9aa9 Kumar changed their profile photo https://www.forcetalks.com/activity/p/17239/ Wed, 17 May 2017 09:45:56 +0530 0 c8460101d2dd20c0531be81a2855bfd4 Kumar replied to the discussion What are the daily limits on sending Emails whenever a case is generated in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-the-daily-limits-on-sending-emails-whenever-a-case-is-generated-in-salesforce/#post-18352 Wed, 22 Feb 2017 10:08:28 +0530 Reply to What are the daily limits on sending Emails whenever a case is generated in salesforce?

Hi Sushant,

As far as I know, sent email messages have a limit of 1,000 per day. You can check out this developer forum post for more information.

]]>
15426f3363d6c6c214eb5ca35ce9e19f Kumar replied to the discussion How can we find if a particular user has edit permission on a specific Sobject in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-find-if-a-particular-user-has-edit-permission-on-a-specific-sobject-in-salesforce/#post-18350 Wed, 22 Feb 2017 10:04:28 +0530 Reply to How can we find if a particular user has edit permission on a specific Sobject in salesforce?

Hi Sushant,

If you have a particular user id, you can query on the PermissionSetAssignment object to get the id of all users who have a specific level of access on that Sobject.

For example, this query gives you all the users who have 'view all' and 'modify all' permissions on Account.

SELECT Assignee.Id, Assignee.Name… Read more

]]>
db2a8df76c19ee2f8980466a7dd3cdda Kumar replied to the discussion How can we find if a particular user has edit permission on a specific Sobject in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-find-if-a-particular-user-has-edit-permission-on-a-specific-sobject-in-salesforce/#post-18350 Wed, 22 Feb 2017 10:04:28 +0530 Reply to How can we find if a particular user has edit permission on a specific Sobject in salesforce?

Hi Sushant,

If you have a particular user id, you can query on the PermissionSetAssignment object to get the id of all users who have a specific level of access on that Sobject.

For example, this query gives you all the users who have 'view all' and 'modify all' permissions on Account.

SELECT Assignee.Id, Assignee.Name… Read more

]]>
22087e446f44a1f2c21125b8b8c1dbf0 Kumar replied to the discussion How to delete a custom metaData in salesforce which I have added as a component in Managed package? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-delete-a-custom-metadata-which-i-have-added-as-a-component-in-managed-package/#post-18348 Wed, 22 Feb 2017 10:00:26 +0530 Reply to How to delete a custom metaData in salesforce which I have added as a component in Managed package?

Hi Prasanth,

As far as I know, deleting components from a managed package requires you to log a case with Salesforce, as normally you can not delete any component from a managed package.

For more information go to this link. Hope this helps.

]]>
50054ea254f17716d8d9b9bb058fbdbd Kumar replied to the discussion How to delete a custom metaData in salesforce which I have added as a component in Managed package? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-delete-a-custom-metadata-which-i-have-added-as-a-component-in-managed-package/#post-18348 Wed, 22 Feb 2017 10:00:26 +0530 Reply to How to delete a custom metaData in salesforce which I have added as a component in Managed package?

Hi Prasanth,

As far as I know, deleting components from a managed package requires you to log a case with Salesforce, as you can not normally delete any component from a managed package.

For more information go to this link. Hope this helps.

]]>
3b8f6fd891c30e18bf7aa5c85310eacd Kumar started the discussion How to resize a rich text field on a Salesforce Visualforce Page? in the forum https://www.forcetalks.com/salesforce-topic/how-to-resize-a-rich-text-field-on-a-visualforce-page/ Thu, 16 Feb 2017 14:40:15 +0530 How to resize a rich text field on a Salesforce Visualforce Page?

Hi all,

I have a custom object which contains a rich text field which is populated by an image.

I am using an apex:pageblocktable to display the list of that said custom object.

How can I resize that particular field in my pageblocktable?

Any help is appreciated.

 

]]>
c78b8a38a9ca8d2de21ff20f2d482782 Kumar replied to the discussion How can we use lightning component in salesforce community in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-use-lightning-component-in-salesforce-community/#post-18329 Thu, 16 Feb 2017 14:10:13 +0530 Reply to How can we use lightning component in salesforce community

Hi Vikas,

In order to be used in a community, your lightning component must implement the "forceCommunity:availableForAllPageTypes" interface and its access must be "global".

Something like this:

<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<aura:attribute name="greeting" type="String"… Read more

]]>
be12e73632a9992118f984b21fa558ec Kumar replied to the discussion How to restrict input to numbers only in inputText field visualforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-restrict-input-to-numbers-only-in-inputtext-field-visualforce/#post-18296 Wed, 15 Feb 2017 14:38:43 +0530 Reply to How to restrict input to numbers only in inputText field visualforce

Hi Vikas,

One way you could make this work is use <apex:input type="number" /> instead of apex:inputText.

Otherwise, you could implement some javascript validation or send it back to your controller and do the validation in Apex.

]]>
3c5a42ed0b050ec8858472b6eeb0eeed Kumar replied to the discussion How can we use an image in a custom field in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-use-an-image-in-a-custom-field-in-salesforce/#post-18295 Wed, 15 Feb 2017 14:35:42 +0530 Reply to How can we use an image in a custom field in salesforce?

Hi Sushant,

You can use a rich text type field and insert your image there.

Hope this helps.

 

]]>
c48dd5a52153bd882dfb84e423936f58 Kumar replied to the discussion What are the advantages of Testsetup in test classes? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-the-advantages-of-testsetup-in-test-classes/#post-18293 Wed, 15 Feb 2017 14:34:15 +0530 Reply to What are the advantages of Testsetup in test classes?

Hi Sushant,

You can use @testSetup to define common test data for all the methods of a test class.

Go to the developer guide for more details.

 

]]>
3f3d950f12add10f0c2ff18d3f36ad60 Kumar replied to the discussion How to save blank spaces in text area in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-save-blank-spaces-in-text-area/#post-18275 Tue, 14 Feb 2017 14:52:12 +0530 Reply to How to save blank spaces in text area

Hi Vikas,

Refer to this post, it deals with the same scenario.

]]>
427e0e9ac4628cd3e5d5bf10d76b589c Kumar replied to the discussion How can we achieve conditional rollback on saving multiple hierarchy records ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-achieve-conditional-rollback-on-saving-multiple-hierarchy-records/#post-18274 Tue, 14 Feb 2017 14:51:12 +0530 Reply to How can we achieve conditional rollback on saving multiple hierarchy records ?

Hi Vikas,

You can look into database.savepoint and database.rollback in Salesforce.

Refer to this link for more info.

]]>
df26554fbcffc648b2bbe103e5279374 Kumar started the discussion How to mask telephone field in visualforce page? in the forum https://www.forcetalks.com/salesforce-topic/how-to-mask-telephone-field-in-visualforce-page/ Tue, 14 Feb 2017 14:48:34 +0530 How to mask telephone field in visualforce page?

Hi All,

How to mask telephone field in visualforce page?

Thanks

]]>
deca565b91aaa1cbc0ad963e8997058a Kumar replied to the discussion Is there a way to serialize execution of Salesforce Batchable class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/the-way-we-can-serialize-execution-of-salesforce-batchable-class/#post-18259 Mon, 13 Feb 2017 07:34:21 +0530 Reply to Is there a way to serialize execution of Salesforce Batchable class?

Hi Mohit,

You can use chaining batch jobs can be used for this purpose, for more information you can check out this link.

]]>
435f6baf6ab15415f02c0cef9df68fa5 Kumar replied to the discussion Salesforce Trailhead challenge error BTSTRGLJ in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/salesforce-trailhead-challenge-error-btstrglj/#post-18258 Mon, 13 Feb 2017 07:30:52 +0530 Reply to Salesforce Trailhead challenge error BTSTRGLJ

Hi Prakhar,

Refer to this link, it may help.

]]>
7ab1d601bfc3ad17c2b709dc15c32a25 Kumar replied to the discussion Is there any way to check attachments on an object through code in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-way-to-check-attachments-on-an-object-through-code-in-salesforce/#post-18257 Mon, 13 Feb 2017 07:26:37 +0530 Reply to Is there any way to check attachments on an object through code in Salesforce?

Hi Pranav,

You can query for the attachment with the parentId as the Id of the object record. For example:

SELECT Id FROM Attachment WHERE parentID = <your record's Id>

Hope this helps.

]]>
be343a718e30cb50f6a5da4b5c7a02f1 Kumar replied to the discussion What is the difference between data loader and workbench? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-data-loader-and-workbench/#post-18253 Fri, 10 Feb 2017 14:55:40 +0530 Reply to What is the difference between data loader and workbench?

Hi Sushant,

Workbench is a powerful, web-based suite of tools designed for administrators and developers to interact with Salesforce.com organizations via the Force.com APIs. Workbench includes robust support for the Force.com Partner, Bulk, Rest, Streaming, Metadata, and Apex APIs that allows users to describe, query, manipulate, and… Read more

]]>
0fe7ae360533f6b9ea25344ea3c53eff Kumar replied to the discussion How can we access custom labels in javascript linked as separate static resource in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-access-custom-labels-in-javascript-linked-as-separate-static-resource-in-salesforce/#post-18251 Fri, 10 Feb 2017 11:33:52 +0530 Reply to How can we access custom labels in javascript linked as separate static resource in Salesforce?

Hi Mohit,

Custom Labels and the $Label global can be used for this purpose! Instead of evaluating Visualforce inside your JavaScript, you can do a little bit of JavaScript inside your Visualforce.

Load your Custom Labels into the platform using the normal interface,
Create what I like to call a "JavaScript bridging component" that loads… Read more

]]>
74a6ea933b55e8caf8ffec04cfb9bb5a Kumar replied to the discussion How can we access custom labels in javascript linked as separate static resource in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-access-custom-labels-in-javascript-linked-as-separate-static-resource-in-salesforce/#post-18251 Fri, 10 Feb 2017 11:33:52 +0530 Reply to How can we access custom labels in javascript linked as separate static resource in Salesforce?

Hi all,

Custom Labels and the $Label global can be used for this purpose! Instead of evaluating Visualforce inside your JavaScript, you can do a little bit of JavaScript inside your Visualforce.

Load your Custom Labels into the platform using the normal interface,
Create what I like to call a "JavaScript bridging component" that loads… Read more

]]>
ee2a7973ba0932b257ec4dfb20f2f483 Kumar replied to the discussion How can we convert Lead to Account through apex code? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-convert-lead-to-account-through-apex-code/#post-18250 Fri, 10 Feb 2017 11:29:25 +0530 Reply to How can we convert Lead to Account through apex code?

Hi Sushant,

You can use the LeadConvert class in Salesforce for this scenario. Hope this helps.

]]>
6c79080a45c213ff45bdb61ec08f3df9 Kumar replied to the discussion How can we get time from Date Time field in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-get-time-from-date-time-field-in-salesforce/#post-18249 Fri, 10 Feb 2017 11:11:35 +0530 Reply to How can we get time from Date Time field in Salesforce?

Hi Sushant,

Try this formula, this works for any timezone (simply replace the +10 with whatever your timezone is relative to GMT):

IF(
ISBLANK(Departure_Date_Time__c ),"0",
TEXT(MOD(VALUE(
Left(
right( trim(TEXT(Departure_Date_Time__c) ),9),2))+10,24))
&":"&mid(right( trim(TEXT(Departure_Date_Time__c)… Read more

]]>
d74899387804777b01e8f4a2b2ae8689 Kumar replied to the discussion CSS Style for ui:button in Salesforce Lightning Component non rendering in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/css-style-for-ui-button-in-salesforce-lightning-component-non-rendering/#post-18248 Fri, 10 Feb 2017 11:07:14 +0530 Reply to CSS Style for ui:button in Salesforce Lightning Component non rendering

Hi Sushant,

The classname which you've given is wrong. This is the correct styling.

.THIS .uiButton.btn{
background-color: #2574a9;
color: #fff;
padding: 10px 20px;
}

You may also directly give .THIS .btn (There is space if there's an outer DOM element, otherwise you may avoid the spacing.)

Hope this helps.

]]>
be5e4fa435ac5fc608740b58818964be Kumar replied to the discussion How to solve “System.NullPointerException: Attempt to de-reference a null object” in Salesforce apex class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-solve-system-nullpointerexception-attempt-to-de-reference-a-null-object-in-apex-class/#post-18238 Thu, 09 Feb 2017 08:14:55 +0530 Reply to How to solve “System.NullPointerException: Attempt to de-reference a null object” in Salesforce apex class?

Hi Sushant,

This error normally occurs when when you try to reference an object which has not been initialized or has null values.

To avoid this you need to make sure that all the sobjects in your class are initialized, preferably in the constructor.

Hope this helps.

 

]]>
b7d08557f2efe7a5bffad053553019c1 Kumar replied to the discussion Role Hierarchy Issue to enable Opportunity and Case Access in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/role-hierarchy-issue-to-enable-opportunity-and-case-access/#post-18207 Sun, 05 Feb 2017 11:45:50 +0530 Reply to Role Hierarchy Issue to enable Opportunity and Case Access

Hi Pranav,

I think that the Sharing Rules in your Dev org are Public. If you change the Org Wide Default sharing to Private, you have a chance to define the Access at the time of Role definition.

The Role Hierarchy screen lets you define the 'record access' relationship between your Users. Users can always see records they Own, and any… Read more

]]>
985ad4bc41d591802c912f46c4c8fa56 Kumar replied to the discussion How can we integrate the Api's with the lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-integrate-the-apis-with-the-lightning/#post-18206 Sun, 05 Feb 2017 11:43:35 +0530 Reply to How can we integrate the Api's with the lightning?

]]>
ea814518703f036b413c087555fe5468 Kumar replied to the discussion How to send an automated email to a scheduled activity in bulk? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-send-an-automated-email-to-a-scheduled-activity-in-bulk/#post-18204 Sun, 05 Feb 2017 11:36:30 +0530 Reply to How to send an automated email to a scheduled activity in bulk?

Hi Pranav,

I don't understand the full scope of your requirement but probably you will have to use Apex code and use the mass emails class.

Hope this helps.

 

]]>
9237fbeb958ae58d4b39dde7c4644012 Kumar replied to the discussion How to send an automated email to a scheduled activity in bulk? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-send-an-automated-email-to-a-scheduled-activity-in-bulk/#post-18204 Sun, 05 Feb 2017 11:36:30 +0530 Reply to How to send an automated email to a scheduled activity in bulk?

Hi Pranav,

Yes, you can only add up to 5 additional email addresses when creating workflow email alerts, that is documented here

https://help.salesforce.com/apex/HTViewHelpDoc?id=creating_workflow_alerts.htm

There's nothing to prevent you from adding an email address that is an actual distribution list, so in reality you can send emails to… Read more

]]>
27647cd2246211b38fef04fe69570ca5 Kumar replied to the discussion How to implement round robin on users in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-implement-round-robin-on-users-in-salesforce/#post-18203 Sun, 05 Feb 2017 11:35:36 +0530 Reply to How to implement round robin on users in salesforce?

]]>
294a9cb08e81cd1b6c246090e098d1ba Kumar replied to the discussion How can we hold the system execution on one line while my pop up is opened through javascript? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-hold-the-system-execution-on-one-line-while-my-pop-up-is-opened-through-javascript/#post-18202 Sun, 05 Feb 2017 11:33:54 +0530 Reply to How can we hold the system execution on one line while my pop up is opened through javascript?

Hi Himanshu,

You refer to this post. Hope this helps.

]]>
e7d2c94b5ac71b96bcc8a837071f22ba Kumar replied to the discussion Can I load data on my Salesforce Visualforce Page dynamically while scrolling? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-i-load-data-on-my-visualforce-page-dynamically-while-scrolling/#post-18201 Sun, 05 Feb 2017 11:25:40 +0530 Reply to Can I load data on my Salesforce Visualforce Page dynamically while scrolling?

]]>
6ed5290ae4c471622806695891661e4b Kumar replied to the discussion Why should we avoid nested loop in Salesforce Apex controller and how to achieve it? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-should-we-avoid-nested-loop-in-salesforce-apex-controller-and-how-to-achieve-it/#post-18200 Sat, 04 Feb 2017 07:31:56 +0530 Reply to Why should we avoid nested loop in Salesforce Apex controller and how to achieve it?

Hi Mohit,

Nested loops should be avoided in Apex controllers because they may slow down the processing of the page or may hit the governing limits for the page.

One easy way, and which gives some nice structure to the code is to make the inner loop a separate function, or minimize using loops altogether.

 

]]>
79f5ae26d7ef7f29d185e21af936179b Kumar replied to the discussion Error: Only variable references are allowed in dynamic SOQL/SOSL. in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/error-only-variable-references-are-allowed-in-dynamic-soqlsosl/#post-18199 Sat, 04 Feb 2017 07:19:53 +0530 Reply to Error: Only variable references are allowed in dynamic SOQL/SOSL.

Hi Vikas,

If you use : in your query, Apex expects a variable. So your query should look like this:

query=’SELECT Id,Name FROM Sobject WHERE Id in’+:allObjIds;

You had your ':' inside the string, hence 'allObjIds' was not being recognized as a variable.

Hope this helps.

]]>
7e2b1f696ea318a279e8468dfdfd8e3d Kumar replied to the discussion How can we pull a specific directory From Bit bucket in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-pull-a-specific-directory-from-bit-bucket-in-salesforce/#post-18198 Sat, 04 Feb 2017 07:15:43 +0530 Reply to How can we pull a specific directory From Bit bucket in Salesforce?

Hi Vikas,

I don't have much knowledge of Bit bucket, but this blog may help.

]]>
f7786f46826a798558fe1088010600b3 Kumar replied to the discussion How to roll back Git Commit in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-roll-back-git-commit-in-salesforce/#post-18197 Sat, 04 Feb 2017 07:14:14 +0530 Reply to How to roll back Git Commit in salesforce?

Hi Vikas,

Reverting Working Copy to Most Recent Commit
To revert to a previous commit, ignoring any changes:

git reset --hard HEAD

where HEAD is the last commit in your current branch

Reverting The Working Copy to an Older Commit
To revert to a commit that's older than the most recent commit:

# Resets index to former commit;… Read more

]]>
f07e8cef13e72859022ec3b8e90284f4 Kumar replied to the discussion How to use S-docs in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-use-s-docs-in-salesforce/#post-18196 Sat, 04 Feb 2017 07:10:47 +0530 Reply to How to use S-docs in salesforce?

Hi Sushant,

S-docs in an free AppExchange app, so you have to first install it in your org.

Then you have to create templates for the document you want to create.

Then just add the S-docs button to the object's page layout and generate the docs.

For more info go to:

http://www.sdocs.com/documentation/

Hope this helps.

]]>
5b398442f4ae02fbdd2cda0610aa6907 Kumar replied to the discussion How can we run a particular test method by a different user other than the user which is currently active in salesforce org? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-run-a-particular-test-method-by-a-different-user-other-than-the-user-which-is-currently-active-in-salesforce-org/#post-18192 Thu, 02 Feb 2017 15:26:06 +0530 Reply to How can we run a particular test method by a different user other than the user which is currently active in salesforce org?

Hi Sushant,

Generally, all Apex code runs in system mode, where the permissions and record sharing of the current user are not taken into account. The system method runAs enables you to write test methods that change the user context to an existing user or a new user so that the user’s record sharing is enforced. The runAs method doesn’t… Read more

]]>
35e69e2ebaa20417489a69f6adaecb65 Kumar replied to the discussion What are inline vf page?what is the use of it? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-inline-vf-pagewhat-is-the-use-of-it/#post-18191 Thu, 02 Feb 2017 15:24:22 +0530 Reply to What are inline vf page?what is the use of it?

Hi Sushant,

A Visualforce page with attribute standardController with an object name can be referenced inside the page layouts of the object.

For more info, refer to these links:

What are the inline Visualforce pages in Salesforce?

http://sfdcsrini.blogspot.in/2014/08/how-to-use-inline-visualforce-page.html

 

]]>
ea9d48e6b8e39d753f662fa7a12a7747 Kumar replied to the discussion How can we make a callout using javascript in Visualforce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-make-a-callout-using-javascript-in-visualforce-page/#post-18190 Thu, 02 Feb 2017 15:22:53 +0530 Reply to How can we make a callout using javascript in Visualforce Page?

Hi Sushant,

To make a callout (I am assuming rest) from your page, you have to use the http object in your controller.

You can also use scripts available for specific apis and use them in your page's <script>.

Hope this helps.

]]>
066e07aa6fc14c32bd581f61a1a41671 Kumar started the discussion How to avoid trigger recursion in Salesforce? in the forum https://www.forcetalks.com/salesforce-topic/how-to-avoid-trigger-recursion-in-salesforce/ Thu, 02 Feb 2017 15:21:16 +0530 How to avoid trigger recursion in Salesforce?

Hi all,

How to avoid trigger recursion in Salesforce?

Thanks

]]>
0b49cd9d2e4652cdb96b1fc80350b9c0 Kumar replied to the discussion How to get GeoCodes from From address using Apex in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-geocodes-from-from-address-using-apex/#post-18126 Tue, 31 Jan 2017 14:00:33 +0530 Reply to How to get GeoCodes from From address using Apex in salesforce?

Hi Vikas,

Refer to this code:

<apex:page standardController="Account">

<head>

<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script… Read more

]]>
9f878fe220fe9cf4c9e55e2838bec991 Kumar started the discussion How to get a list of Sobjects in Javascript from the controller in salesforce? in the forum https://www.forcetalks.com/salesforce-topic/how-to-get-a-list-of-sobjects-in-javascript-from-the-controller/ Mon, 30 Jan 2017 12:00:01 +0530 How to get a list of Sobjects in Javascript from the controller in salesforce?

Hi all,

I have list of accounts in my controller for a visualforce page. I want to directly use this list in my javascript on my page.

How can I do this?

Thanks

]]>
6f202b389f4b6b65bc4b3fcd7050e55a Kumar started the discussion Display related contacts in google map for an account in salesforce in the forum https://www.forcetalks.com/salesforce-topic/display-related-contacts-in-google-map-for-an-account/ Mon, 30 Jan 2017 11:58:17 +0530 Display related contacts in google map for an account in salesforce

Hi all,

How can we display related contacts in google map for an account?

Any help is appreciated. Thanks

]]>
8bcd349dcd488349abb0249187b6e944 Kumar replied to the discussion Advantages of Sites over Salesforce Community? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/advantages-of-sites-over-community/#post-18099 Mon, 30 Jan 2017 07:40:18 +0530 Reply to Advantages of Sites over Salesforce Community?

]]>
09180124a0e5c83078431a0b85a16a5f Kumar replied to the discussion How to set time limit between queued jobs in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-set-time-limit-between-queued-jobs/#post-18098 Mon, 30 Jan 2017 07:37:08 +0530 Reply to How to set time limit between queued jobs in Salesforce?

Hi Sushant,

You will have to use a helper class which implements schedulable interface to enque queueables like what you have at whatever interval you want to configure using the chron trigger object.

Refer to this post for a detailed solution.

Hope this helps.

]]>
a442b5de1608df5845512b18a8c44d80 Kumar replied to the discussion What is the difference between Process builder's submit for approval and Approval processes in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-process-builders-submit-for-approval-and-approval-processes/#post-18097 Mon, 30 Jan 2017 06:45:46 +0530 Reply to What is the difference between Process builder's submit for approval and Approval processes in salesforce?

Hi Sushant,

  1. In Process Builder You submit record for Approval. You need to specify the name of Approval process to which you want to submit the record.
  2. Approver and other details will be defined on Approval process.

Hope this helps.

 

 

]]>
6f99a50654c89ebfe7f0511f5c0c268a Kumar replied to the discussion What is the Callout Limits within Batch Apex in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-callout-limits-within-batch-apex/#post-18096 Mon, 30 Jan 2017 06:43:00 +0530 Reply to What is the Callout Limits within Batch Apex in salesforce?

Hi Vikas,

It's per each call of execute() in the batch, so for each "batch", you can call up to 10 HTTP callouts.

If the callout can handle multiple records at a time, do so, and batch up to 10 callouts per batch, otherwise, set the batch scope to 1, so each apex batch handles one record at a time.

Hope this helps.

]]>
f92de1bf88ae4640b6ab5b34c1fcb865 Kumar replied to the discussion How many sandboxes can create from production in saleforce ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-many-sandboxes-can-create-from-production-in-saleforce/#post-18094 Mon, 30 Jan 2017 06:38:58 +0530 Reply to How many sandboxes can create from production in saleforce ?

Hi Rajesh,

It depends on your salesforce org edition.

Enterprise Edition includes licenses for 25 Developer sandboxes and 1 Partial Copy sandbox.

Performance Edition includes licenses for 1 Full sandbox, 5 Developer Pro sandboxes, 100 Developer sandboxes, and 1 Partial Copy sandbox.

Unlimited Edition includes licenses for 1 Full sandbox,… Read more

]]>