• germaine-t
  • NEWBIE
  • 0 Points
  • Member since 2011

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

I'm want to write some JS in a custom button to update the status field of the current object. I found some example code that seems to do what I want, but I'm getting an error when performing the update.

 

http://pastebin.com/MQdFdFde

 

The error I'm getting is: Refused to set unsafe header "User-Agent"

I get this error when I try to update SF with result = sforce.connection.update(updateRecords);

 

Any tips?

  • July 25, 2011
  • Like
  • 0