Forcetalks | Sudhir | Activity https://www.forcetalks.com/sudhir-kr89gmail-com/activity/ Activity feed for Sudhir. Sat, 24 Jan 2026 23:53:09 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 395b7328c40825511d46f25c82e47540 Sudhir replied to the discussion One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/one-account-record-have-one-contact-recordso-when-im-creating-the-second-record-for-same-account-it-will-show-error-message-you-cant-create-more-than-one/#post-21229 Mon, 24 Jul 2017 19:23:42 +0530 Reply to One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one

So you wanted to have 1-to-1 relationship between Account & Contact.?

Just think a bit more, it can be achieved using wf field update.

]]>
d2ea51ce0b7c6eb797a747d44149bdf5 Sudhir replied to the discussion How to integrate salesforce to salesforce by using point and click in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-integrate-salesforce-to-salesforce-by-using-point-and-click/#post-21209 Mon, 24 Jul 2017 08:19:24 +0530 Reply to How to integrate salesforce to salesforce by using point and click

Have you tried using external object with Salesforce Connect: Cross-org as the type of external data source.

]]>
85199c500fef1884d7ffb3e5a44cd9c6 Sudhir replied to the discussion One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/one-account-record-have-one-contact-recordso-when-im-creating-the-second-record-for-same-account-it-will-show-error-message-you-cant-create-more-than-one/#post-21208 Mon, 24 Jul 2017 08:16:09 +0530 Reply to One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one

WHY DO YOU WANT TO USE TRIGGER IF YOU CAN ACHIEVE THIS USING A WORKFLOW FIELD UPDATE ON A TEXT FIELD.

Any specific reason.

]]>
076ba1f3c18cee86077ce430448a5883 Sudhir replied to the discussion What parameters should be kept in mind while checking dependency of one class on another? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-parameters-should-be-kept-in-mind-while-checking-dependency-of-one-class-on-another/#post-21194 Fri, 21 Jul 2017 17:53:29 +0530 Reply to What parameters should be kept in mind while checking dependency of one class on another?

One way could be: Go to that class --> Select "Show Dependencies" button,

]]>
90240f8b87ef304e581095f2dcdda34d Sudhir replied to the discussion How to share private records with different Users in salesforce organization? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-share-private-records-with-different-users-in-salesforce-organization/#post-21193 Fri, 21 Jul 2017 17:27:29 +0530 Reply to How to share private records with different Users in salesforce organization?

You can use Grant access using role hierarchies if the users are up in the same hierarchy.

For cross hierarchy, you can use different options like Sharing Rules(Criteria & Owner based), Manual Sharing and Apex Sharing as well.

For more info, refer salesforce guide.

]]>
d32ba787557c5992780d3407d5be5871 Sudhir replied to the discussion What are the parameters of a clone method in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-are-the-parameters-of-a-clone-method-in-salesforce/#post-21148 Thu, 20 Jul 2017 14:36:41 +0530 Reply to What are the parameters of a clone method in Salesforce?

I am not going to duplicate the explanation if it is already existing somewhere.

Bringing it at your click here:   Clone Explained

Let me know if you wanted to know any specifics which are not explained in this blog post.

]]>
8da01825921197ea362ea9a3a9bd617a Sudhir replied to the discussion How to change the value of formula field by Salesforce Visualforce page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-change-the-value-of-formula-field-by-salesforce-visualforce-page/#post-21066 Tue, 18 Jul 2017 08:23:41 +0530 Reply to How to change the value of formula field by Salesforce Visualforce page?

Formula field value cannot be changed directly, they are read only. However, the value of formula fields can be changed by changing the values of the fields referenced in the formula fields.

]]>
2ba1ec000a2385b7e3db312b32342927 Sudhir replied to the discussion Salesforce - What is Starting Number in Auto Number DataType? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-starting-number-in-auto-number-datatype/#post-21065 Tue, 18 Jul 2017 07:45:40 +0530 Reply to Salesforce - What is Starting Number in Auto Number DataType?

