• Nuvo Mortgages
  • NEWBIE
  • 0 Points
  • Member since 2018

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

I have set up a number of push topics using the Developer Workbench. When subscribed and changes are detected, I am receiving the same message twice. I have seen this post https://salesforce.stackexchange.com/questions/210915/streaming-api-37-0-sending-messages-twice and changed the API version to 36.0 but that does not help. 
Hi there,

I'm using the below javascript in a cusom button to update two fields within an opportunity when clicked.
  • The field DIP_Accepted__c is a checkbox - This needs to be set to "True" when the button is clicked
  • The field Date_DIP_Accepted__c is a DateTime field - This need to populate with the current Date&Time when the button is clicked.
The button is executing but the datetime field and tick box are not populating at all.

Please can someone help let me know where I'm going wrong?

Thanks,
Ed
 
{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")}

var oppToUpdate = new sforce.SObject("Opportunity");
console.log(oppToUpdate.DIP_Accepted__c);

  oppToUpdate.DIP_Accepted__c = true;
  oppToUpdate.Date_DIP_Accepted__c = new Date().toISOString();

  sforce.connection.update([oppToUpdate]);

  window.location.reload();

 
Hi, 

I have set up a number of push topics using the Developer Workbench. When subscribed and changes are detected, I am receiving the same message twice. I have seen this post https://salesforce.stackexchange.com/questions/210915/streaming-api-37-0-sending-messages-twice and changed the API version to 36.0 but that does not help.