Category Archives: Salesforce.com

[Salesforce.com] Regex too complicated

Working with the regular expressions in Salesforce.com is same as in the Java. But the regex have restrictions to its complexity. For example, this regex throws compilation error:

If you have to use multiple times the symbol * in your regex, the Salesforce.com evaluates your pattern as too complicated. Workaround The workaround is to… Read More »

[Salesforce.com] Upsert on the User object

If you are trying to do the UPSERT operation on the User object, for example:

you will get error:

Workaround The workaround for this case is use the Database object:

…and now you can happily use the upsert operation on the User object :)