Forcetalks | Ajay Prakash | Activity https://www.forcetalks.com/ajayd/activity/ Activity feed for Ajay Prakash. Tue, 31 Mar 2026 22:54:33 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 54018aae13d18b47830f9781e2ffa9ec Ajay Prakash replied to the discussion How to take List of Account into a JavaScript variable on a Salesforce Visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-take-list-of-account-into-a-javascript-variable-on-a-salesforce-visualforce-page/#post-70566 Thu, 27 Feb 2020 04:51:21 +0530 Reply to How to take List of Account into a JavaScript variable on a Salesforce Visualforce page?

I found this interesting topic today. Using remote action will open a different thread. I believe, The following approach will help -

In your javascript code parse the get set variable in the following way-

var accListTemp='{!accountList}';
var accList = JSON.parse(accListTemp);

Here in accList you will get a list of objects in javascript.… Read more

]]>
3d53e80ec74a1b9f11225ae24bbc1762 Ajay Prakash and Divya are now connected https://www.forcetalks.com/activity/p/88673/ Mon, 12 Nov 2018 04:48:39 +0530 0 723deb98706a94d1cfd1da4af5220361 Ajay Prakash replied to the discussion How can I append entire fields at once in query? Like 'SELECT * FROM ACCOUNT' in SQL . in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-append-entire-fields-at-once-in-query-like-select-from-account-in-sql/#post-25635 Wed, 28 Feb 2018 05:57:51 +0530 Reply to How can I append entire fields at once in query? Like 'SELECT * FROM ACCOUNT' in SQL .

Hi Pranav,

In SOQL you cannot use * to retrieve all the field values. You have to mention each and every fields API name in your SOQL query.

Thanks.

]]>
e8620153734b2378a1662efc9e12d76d Ajay Prakash posted a new post. https://www.forcetalks.com/?p=25607 Wed, 28 Feb 2018 05:14:31 +0530
Enhanced Lookups In Salesforce

Records in custom lookup are searchable by Object Name or AutoNumber. What If we want to search the record for any other field value. Just…

]]>
68c700258304b841d32503a0c47a4d17 Ajay Prakash replied to the discussion How to grant permission to user through apex code? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-grant-permission-to-user-through-apex-code/#post-25628 Wed, 28 Feb 2018 05:10:01 +0530 Reply to How to grant permission to user through apex code?

Hi Pranav,

You can assign permission set to user dynamically using following code in your apex -

PermissionSetAssignment psa = new PermissionSetAssignment
(PermissionSetId = yourPermissionSetId, AssigneeId = yourAssigneeId);
insert psa;

Thanks.

]]>
90a0ae22b31f7cc35340c5410f29d07a Ajay Prakash replied to the discussion How to create reusable methods in Lightning JS client side controller for reuse within the client side controller itself? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-create-reusable-methods-in-lightning-js-client-side-controller-for-reuse-within-the-client-side-controller-itself/#post-25627 Wed, 28 Feb 2018 05:03:20 +0530 Reply to How to create reusable methods in Lightning JS client side controller for reuse within the client side controller itself?

I agree with Himanshu. If you write the code in the helper.js then this code will be accessible from the controller.js, renderer.js and helper.js itself. It will improve your code reusability.

 

 

]]>
192e5401e70a36801baa7173d78702ad Ajay Prakash replied to the discussion If we declare lightning style in a Salesforce lightning component does it affect lightning application? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/if-we-declare-lightning-style-in-lightning-component-does-it-affect-lightning-application/#post-25625 Wed, 28 Feb 2018 04:58:06 +0530 Reply to If we declare lightning style in a Salesforce lightning component does it affect lightning application?

Hi Pranav,

Only including the style from the static resource in your lightning component will neither affect your lightning component nor your Lightning application. However, it will affect the preview of the lightning application if the component is included in the Lightning application and uses the CSS attributes. The scope of this static… Read more

]]>
ef8195aba00ffb09bdcf8a8e5dd8a6c3 Ajay Prakash posted a new post. https://www.forcetalks.com/?p=25614 Wed, 28 Feb 2018 04:52:34 +0530
Report and Report Type for a Custom Object in Salesforce

It’s an easy task to create a Report for a Standard Object because salesforce provides some standard report types for the standard object,  But when…

]]>
1d301955a2bd77c326275d0f3fe2a685 Ajay Prakash replied to the discussion Is there any method to limit the maximum number of characters that can be typed into input field in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-method-to-limit-the-maximum-number-of-characters-that-can-be-typed-into-input-field-in-salesforce/#post-25619 Wed, 28 Feb 2018 04:39:55 +0530 Reply to Is there any method to limit the maximum number of characters that can be typed into input field in Salesforce?