Autonumber is a system-generated sequence number that uses a display format you define. The number is automatically incremented for each new record.

The Starting Number defines the starting point of the number in the format for the subsequently created records.

]]>
99ddd9b202af1b94fc9e5c4fdf0451d9 Sudhir replied to the discussion What is the Limit for record retrieve in a Salesforce subquery ? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-limit-for-record-retrieve-in-a-subquery/#post-20981 Mon, 17 Jul 2017 08:07:52 +0530 Reply to What is the Limit for record retrieve in a Salesforce subquery ?

 

This point can help you understand this:

In a SOQL query with parent-child relationship subqueries, each parent-child relationship counts as an extra query. These types of queries have a limit of three times the number for top-level queries. The row counts from these relationship queries contribute to the row counts of the overall… Read more

]]>
72902e55cc4e1cdb7eb9cdd29f98bbf4 Sudhir replied to the discussion what is the use of Database.Stateful in Salesforce Batch Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-database-stateful-in-batch-class/#post-20899 Wed, 12 Jul 2017 08:21:11 +0530 Reply to what is the use of Database.Stateful in Salesforce Batch Class?

Look at the example in the Aman's response above.

]]>
b14094e15088ee4b59493cfb3f2df736 Sudhir replied to the discussion what is the use of Database.Stateful in Salesforce Batch Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-database-stateful-in-salesforce-batch-class/#post-20883 Tue, 11 Jul 2017 14:52:05 +0530 Reply to what is the use of Database.Stateful in Salesforce Batch Class?

I think you can do a little bit of searching inside Salesforce Apex Developer Guide to get this answer.

Each execution of a batch Apex job is considered a discrete transaction. For example, a batch Apex job that contains 1,000 records and is executed without the optional scope parameter is considered five transactions of 200 records each.

If… Read more

]]>
c72b0a7daa8736e28813566dcc1624be Sudhir replied to the discussion what is the use of Database.Stateful in Salesforce Batch Class? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-use-of-database-stateful-in-batch-class/#post-20883 Tue, 11 Jul 2017 14:52:05 +0530 Reply to what is the use of Database.Stateful in Salesforce Batch Class?

 

I think you can do a little bit of searching inside Salesforce Apex Developer Guide to get this answer.

Each execution of a batch Apex job is considered a discrete transaction. For example, a batch Apex job that contains 1,000 records and is executed without the optional scope parameter is considered five transactions of 200 records… Read more

]]>
2f305e9804027ecc9e2b4e14dc0ae98a Sudhir replied to the discussion Following error when run apex code in eclipse [{"message":"The HTTP entity body is required, but this request has no entity body.","errorCode":"JSON_PARSER_ERROR"}] in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/following-error-when-run-apex-code-in-eclipse-messagethe-http-entity-body-is-required-but-this-request-has-no-entity-body-errorcodejson_parser_er/#post-20822 Thu, 06 Jul 2017 07:53:38 +0530 Reply to Following error when run apex code in eclipse [{"message":"The HTTP entity body is required, but this request has no entity body.","errorCode":"JSON_PARSER_ERROR"}]

At least mention the apex code you are using.

From error message, it says that the body is required in your httprequest.

Set the body and try again.

]]>
cd41cffebe963e260100f67126d929e7 Sudhir updated their profile https://www.forcetalks.com/activity/p/17990/ Thu, 06 Jul 2017 07:44:37 +0530 0 ca2ab9b4dc16995d3d55195a9629179e Sudhir replied to the discussion How to query email and images from feedItems in case object? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-query-email-and-images-from-feeditems-in-case-object/#post-20812 Wed, 05 Jul 2017 14:52:53 +0530 Reply to How to query email and images from feedItems in case object?

Query like:

select Id, Body, isRichText, Title, Type from CaseFeed where ParentId = '50090000008cXoS'

where

If Type = ContentPost, then it is an attachment. Then check for ContentType of the file

