• Sergi
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies

It's possible to check if a field has been modified with an after update trigger?

Similar to the workflow rule condition ischanged(field_name)

 

I want to take some actions if the ownerId field from Account has changed. 

Do you know if there's any way to know in witch enviroment (production or sandbox) is running an Apex application (class, trigger...)?

 

I mean inside the code of course. Any "global variable" that tells the enviroment?

Hi,

I'm writing an apex class, working with Force.com IDE in Eclipse.

When I add the following line to the code, it doesn't upload the code to the server for an unknown error

c = [SELECT Id, Name FROM Account WHERE Id = :c.Id];

 It seems that the problem is in the :c.Id (c is an Account), if I put

Id = 'xxx' //scalar value

in the WHERE section works fine.

Hello,

 

I need your help to fix a problem that i have with my application using salesforce API,

 

I'm using PHP development invironment. 

 

I'm used to send XML request to create/update salesforce objects [leads, contacts or activity history].

And to send the XML request, i have to escape the XML special characters so i can send a valid XML request.

Special characters are like:

  • '&' (ampersand) becomes '&'
  • '"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
  • ''' (single quote) becomes ''' only when ENT_QUOTES is set.
  • '<' (less than) becomes '&lt;'
  • '>' (greater than) becomes '&gt;'

Note: if i didn't escape these special characters then the request will fail.

 

The problem is that these special characters aren't mapped back on the server to thier equivalent, i mean if want to set the description of a lead into:

this is a customer description for a lead with these special & " ' < > characters.

Then what i find on Salesforce is:

 this is a customer description for a lead with these special &amp; &quot; &#039; &lt; &gt; characters.

Which doesn't make sense.

Please i need your help on how to fix this issue.

 

Thanks in advance

 

eng.imad.atia@gmail.com 

 

Hi,

I'm tying to launch a custom SOQL query:

SELECT Phone, PersonAssistantName, Owner.FirstName, Owner.LastName, Owner.Username, Owner.CommunityNickname, (SELECT Contact.FirstName, Contact.LastName, Contact.MobilePhone, Contact.Email FROM Account.Contacts LIMIT 1) FROM Account

 

But can't access to the CommunityNickname field of User table.

Looking at the documentation for User, it must exist. What am I doing wrong?

I have a visualforce page sitting on the home page within an iframe.  I want the user to be able to click a link on that visualforce page and display the details page for the specific object (e.g. a Task).

 

When the user clicks the link the page refreshes but only within that iframe. How do I get the parent window (i.e. my main salesforce window) to refresh as if the page was being accessed normally?

 

Thanks in advance...

Hi,

 

While Running a testmethod, I am getting the exception "System.TypeException: Testmethods do not support webservice callouts". This testmethod is for testing a trigger, which is calling the Google API service for Latitude and Lonitude Conversion. I am using Salesforce API version 15.0

 

What can be the alternative way? Please help..

 

Thanks in advance,

Suvra