Hi Pranav,

You should use maxlength attribute of the input field instead of calling a method for the validation. If you want to write some custom logic or you want to show a message to the user then you can call a method and follow the approach provided by Abhinav.

Thanks.

 

 

]]>
a000792e5aacdcfad46df33ea247545a Ajay Prakash replied to the discussion How to get the old value of a field in a Salesforce Apex Controller? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-the-old-value-of-a-field-in-apex-controller/#post-25590 Tue, 27 Feb 2018 04:06:09 +0530 Reply to How to get the old value of a field in a Salesforce Apex Controller?

The above solution will help you definitely. There can be one more possible approach that you can perform a SOQL query on the object in the current transaction where you want old values of any record.

]]>
f7138b3dbad1d1006cf2740976cb5722 Ajay Prakash replied to the discussion Calling Batch class with Salesforce Apex Trigger in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/calling-batch-class-with-salesforce-apex-trigger/#post-25521 Thu, 22 Feb 2018 18:47:50 +0530 Reply to Calling Batch class with Salesforce Apex Trigger

Hi Anish,

As I can see Stage__c is an custom Object and you are referring object label Stage in your batch class. You should refer API name Stage__c of the Stage object in your batch class as well.

One more mistake I can see in your code that you have defined setQry(string soqlquery) method in your batch class but this method is not called… Read more

]]>
d58e501f13742eca61a4e78eed01bfc5 Ajay Prakash replied to the discussion Need help in changing Standard Price Book in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/selection-of-price-book/#post-25520 Thu, 22 Feb 2018 17:23:12 +0530 Reply to Need help in changing Standard Price Book in Salesforce

Hi Ravi,

Unfortunately it is not possible to change Price Book for existing Order, like on Opportunity. This Feature is not delivered by Salesforce and still is in Idea.

 

]]>
69b0e7e5c4f1d93b56713e4e7832b526 Ajay Prakash started the discussion Window.location.href is not working in Microsoft edge in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/window-location-href-is-not-working-in-microsoft-edge/ Mon, 19 Feb 2018 15:44:53 +0530 Window.location.href is not working in Microsoft edge

I have used window.location.href in my lightning component javascript controller. It is working fine in Chrome/Mozilla but not in Microsoft edge. Is there any alternate solution?

 

]]>
50bcf171fbfe90ac292c3ccc68761eb4 Ajay Prakash replied to the discussion Is there any method to test a Visualforce page like an apex class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-any-method-to-test-a-visualforce-page-like-an-apex-class/#post-25397 Sun, 18 Feb 2018 07:27:32 +0530 Reply to Is there any method to test a Visualforce page like an apex class?

You need to do unit testing for apex classes not for visualforce pages. Yes you will need to write test classes for visualforce page controller before deployment.

 

]]>
f82a7d98c897904d5e2ed24f6cd2fd60 Ajay Prakash replied to the discussion Permission set is assigned to user, how does it assign to a particular profile not user in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/permission-set-is-assigned-to-user-how-does-it-assign-to-a-particular-profile-not-user/#post-25396 Sun, 18 Feb 2018 07:21:59 +0530 Reply to Permission set is assigned to user, how does it assign to a particular profile not user in Salesforce?

Hi Pranav,

There is no sense of assigning the permission set to a profile. The permission set is for adding an exception on the profiles means providing additional access. You can add permission set's permission on the profile directly.

 

]]>
18e48402e57f6a07b6dc0a0e837beae9 Ajay Prakash replied to the discussion What is the difference between Readable,Visible and Read Only in permission set? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-difference-between-readablevisible-and-read-only-in-permission-set/#post-25395 Sun, 18 Feb 2018 07:11:54 +0530 Reply to What is the difference between Readable,Visible and Read Only in permission set?

Read-Only: If you check the "Read-Only" checkbox, that field will be read-only for the users of that profile. The user can only see that field, he can't edit. The field must be Visible to be Read-Only.

Visible: If you check the "Visible" checkbox, that field will be visible to that profile. User can read & edit that field

Readable: Read… Read more

]]>
cac321f192a1402a6a02d2c8aff1d79b Ajay Prakash replied to the discussion Can I use Map in dynamic query in Apex? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-i-use-map-in-dynamic-query-in-apex/#post-25394 Sun, 18 Feb 2018 06:45:24 +0530 Reply to Can I use Map in dynamic query in Apex?

