• jduhls
  • NEWBIE
  • 29 Points
  • Member since 2008

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 18
    Replies

any reason why the assignment rules won't trigger for new cases in this trigger:

 

trigger WebCaseAssign on Case (before insert) {
    integer i = 0;

    for (Case theCase:trigger.new) {
        if(theCase.Origin == 'Web') {
            Database.DMLOptions dmo = new Database.DMLOptions();
            dmo.assignmentRuleHeader.useDefaultRule = true;
            theCase.setOptions(dmo);   
        }
       
    i++;       
    }
   
}

 

I assume it's related to this issue/bug with Salesforce:

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=10690

Message Edited by jduhls on 04-22-2009 11:31 AM
  • April 22, 2009
  • Like
  • 0
We have a workflow rule that assigns a workflow task.  The issue is, we have multiple task "record types".  It is not explicit how the workflow task chooses the "task record type" - can anyone explain to me how this works and how to change the "task record type" that the workflow task chooses.  It just happens to choose the wrong one and it's a bit annoying.
  • August 01, 2008
  • Like
  • 0
http://www.sirsidynix.com/Company/Careers/

"Business Applications Administrator"
  • August 01, 2008
  • Like
  • 0
Soon after I began using the PHP toolkit/soapclient 11.0b, the Apache global env. "http_user_agent" was hijacked to read:

Salesforce/PHPToolkit/1.0

Anyone else experience this?  Any ideas on a fix?

any reason why the assignment rules won't trigger for new cases in this trigger:

 

trigger WebCaseAssign on Case (before insert) {
    integer i = 0;

    for (Case theCase:trigger.new) {
        if(theCase.Origin == 'Web') {
            Database.DMLOptions dmo = new Database.DMLOptions();
            dmo.assignmentRuleHeader.useDefaultRule = true;
            theCase.setOptions(dmo);   
        }
       
    i++;       
    }
   
}

 

I assume it's related to this issue/bug with Salesforce:

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=10690

Message Edited by jduhls on 04-22-2009 11:31 AM
  • April 22, 2009
  • Like
  • 0

I have created custom case page overriding standard functionality through controller extension

 

and I want to fire assignment rule conditionally

 

my code is here

 **************************************************

public class caseextension
{
private  Case case1;
public boolean assrulevalue;
public caseextension(ApexPages.StandardController stdController)
{
this.case1= (Case)stdController.getRecord();


}
public PageReference save()
{

AssignmentRule assgn=[Select Name, Id From AssignmentRule  where name='Testassign'];
string id=assgn.id;
if(assrulevalue==true)
{
database.DMLOptions dmo = new database.DMLOptions();
dmo.AssignmentRuleHeader.assignmentRuleId=id;
 dmo.AssignmentRuleHeader.useDefaultRule= false;
case1.setOptions(dmo);
   //mailerror('testing');
}
//mailerror('testing'+id);

 insert case1;
//database.insert(case1, dmo);
PageReference pageRef = new PageReference('/' + case1.id);
pageRef.setRedirect(true);
return pageRef;

}

public boolean getassrule()
{
    return assrulevalue;
}
public void setassrule(boolean value)
{
    assrulevalue=value;
}

**********************************************************

 

So what wrong with this code.

Hi. I tried to 'disable' the default Attachment function of SFDC with the following trigger:
 
Code:
trigger AttachmentDisabler on Attachment (before insert) {
 List<Attachment> atts = Trigger.new;
 for(Attachment a:atts) {
  a.addError('Please use the "Attach(FTP)" button on top of the detail page to attach a file.'); 
 }
}

 
But this does not seem to work. Did I do something wrong or is it impossible this way? Even the debug did not show anything, the trigger does not seem to do anything. Any other ways to disable the normal Attach function of SFDC without removing the entire related list? (want to keep notes function)
Since a carriage return signifies the end of a record in a csv file, how do you insert a carriage return as data in a field using the Data Loader?  A good example is the Shipping and Billing Street fields in Accounts which allow carriage returns in Salesforce.
 
John
Soon after I began using the PHP toolkit/soapclient 11.0b, the Apache global env. "http_user_agent" was hijacked to read:

Salesforce/PHPToolkit/1.0

Anyone else experience this?  Any ideas on a fix?
Hello everybody,

I'm trying to set a record's field to blank using the function sforce.connection.update().
Here is my code:

Code:
newObject = new sforce.SObject("DocumentLink");
newObject.set("Id", linkedDocs[i]["Id"]);
newObject.set("Bookmark__c", bookmark);

// update Document Link object var result = sforce.connection.update([newObject]); for (var k=0; i<result.length ;k++ ){ if (result[k].getBoolean("success")){ } else { alert("Failed to store the bookmark changes! \n"+result[k]); } }

That works absolutly fine as long as bookmark is not empty.
But I want to be able to set the Bookmark__c field to be blank as well. How can a do that?
I tryed something link: bookmark=null and bookmark="". But non of them worked.

Seems like the method simply ignors the field if it is set to null or "".
Has anybody an idea??

Thanks,
Matthias

Greetings...
I have configured e-mail to case to the best of my knowledge...
 
I'm getting the following error....
 

t2cexchange01

 

No login methods supported!;

  nested exception is:

        com.sun.mail.iap.ProtocolException: No login methods supported!

 

 

SFDC Url:           https://www.salesforce.com/services/Soap/u/7.0

SFDC User ID:       jgivens@t2systems.com

SFDC Login Refresh: 30

SFDC Timeout:       600

 

Registered Services:

   t2cexchange01:0:saleforce@t2systems.com:Inbox

 

 

Any Ideas?

Hi I'm trying to setup Email2Case and getting the following error:

ERROR Unable to connect to mail service.

Message: No login methods supported!;
  nested exception is: com.sun.mail.iap.ProtocolException: No login methods supported!

Does anyone have instructions on Exchange 2007 setup? or any more info on this error?

<configFile>
    <server1>
        <url>mail.mydomain.com</url>
        <protocol>imap</protocol>
        <userName>support@mydomain.com</userName>
        <password>myPassword</password>
        <interval>5</interval>
        <inbox>Inbox</inbox>
        <readbox>movedToSalesForce</readbox>
        <errorbox>error</errorbox>
    </server1>
</configFile>


Message Edited by transcend on 02-20-2008 03:18 PM
I have been using the data loader to populate our dev area and have found that when trying to load data that had been exported from our database  has the ',' ( comma character ) in some of the text fields.
 
Is there a way for Data Loader to ignore the ',' if it is embedded in the text data ( surrounded by quotes )?
 
If Data Loader will not allow for this, do you have another means of migrating this data to SF?
 
Thanks in advance,
Dave