• Peter van der Meij | StepOrange
  • NEWBIE
  • 34 Points
  • Member since 2015
  • Solution Delivery Specialist
  • StepOrange


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
How to Insert data from Organization1 to Organization2 ?
I'm on the final part of the Formulas & Validations Badge, and have confirmed that my validation rule is working correctly. When I test my validation formula for the assignment, it works fine. Here's the rule I'm using.

AND( 
NOT(ISBLANK(AccountId)), 
MailingPostalCode <> Account.ShippingPostalCode 
)

The assignment is to create a contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted. It also should apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. 

I believe this is setup as needed, but the error its throwing is my validation rule saying that an insert failed because of the rule? Any ideas on how to fix this?
How to Insert data from Organization1 to Organization2 ?

I want to do this:

If sales creates an order and chooses x "quantity" of the product "domains" 
display x "textfields" on the "Orderproduct details page" so we can insert the domain names.

So when Sales chooses 5 domains as quanity it should display 5 textfields to insert the domainnames.

Or when they chooses 3 domains as quantity display 3 textfields  Etc. Etc.

Can someone point me into the right direction?

 

Does anyone know of any easy methods to ignore case of a string literal doing a replace? For instance:

 

string a = 'one';

string b = 'OneTwoThree';

string c = b.replace(a,'Four');

 

The above replace would not work due to case sensitivity because string a = 'one' and not 'One'.

 

Is there some way of ignoring the case on string a?