You can not use a map in a dynamic query because you can only use variables and collections in the dynamic query. map.Keyset() and map.Values() are the methods that you can not use directly inside a dynamic query.

 

]]>
0fb9b50dd4cb5cdb33142d65546f6c13 Ajay Prakash replied to the discussion Want to take values as parameters from one page to another but this is working in Salesforce classic but not in lightning.How to overcome this issue? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/want-to-take-values-as-parameters-from-one-page-to-another-but-this-is-working-in-salesforce-classic-but-not-in-lightning-how-to-overcome-this-issue/#post-25393 Sun, 18 Feb 2018 06:32:09 +0530 Reply to Want to take values as parameters from one page to another but this is working in Salesforce classic but not in lightning.How to overcome this issue?

You can get the URL Parameters using window.location in your javascript.

]]>
dace8ab00c0e2d9c2f70179c1601871d Ajay Prakash replied to the discussion How can I implement lookup filters for custom objects in lightning experience? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-implement-lookup-filters-for-custom-objects-in-lightning-experience/#post-25392 Sun, 18 Feb 2018 06:10:46 +0530 Reply to How can I implement lookup filters for custom objects in lightning experience?

Salesforce has released this feature in Lightning as well in Spring '17. You can create lookup filter in lightning in the same way as you create in the Salesforce Classic.

]]>
e8e0d461e5f526cce12703431719ebf2 Ajay Prakash replied to the discussion Update Parent Record from a Salesforce trigger in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/update-parent-record-from-trrigger/#post-25391 Sun, 18 Feb 2018 06:05:35 +0530 Reply to Update Parent Record from a Salesforce trigger

In this scenario, if criteria are met every time a parent record is updated means you will insert a new child record, it will exceed the maximum depth limit of a trigger and will throw a maximum trigger depth exception.

]]>
dc83d21df3569034bed6551189af25b4 Ajay Prakash replied to the discussion How to resolve UNABLE TO LOCK ROW error in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-resolve-unable-to-lock-row-error-in-salesforce/#post-25390 Sun, 18 Feb 2018 04:52:08 +0530 Reply to How to resolve UNABLE TO LOCK ROW error in salesforce?

Reason and Resolution- 

When you have multiple jobs running that update the same set of records, it's recommended to lock the records using the FOR UPDATE keyword. It will ensure that the record is locked and no other job can update the same record at that point in time. The conflicting job will then wait until the locking on the record… Read more

]]>
2553ab4e4a205c7853e1ac5d84151f2d Ajay Prakash replied to the discussion Can I grant different field-level security based on record ownership? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-i-grant-different-field-level-security-based-on-record-ownership/#post-25350 Thu, 15 Feb 2018 11:52:43 +0530 Reply to Can I grant different field-level security based on record ownership?

There can be one possible solution. You can hide the field visibility from the profile and create a permission set having field level security based on the requirement and assign this permission set to the desired user.

 

]]>
1505394ae70be49e5aff38f4169346a4 Ajay Prakash replied to the discussion How to enable lightning app builder in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-enable-lightning-app-builder-in-salesforce/#post-25253 Mon, 12 Feb 2018 14:43:59 +0530 Reply to How to enable lightning app builder in Salesforce?

Lightning app builder is enabled by default. You need to go to quick search box and search for "lightning app builder" . There you can see a new button. By clicking new you can create new lightning page.

 

]]>
ef75aff8d12b872933f484b12b566d40 Ajay Prakash replied to the discussion How can I fetch the list views columns in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-fetch-the-list-views-columns/#post-25252 Mon, 12 Feb 2018 14:34:51 +0530 Reply to How can I fetch the list views columns in Salesforce?

We can retrieve list view column or the records based on the list view id using HTTP request. The response contains the query string that contains columns of the list view.  Below code is for reference –

public static List<Account> getFilteredAccounts(String filterId){
HttpRequest req = new HttpRequest();
String baseUrl =… Read more

]]>
c6976f5bcd0afcd0e98f57567ec812ea Ajay Prakash replied to the discussion Can we have look up filter in Salesforce lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-have-look-up-filter-in-lightning/#post-25251 Mon, 12 Feb 2018 14:09:52 +0530 Reply to Can we have look up filter in Salesforce lightning?

