You need to sign in to do that
Don't have an account?
Angel118
Close Case
Hi,
I need to directly Close a Case directly via a Custom-Button, without taking the user to the Close Case Page Layout.
Is it Possible ? if yes, Please guide me for the same..
Thanks in Advance,
Angel..
I need to directly Close a Case directly via a Custom-Button, without taking the user to the Close Case Page Layout.
Is it Possible ? if yes, Please guide me for the same..
Thanks in Advance,
Angel..
Code: If you're in Professional Edition, try this instead:
Code: Note that this is less code than Enterprise Edition only because there's no error checking and is completely hardcoded, and even may fail in the future.
Hope this helps!
~ sfdcfox ~
That worked fine for me...
Angel..
Thanks,
David.
Code: As you can see, this is fairly quick and painless no matter what field you're trying to update on any object. Just substitute the object's name and the field names in red (above), and you can make any update.
~ sfdcfox ~
Edit: Updated the error checking for robustness.
Message Edited by sfdcfox on 10-18-2007 06:09 PM
Message Edited by sfdcfox on 10-18-2007 06:10 PM
None of the following lines worked:
CustomObject__c["Date_Time_Closed__c"] = sforce.function(NOW(0))
CustomObject__c["Date_Time_Closed__c"] = NOW()
CustomObject__c["Date_Time_Closed__c"] = "NOW()"
What would work?
Thanks,
David.
~ sfdcfox ~