if(contenttype =='image/jpeg' || contenttype=='image/png' || contenttype=='image/gif' || contenttype=='image/jpg' ){ ... }

If isRichText =… Read more

]]>
98f2bbe017c5ee7b782ff8081a65d0be Sudhir replied to the discussion Error while inserting the feedItem in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/insert-the-feeditem/#post-20810 Wed, 05 Jul 2017 14:38:09 +0530 Reply to Error while inserting the feedItem in Salesforce

This worked for me. Could you retry.

]]>
7535efa676340b7b4c77ac50a0f3044d Sudhir replied to the discussion Salesforce Streaming API some time's are not working in the Production in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/salesforce-streaming-api-some-times-are-not-working-in-the-production/#post-20809 Wed, 05 Jul 2017 14:05:35 +0530 Reply to Salesforce Streaming API some time's are not working in the Production

As you highlighted, did you check if you are reaching the Streaming API LIMITATIONS or the current count.

]]>
aaf78f4fc043b8b34939572db32b3f92 Sudhir replied to the discussion count number of unique email addresses on child records(contact) in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/count-number-of-unique-email-addresses-on-child-recordscontact-in-salesforce/#post-20805 Wed, 05 Jul 2017 13:18:15 +0530 Reply to count number of unique email addresses on child records(contact) in Salesforce

Is this still the issue? or you solved it?

]]>
99006b5ef78520d7919006097fbdedce Sudhir replied to the discussion how we can insert casefeed of one case to another case through coding??? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-we-can-insert-casefeed-of-one-case-to-another-case-through-coding/#post-20802 Wed, 05 Jul 2017 13:09:00 +0530 Reply to how we can insert casefeed of one case to another case through coding???

ParentId on CaseFeed is not writable.

If you look at the CaseFeed attributes, you can find that it is queryable: true but not createable: false, updateable: false etc.

Attributes are:
activateable: false
compactLayoutable: false
createable: false
custom: false
customSetting: false
deletable: true
deprecatedAndHidden: false
feedEnabled:… Read more

]]>
e5b57296e50acbe9ce299de6219472db Sudhir replied to the discussion What is the relationship between Account and Contact?(Explain) in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-relationship-between-account-and-contactexplain/#post-20799 Wed, 05 Jul 2017 12:28:01 +0530 Reply to What is the relationship between Account and Contact?(Explain)

It is a lookup relationship. You can create Contacts without any reference to any Account.

The answer lies in the differences between Master-Detail and Lookup.

But in terms of Cascade delete, it behaves like master-detail; meaning when you delete an Account, the related contacts are deleted.

In a standard way, the OWD of Contact is… Read more

]]>
e41a276abbbc62cd564e214b9a0a921c Sudhir replied to the discussion What is the relationship between Account and Contact?(Explain) in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-relationship-between-account-and-contactexplain/#post-20799 Wed, 05 Jul 2017 12:28:01 +0530 Reply to What is the relationship between Account and Contact?(Explain)

It is a lookup relationship. You can create Contacts without any reference to any Account.

The answer lies in the differences between Master-Detail and Lookup.

But in terms of Cascade delete, it behaves like master-detail; meaning when you delete an Account, the related contacts are deleted.

]]>
adeabdcd124a23b933b9ceffabf53b1e Sudhir replied to the discussion What is the relationship between Account and Contact?(Explain) in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/what-is-the-relationship-between-account-and-contactexplain/#post-20799 Wed, 05 Jul 2017 12:28:01 +0530 Reply to What is the relationship between Account and Contact?(Explain)

It is a lookup relationship. You can create Contacts without any reference to any Account.