This feature has been delivered in Spring '17.

]]>
8eccc3bb5807879f34235bf7632f323e Ajay Prakash replied to the discussion Pre-populating fields at record creation in Salesforce Lightning Experience in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/pre-populating-fields-at-record-creation-in-lightning-experience/#post-25223 Mon, 12 Feb 2018 09:37:56 +0530 Reply to Pre-populating fields at record creation in Salesforce Lightning Experience

If you want to fetch the field value dynamically the use -

<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

If you want to provide static value then give default values in the attribute.

<aura:attribute name="attributeName" type="AttributeType" default="default value" />

]]>
4151d7ffa8bd4a04ed4a10085cbdb571 Ajay Prakash replied to the discussion How can i debug the javascript code in Salesforce Lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-debug-the-javascript-code-in-lightning/#post-25221 Mon, 12 Feb 2018 09:17:15 +0530 Reply to How can i debug the javascript code in Salesforce Lightning?

Lightning component java script can be debug in following manner-

  • Use Chrome + built in Dev Tools + Lightning Component Inspector
  • Make sure that debug mode is enabled in your org (Setup: Lightning Components).
  • Make sure that caching is disabled in your org (Setup: Session Settings -> uncheck "Enable secure and persistent browser caching to…

Read more

]]>
aa6e282d2a06891ba85071b2310bb447 Ajay Prakash replied to the discussion How can i debug the javascript code in Salesforce Lightning? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-debug-the-javascript-code-in-lightning/#post-25221 Mon, 12 Feb 2018 09:17:15 +0530 Reply to How can i debug the javascript code in Salesforce Lightning?

There are multiple ways to debug lightning component-

  • Use Chrome + built in Dev Tools + Lightning Component Inspector
  • Make sure that debug mode is enabled in your org (Setup: Lightning Components).
  • Make sure that caching is disabled in your org (Setup: Session Settings -> uncheck "Enable secure and persistent browser caching to improve performance"
]]>
2f35a9327e207cb1ed52535de49f6dbd Ajay Prakash posted a new post. https://www.forcetalks.com/?p=25192 Mon, 12 Feb 2018 07:40:23 +0530
ChannelOnline To Salesforce Integration Setup [EPISODE -2]

Integration Setup In Salesforce Resellers must perform the following setup steps in Salesforce in order to exchange data Enable the correct employee for use with…

]]>
fa9de11117c5401aaf8da69273e67bfc Ajay Prakash posted a new post. https://www.forcetalks.com/?p=25187 Mon, 12 Feb 2018 07:36:11 +0530
ChannelOnline To Salesforce Integration [EPISODE-1]

We will complete this integration configuration into two phase. Phase 2 is available in EPISODE - 2. ChannelOnline offers customers the ability to integrate with Salesforce.…

]]>
36a6cc4bbd18c5e6174bee45d4544d76 Ajay Prakash replied to the discussion How do I deploy Lightning components to my production org? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-do-i-deploy-lightning-components-to-my-production-org/#post-25205 Sun, 11 Feb 2018 17:07:09 +0530 Reply to How do I deploy Lightning components to my production org?

The lightning component can be deployed to production like any other component like apex,visualforce etc.

Lightning components are available in the Lightning Component Bundle in the drop-down list of the changeset.

 

]]>
c3684f6cd4b816a369067c94b0815afe Ajay Prakash replied to the discussion Where Lightning Components can be displayed? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/where-lightning-components-can-be-displayed/#post-25204 Sun, 11 Feb 2018 17:02:11 +0530 Reply to Where Lightning Components can be displayed?

Lightning component can be displayed in the following ways-

  1. Run Lightning Components Apps Inside Visualforce Pages
  2. Run Lightning Components Apps on Other Platforms with Lightning Out
  3. Create Drag-and-Drop Components for Lightning App Builder and Community Builder
  4. Launch a Lightning Component as a Quick Action
  5. Add Lightning Components…

Read more

]]>
22f2faab5e95f609198208b6573854a5 Ajay Prakash replied to the discussion How to open popup in Lightning Component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-open-popup-in-lightning-component/#post-25203 Sun, 11 Feb 2018 16:46:03 +0530 Reply to How to open popup in Lightning Component?

You can create modal provided by Salesforce

<div class="demo-only" style="height: 640px;">
<section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">
<div class="slds-modal__container">
<header…

Read more

]]>
c0002098c3c02dab161cd1defdd61b09 Ajay Prakash replied to the discussion How to assign permission set to a public group? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-assign-permission-set-to-a-public-group/#post-25201 Sun, 11 Feb 2018 16:24:10 +0530 Reply to How to assign permission set to a public group?

