function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
System Administrator 463System Administrator 463 

Not able to set remote access call back url

I want to set callback url and this url will be called whenever there will be any changes happen in opportunities or account related data. How can i do that is there any other way?
NagendraNagendra (Salesforce Developers) 
Hi,

The Callback URL is a facet of the OAuth 2.0 protocol. For a good overview of how the OAuth protocol is implemented in Salesforce.com and the significance of the callback URL look at the following description -https://help.salesforce.com/apex/HTViewHelpDoc?id=remoteaccess_oauth_user_agent_flow.htm&language=en. Bottom line, the callback URL is what Salesforce will callback with once the user authorizes access to his/her Salesforce account.
 
For the purposes of the Android toolkit, you can specify any URI as the callback URL. It can be something as simple as 'a:b'. The actual value is not important. What is important is that whatever Callback URL you end up specifying in the 'Remote Access' section of Salesforce, you need to pass that exact same value in the 'Salesforce.loginOAuth' method of the toolkit. Hope this helps....

Please refer to the below link for more information.

http://salesforce.stackexchange.com/questions/20559/what-is-the-use-of-setting-oauth-callback-url-as-https-login-salesforce-com-se

Please mark it as solved if it helps.

Best Regards,
Nagendra.P


 
System Administrator 463System Administrator 463
Hi,

Then how can we receive any alerts or update happens in salesforce account to my api.
NagendraNagendra (Salesforce Developers) 
HI,

Certain records cannot be updated via the API. To update a record via the update() call, its object must be configured as updateable (updateable is true). To determine whether an object can be updated, your client application can invoke thedescribeSObjects() call on the object and inspect its updateable property.

Required Fields

When updating required fields, you must supply a value—you cannot set the value to null. For more information, seeRequired Fields.

ID Fields

Fields whose names contain “Id” are either that object’s primary key (see ID Field Type ) or a foreign key (see Reference Field Type). Client applications cannot update primary keys, but they can update foreign keys. For example, a client application can update the OwnerId of an Account, because OwnerID is a foreign key that refers to the user who owns the account record. Use describeSObjects() to confirm whether the field can be updated.

Thanks,
Nagendra.P