The answer lies in the differences between Master-Detail and Lookup.

]]>
164483e4e1858a774360017061e72eb4 Sudhir replied to the discussion How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-get-the-owner-name-of-account-object-by-dml-and-put-at-the-outputfield-of-visualforce-page/#post-20798 Wed, 05 Jul 2017 12:24:38 +0530 Reply to How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page?

]]>
1dc7c9dc09caaf49c6062d8bb2cfc7ae Sudhir replied to the discussion How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-get-the-owner-name-of-account-object-by-dml-and-put-at-the-outputfield-of-visualforce-page/#post-20791 Wed, 05 Jul 2017 10:58:12 +0530 Reply to How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page?

]]>
d06292397a6210fadde71cb80e479a3f Sudhir replied to the discussion Why we have to delete all records before creating a Master Detail relationship in a Master? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-we-have-to-delete-all-records-before-creating-a-master-detail-relationship-in-a-master/#post-20789 Wed, 05 Jul 2017 10:47:03 +0530 Reply to Why we have to delete all records before creating a Master Detail relationship in a Master?

Simply because the master-detail relationship mandates that for a child to exist, the master must exist.

All the existing child record must be first associated with their parent in order to convert lookup to master-detail.

]]>
6a1942a3dce760f6a3d0b7a98fa0eaa3 Sudhir replied to the discussion Can we create many to many relationship using lookup field in Salesforce Junction Object? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-create-many-to-many-relationship-using-lookup-field-in-junction-object/#post-20788 Wed, 05 Jul 2017 10:43:37 +0530 Reply to Can we create many to many relationship using lookup field in Salesforce Junction Object?

Differences like in case of lookup:

1.The child record could exist independently.

2. No cascade delete.

3. Independent OWD/Ownership

]]>
fb6d6d141f13c10cad631d5d5c1df035 Sudhir replied to the discussion How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-get-the-owner-name-of-account-object-by-dml-and-put-at-the-outputfield-of-visualforce-page/#post-20783 Wed, 05 Jul 2017 09:33:41 +0530 Reply to How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page?

Your question title seems vague.

So looking at your code snippet, it appears that the question is: to display Account Owner name on the VF page.

Is this the question ?

]]>
dd8be26cc3b61a3c685ad592e85fd4e1 Sudhir replied to the discussion Why to avoid using Workflow rule and Process Builder field update with Trigger? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-to-avoid-using-workflow-rule-and-process-builder-field-update-with-trigger/#post-20782 Wed, 05 Jul 2017 09:28:31 +0530 Reply to Why to avoid using Workflow rule and Process Builder field update with Trigger?

]]>
7d7dfc533a01222bcb8df8b2a8fd8f92 Sudhir replied to the discussion When we use addMessage and addError? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/when-we-use-addmessage-and-adderror/#post-20781 Wed, 05 Jul 2017 09:26:05 +0530 Reply to When we use addMessage and addError?

When you wanted to display some custom messages to the current VF page context using some validation logic in controller, you use addMessage. Using this, you can show different Severity level (CONFIRM, ERROR, FATAL, INFO, WARNING) message.

If you wanted to prevent some DML operation under trigger context and display some custom error… Read more

]]>
6a672e8cec1309a611d0e42149f1c4f2 Sudhir replied to the discussion Why we have to delete all records before creating a Master Detail relationship in a Master? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/why-we-have-to-delete-all-records-before-creating-a-master-detail-relationship-in-a-master/#post-20780 Wed, 05 Jul 2017 09:17:05 +0530 Reply to Why we have to delete all records before creating a Master Detail relationship in a Master?

You create a relationship field on the child object.

Can you explain clearly what you are asking - deleting all records of which object ?

]]>
5a64688aa3d0cb46669774bcf6aa8b21 Sudhir replied to the discussion Can we create many to many relationship using lookup field in Salesforce Junction Object? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/can-we-create-many-to-many-relationship-using-lookup-field-in-junction-object/#post-20779 Wed, 05 Jul 2017 09:12:29 +0530 Reply to Can we create many to many relationship using lookup field in Salesforce Junction Object?