Hi Hazel,

You can not assign a permission set to a public group directly. This is still an idea "Permission Sets For Pubic Groups".that salesforce has not released. You can assign the permission set to users as described by Abhinav or Ajit.

Hope this helps.

 

]]>
f01b9a673b8b920f3ef82bea762a0009 Ajay Prakash replied to the discussion How to assign permission set to a public group? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-assign-permission-set-to-a-public-group/#post-25201 Sun, 11 Feb 2018 16:24:10 +0530 Reply to How to assign permission set to a public group?

Hi Hazel,

You can not assign a permission set to a public group directly. This is still an idea "Permission Sets For Pubic Groups".

that salesforce has not released. You can assign the permission set to users as described by Abhinav or Ajit.

Hope this helps.

 

]]>
9842d5cf8ffc6f6767dddb275349a8b5 Ajay Prakash replied to the discussion Do we have some step-by-step guide to create Lightning Components? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/do-we-have-some-step-by-step-guide-to-create-lightning-components/#post-25200 Sun, 11 Feb 2018 15:54:27 +0530 Reply to Do we have some step-by-step guide to create Lightning Components?

You can follow below steps-

In your DE org, open the Developer Console under Your Name or the quick access menu (Setup gear icon).

Light1

Now Select File | New | Lightning Component to create a new Lightning component. In the New Lightning Bundle panel, enter "HelloWorld" for the component name, and click Submit.

It will look like -

Light2

If you… Read more

]]>
0d68bc01125d89f87a85972ecadd423f Ajay Prakash replied to the discussion How to fetch list view columns without using MetaData Api Call? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-fetch-list-view-columns-without-using-metadata-api-call/#post-25197 Sun, 11 Feb 2018 15:23:17 +0530 Reply to How to fetch list view columns without using MetaData Api Call?

Hi Neha,

You can retrieve the records based on the list view id using HTTP request. It can be done without consuming WSDL. You can use below code for reference -

public static List<Account> getFilteredAccounts(String filterId){
HttpRequest req = new HttpRequest();
String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
String endPoinURL…

Read more

]]>
3e199b8dda89fa875829b49c19ca62bf Ajay Prakash replied to the discussion Is there a way companies can use Lightning component even if they don't use Apex code? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-there-a-way-companies-can-use-lightning-componenents-even-if-they-dont-use-apex-code/#post-25196 Sun, 11 Feb 2018 14:46:00 +0530 Reply to Is there a way companies can use Lightning component even if they don't use Apex code?

Hi Nauman,

Salesforce has released Lightning Data Services in Summer ’17 release. Using Lightning Data Services you can perform CRUD operation without using any APEX code. Lightning Data Services is very similar to the Standard controller of Salesforce Classic.

If you want to use this, go through the Trailhead for basics.

Hope this helps you.

 

]]>
3b8ad2774e7f6aded16db61ccb0df13c Ajay Prakash replied to the discussion Which order does the workflow field update executes "when workflow criteria is satisfied" in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/workflow-field-update-order-of-execution/#post-25195 Sun, 11 Feb 2018 14:26:17 +0530 Reply to Which order does the workflow field update executes "when workflow criteria is satisfied" in Salesforce?

Hi Saurabh,

If the workflow action has multiple field updates then The field updates occur "simultaneously" it does not follow any order. However, if we talk about other actions -

  1. Email Alerts
  2. Tasks
  3. Field Updates
  4. Outbound Messages

Field update actions are executed first among the above actions. The order for rest of the other action is… Read more

]]>
dc1c19331b43cfa55bd0ea5d6340f7d3 Ajay Prakash started the discussion How can we handle error/exception in force record edit tag in custom Lightning Component? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-we-handle-errorexception-in-force-record-edit-tag-in-custom-lightning-component/ Sun, 11 Feb 2018 09:11:08 +0530 How can we handle error/exception in force record edit tag in custom Lightning Component?

I Have used force:recordEdit tag for editing a record in custom component. It is working fine if there is no exception or validation error while saving the record. It also provides an event named "onSaveSuccess" after a successful transaction. But in the case of an exception or validation error, it does not provide any error message or any… Read more

]]>
c27a6b7265005619e3f8008da0e8b14f Ajay Prakash and Deepti are now connected https://www.forcetalks.com/activity/p/33109/ Thu, 01 Feb 2018 06:51:41 +0530 0 9e0645fc089bf501d850fd2763c1c1c8 Ajay Prakash posted a new post. https://www.forcetalks.com/?p=24510 Mon, 29 Jan 2018 04:11:20 +0530
Unboxing Salesforce Spring '18 New Lightning Features

