• David Cheung
  • NEWBIE
  • 85 Points
  • Member since 2014

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

Hello Helper

 

I want to export   from an org a package  containing  custom objects,  Custom fields , classes,  custom buttons......

 

I created a package.xml  file where I included  the Metadata  types  I want to export

 

I can not  specify  Custom button Metadata  type

Looking into the salesforce docs it seems to me that is is  considered as weblink

 

I tried  something like  below

 

.....

<types>
<members>Account.CustomButton_1</members>
<members>Account.CustomButton_1</members>
<name>webLinks</name>
</types>

 

 

 

but it does not work

 

any suggestion?

 

 

Thanks in advance

Csaba

 

 

 

 

  • September 22, 2013
  • Like
  • 1
I would like hear from anyone who may have had this similar experience with invoking the default Case assignment rule on in Apex. The Apex code would be something as follows:

Database.DMLOptions dmo = new Database.DMLOptions();

dmo.assignmentRuleHeader.useDefaultRule = true;

Case c = new Case(Status = 'New') ;

c.setOptions(dmo);

insert c;

The intention is to set the owner of the Case by invoking the business rules defined in the default assignment rule. If the assignment rule fails to locate an owner the default Case owner is set as the Case owner. The default Case owner is configured in Set Up / App Setup / Customize / Cases / Support Settings.

What do you think happens when the default assignment rule is inactive, e.g.: there are no active assignment rules? I thought the creator of the Case would be the owner of the Case, but not so, the behavior is such that as if phantom assignment rules are invoked and a owner is failed to be located resulting in the default Case owner being assigned as the owner. The same behavior is exhibited even when all assignment rules are deleted. The only way to remove the phantom rules is to remove the useDefaultRule call from the Apex code.

While I don't see a scenario where a business would completely stop using Case assignment rules after implementing them, I do see this as a probable classic bug. It looks like there is a switch statement behind the useDefaultRule call with a default block where the assignment of the default Case owner is occurring, and this default block is being reached because the condition of “no rules” is being treated same as the condition of ”no owner located”.

Hello Helper

 

I want to export   from an org a package  containing  custom objects,  Custom fields , classes,  custom buttons......

 

I created a package.xml  file where I included  the Metadata  types  I want to export

 

I can not  specify  Custom button Metadata  type

Looking into the salesforce docs it seems to me that is is  considered as weblink

 

I tried  something like  below

 

.....

<types>
<members>Account.CustomButton_1</members>
<members>Account.CustomButton_1</members>
<name>webLinks</name>
</types>

 

 

 

but it does not work

 

any suggestion?

 

 

Thanks in advance

Csaba

 

 

 

 

  • September 22, 2013
  • Like
  • 1

I'm playing with the following example: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm

 

I created both the controller and the page. However, I see an error: http://i.imgur.com/JxJbnMy.png

 

I have *no* idea what went wrong. The question is how to debug this?