+ Start a Discussion
Steve BrookesSteve Brookes 

Update Record outside of SFDC

We send out a number of emails to clients/prospects.

What would be great is to include a link within said email that says, for example, 'Send Quote' and links back to the related record and updates a field on that record....is that possible?

Thanks in advance,

You could probably do this with an external site that took in a parameter of the Id of the record and whatever field you needed to update.  That site is then powered by a Visualforce page and an Apex controller that parses the url parameters [1] and then does something with the object.  You'll need to make sure that you sanitize and validate any input that you get in from your users.

[1] https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_System_PageReference_getParameters.htm
Federico ImbastariFederico Imbastari
Hello everyone, I might say what is the correct syntax in the WHERE clause to make the comparison between strings?

PushTopic pushTopicAccount = new PushTopic();
pushTopicAccount.Name = 'ProvaAccount';
pushTopicAccount.Query = 'SELECT  Name FROM Account WHERE Name =: InfocertTEST';
pushTopicAccount.ApiVersion = 34.0;
pushTopicAccount.NotifyForOperationCreate = true;
pushTopicAccount.NotifyForOperationUpdate = true;
pushTopicAccount.NotifyForOperationUndelete = true;
pushTopicAccount.NotifyForOperationDelete = true;
pushTopicAccount.NotifyForFields = 'Referenced';
insert pushTopicAccount;
Federico, please create a new post for your question.  You addition to this thread has nothing to do with the initial question.