Salesforce has released a new feature in spring-18 by which You can Personalize an app’s navigation bar to suit the unique way You work. You can…

]]>
e62186659a4a76cbf9812c4ca4029c34 Ajay Prakash and Rohit Mourya are now connected https://www.forcetalks.com/activity/p/28741/ Sun, 21 Jan 2018 18:15:59 +0530 0 630adf9f108888e84811e31a0c617c03 Ajay Prakash replied to the discussion What is difference between Global and Public keywords in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-difference-between-global-and-public-keywords-in-salesforce/#post-24233 Fri, 19 Jan 2018 06:53:24 +0530 Reply to What is difference between Global and Public keywords in Salesforce?

Hi Ankit,

These both are the access modifiers of apex class, methods, variables. Public means the method or variable can be used by any Apex in this same application or in the same namespace. Global provides a hieger level of access than Public.Any global method or variable can be accessed by any apex code that has access to the class not… Read more

]]>
c99e66f13408701952cd76425f83ddf6 Ajay Prakash replied to the discussion What is difference between Global and Public keywords in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-difference-between-global-and-public-keywords-in-salesforce/#post-24233 Fri, 19 Jan 2018 06:53:24 +0530 Reply to What is difference between Global and Public keywords in Salesforce?

Hi Ankit,

These both are the access modifiers of apex class, methods, variables.Public means the method or variable can be used by any Apex in this same application or in the same namespace. Global provides a hieger level of access than Public.Any global method or variable can be accessed by any apex code that has access to the class not… Read more

]]>
ce9a1d2a1bc83cf89c46e8c58b1ffdf6 Ajay Prakash posted a new post. https://www.forcetalks.com/?p=23776 Mon, 15 Jan 2018 11:09:20 +0530
Inline Edit Support in Custom Component in Salesforce Lightning

If you have a situation where you need to create a custom component with inline edit functionality then this article will help you. However inline…

]]>
884a4b7af2ab75703ccd56d4cca539b7 Ajay Prakash posted a new post. https://www.forcetalks.com/?p=23862 Mon, 15 Jan 2018 09:50:39 +0530
Salesforce Lightning customization - Related List Quick Links

Related List Quick Links-  We are familiar with looking at any record in salesforce lightning. If you want to see all the related list record then you…

]]>
6794ad8336cea919a64a1e540dc20c5e Ajay Prakash replied to the discussion How can we insert multiple sObjects in a single DML operation? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/insert-multiple-sobject-in-one-dml/#post-23881 Mon, 15 Jan 2018 06:59:25 +0530 Reply to How can we insert multiple sObjects in a single DML operation?

Hi Subhendu,

Yes, you can insert multiple sObjects in single DML Operation. Refer below code -

list<sobject> sObjList = new list<sObject>();
Account acc = new Account(name='testAcc');
Contact con = new Contact(lastName ='TestCon');
sObjList.add(acc);
sObjList.add(con);
insert sObjList;

You can not insert parent and child record both in single… Read more

]]>
4e7c6ed2fcedecd6c7e794528c6beedd Ajay Prakash replied to the discussion Is it possible to run a SOQL Query and get a MAP returned? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/is-it-possible-to-run-a-soql-query-and-get-a-map-returned/#post-23873 Sat, 13 Jan 2018 15:16:53 +0530 Reply to Is it possible to run a SOQL Query and get a MAP returned?

Hi Tanu,

Yes, You can run SOQL query and return into a map. You can refer below code it will return a map of Account id vs Account map-

Map<id,Account> mapOfAccountIdVsAccount = new Map<Id,Account>([SELECT Id, Name FROM Account]);
system.debug('mapOfAccountIdVsAccount::'+mapOfAccountIdVsAccount);

Thanks.

 

]]>
47e4e46b04cdce3f3861e06d4f4ae712 Ajay Prakash replied to the discussion How to insert Account and its related contacts through Salesforce Visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-insert-account-and-its-related-contacts-through-visualforce-page/#post-23871 Sat, 13 Jan 2018 15:05:34 +0530 Reply to How to insert Account and its related contacts through Salesforce Visualforce page?

Hi Shariq,

You can not insert Account and its related contacts in the single transaction. You need to insert account first and then its related contacts. To insert related contacts you need the id of the parent Account.

Please let us know what you have tried so far, in your scenario then we may be more helpful.

Thanks.

 

]]>