Questions tagged [case-object]

Represents a case, which is a customer issue or problem.

Filter by
Sorted by
Tagged with
12
votes
3answers
7k views

Actions on Case object in Lightning

I have created a lightning component and assigned it to a custom case action. How to add this action to header near standard buttons. I have added the action in Salesforce1 and Lightning Experience ...
5
votes
1answer
16k views

Apex - Example Of Creating Case Record When Field On Account Equals “xxx”?

Continuing my quest to get Apex and Triggers under my belt: Can someone offer either sample code or links to samples where (such as) when Account.ABCD now equals "Go", create a Case Record and write ...
2
votes
1answer
1k views

Help with Triggers / Classes for Case Creation based on Field Change in Customer_Asset

I am new to Salesforce and haven't coded in quite awhile, so please forgive my rookie mistake(s). I am attempting to write a trigger to do the following: Our company manufactures equipment that ...
2
votes
2answers
886 views

Need help on SOQL to query all related child case records

I can query the child cases for current case by something like below, list<case> parentids=trigger.new select id,status from case where parentid=:parentids What if the children have more ...
8
votes
4answers
8k views

What are the differences regarding Cases in Sales and Service Cloud?

Considering that you have access to the Case object within the Sales Cloud what are the limitations if any?
2
votes
2answers
970 views

Help with Triggers / Classes for Case Creation Part II — Test classes

Thank you for all the help on my other question. I was so happy to see a community that doesn't have trolls. So the good news is that the code compiles with no errors. The bad news is that I have ...
2
votes
1answer
3k views

Workflow Rule on Case Comment, Fire Action on Case

I would like to fire a workflow whenever a case comment is created that emails both the case owner and a custom lookup field on the Case Object. I've created one for new Cases fine but when I fire on ...
1
vote
1answer
1k views

Calculate time spent on each stage on case record and report it [duplicate]

I want to report on time spend on each stage on a case (created to its closed). I believe i have to first create a formula field on case object which can show time stamp (days,hours and mins) , it ...
1
vote
1answer
773 views

email to case interchanging case emails between salesforce orgs

If I raise a case, e.g., no 12345, for a customer and then send an email from the case to the customer, the case (email-to-case) ref. is included in the subject of the email. The recipient is also a ...
1
vote
1answer
165 views

How can I send a specific support ticket auto response based off of recipient email address?

I have Salesforce configured for email-to-case. We have multiple email addresses customers can send to: support@foo.com support2@foo.com support3@foo.com. I'd like to send back a unique initial case ...
1
vote
2answers
2k views

Trigger Hel(p) Code Coverage 0%

As a followup to my previous posts (Again, many many thanks) I am still having trouble with the trigger. The code seems to function and I created a test class and the code itself is 100% covered. ...
0
votes
1answer
14k views

Apex - Checking Trigger.OLD versus Trigger.NEW

(thanks to @JesseAltman for help with the initial code) I am trying to make sure this fires once each time the IF comes true (checking if the field was previously something different). I am doing ...