Yes you can.. but there will be difference in terms of what you achieve thru master-detail.

]]>
d9ed3224a64ebb890316e37e02010415 Sudhir replied to the discussion Check/UnCheck checkbox to show/hide textfield in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-salesforce-i-have-one-check-box-and-one-text-fieldso-when-i-check-the-check-box-text-field-will-be-show-when-i-uncheck-the-check-box-text-field-wont-show-any-one-help/#post-20728 Fri, 30 Jun 2017 15:54:36 +0530 Reply to Check/UnCheck checkbox to show/hide textfield in Salesforce

Use actionSupport, reRender and rendered to get this.

A sample example: reRenderRendered_page

]]>
3247e5af3ddbb048ea5b94fc1e4179bd Sudhir replied to the discussion Check/UnCheck checkbox to show/hide textfield in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/in-salesforce-i-have-one-check-box-and-one-text-fieldso-when-i-check-the-check-box-text-field-will-be-show-when-i-uncheck-the-check-box-text-field-wont-show-any-one-help/#post-20726 Fri, 30 Jun 2017 15:19:22 +0530 Reply to Check/UnCheck checkbox to show/hide textfield in Salesforce

You will have to use VF page to implement this. It won't be possible thru standard record page.

]]>
fbfbda64fcc1665d282ece91f10f7ab6 Sudhir replied to the discussion Generic Custom Visualforce Page for entire Salesforce Org like chatter? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/generic-custom-visualforce-page-for-entire-salesforce-org-like-chatter/#post-20666 Sat, 24 Jun 2017 08:18:57 +0530 Reply to Generic Custom Visualforce Page for entire Salesforce Org like chatter?

What do you mean by "all across the salesforce Org ".. Is this for all users of your org.

Something like home page component ?

]]>
a8bf1535f00450b4f4e3fc2dac994c85 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts/#post-20660 Fri, 23 Jun 2017 12:16:51 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

Did the solution work for you..

]]>
907d9140fcf89cb9dd46437e7e265139 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts/#post-20655 Fri, 23 Jun 2017 08:50:32 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

Enjoy the updated code I posted a while ago.  🙂

]]>
b8dcb823444a2351afa88dcaffd58c96 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts/#post-20652 Fri, 23 Jun 2017 08:48:32 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

Based on the assumption in my previous post, updated the code here..UpdateAccountNameFromContactLastName2

 

This will work in all scenario - Insert, Update, Delete, Undelete of a Contact on an Account.

]]>
5cf86ec212ce9fbc4ee4e661c4321800 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts/#post-20652 Fri, 23 Jun 2017 08:48:32 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

Based on the assumption in my previous post, updated the code here..UpdateAccountNameFromContactLastName2

]]>
584388ae6ca32beb8a4345fb8a19bc69 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts/#post-20650 Fri, 23 Jun 2017 07:35:24 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

I see that this is not mentioned this (account name should be combination of both account name and contact last name) in your first post here. Please make sure you have your requirement clear in the first instance.

So your Account name should be "AccountName ContactLastName1 ContactLastName2 ContactLastName3 and so on" ?  Confirm and then I… Read more

]]>
6aba5831bae5223903be1512acbf5e3f Sudhir replied to the discussion Get Meta Data specific to Application in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/get-meta-data-specific-to-application/#post-20635 Thu, 22 Jun 2017 19:06:43 +0530 Reply to Get Meta Data specific to Application in Salesforce

There are multiple tools out there. You can use Eclipse Force.com IDE or ANT Migration Tool.

To retrieve apps in your organization, use the CustomApplication type name in the package.xml manifest file. You can either retrieve all apps or specify which apps to retrieve in the types section of package.xml.

To retrieve all apps in… Read more

]]>
a1902c3a65d83b7f8f8235801a26ff22 Sudhir replied to the discussion Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/write-a-trigger-for-account-name-should-be-a-combination-of-lastnames-of-all-its-related-contacts-eg-if-i-have-two-contacts-1-test-name-2-test-name2-in-an/#post-20630 Thu, 22 Jun 2017 15:59:49 +0530 Reply to Write a Salesforce Trigger for account name should be a combination of lastnames of all its related contacts

Check this out.. UpdateAccountNameFromContactLastName

Update as per your trigger design template.

]]>
d5ed2410938b72fbb9a35c1ac0d32257 Sudhir replied to the discussion How to delete child records in lookup relation (with Salesforce triggers) in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-delete-child-records-in-lookup-relation-with-triggers/#post-20620 Wed, 21 Jun 2017 14:46:07 +0530 Reply to How to delete child records in lookup relation (with Salesforce triggers)

Check out this one.. Click here to get the solution DeleteChildrenFromOppty

You can optimize it further based on design patterns you use.

]]>
03df93b5e8ed32dfadacb5d3aa74fc3e Sudhir posted a new post. https://www.forcetalks.com/?p=20550 Wed, 21 Jun 2017 06:34:31 +0530
Salesforce Trigger Example to count number of completed tasks in a single contact

Below is an example of how to use Salesforce Trigger to count number of completed tasks in a single contact trigger UpdateAccountNameFromContactLastName2 on Contact (before…

]]>
48821f4002181ebfffb51a0d2877928a Sudhir replied to the discussion Trigger to update contact owner in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/trigger-to-update-contact-owner-in-salesforce/#post-20572 Tue, 20 Jun 2017 09:51:19 +0530 Reply to Trigger to update contact owner in Salesforce

I got the issue in the process builder. There is a minor update in Step #3 in the attached solution document.

Process Builder - Account Owner Change Update Related Contact Owner

 

]]>
e3bfc7ad3ac4e602a3a4808df37eb7f2 Sudhir replied to the discussion Trigger to update contact owner in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/trigger-to-update-contact-owner-in-salesforce/#post-20570 Tue, 20 Jun 2017 09:42:41 +0530 Reply to Trigger to update contact owner in Salesforce

This worked for me thru Process Builder. Try to debug or go thru Process Builder error report to see the reason for failure.

As far as trigger is concerned, this could be the solution.. UpdateContactOwner

You can comply with your trigger template design pattern.

]]>
7c2f51e798d5a8b19eba1c6b402e0744 Sudhir replied to the discussion Trigger to update contact owner in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/trigger-to-update-contact-owner-in-salesforce/#post-20565 Tue, 20 Jun 2017 08:30:09 +0530 Reply to Trigger to update contact owner in Salesforce

Hope it may help you. Click to see the solution..

Process Builder - Account Owner Change Update Related Contact Owner

]]>
c28a42eb08b56f4c1f6e7f15f780f157 Sudhir replied to the discussion How can i write a Salesforce trigger to count number of completed task in a single contact? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-write-a-salesforce-trigger-to-count-number-of-completed-task-in-a-single-contact/#post-20553 Mon, 19 Jun 2017 15:32:04 +0530 Reply to How can i write a Salesforce trigger to count number of completed task in a single contact?

Click to get to the code: TaskRollUpOnContact

Hope it helps!

]]>
7ca7ac81585eac54b55768dbb57ec123 Sudhir replied to the discussion How can i write a Salesforce trigger to count number of completed task in a single contact? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-can-i-write-a-salesforce-trigger-to-count-number-of-completed-task-in-a-single-contact/#post-20553 Mon, 19 Jun 2017 15:32:04 +0530 Reply to How can i write a Salesforce trigger to count number of completed task in a single contact?

Click to get to the code: TaskRollUpOnContact

]]>
9d6f39cf9cdfe178d4d2b94e2251d977 Sudhir updated their profile https://www.forcetalks.com/activity/p/17697/ Mon, 19 Jun 2017 09:16:44 +0530 0 ce00ce3b22eebde6295e1bbc7c38487e Sudhir replied to the discussion Trigger to update contact owner in Salesforce in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/trigger-to-update-contact-owner-in-salesforce/#post-20547 Mon, 19 Jun 2017 09:07:18 +0530 Reply to Trigger to update contact owner in Salesforce

You mean to say if a user changes the Account owner, the related Contact owner should be updated to the same Account Owner?

]]>