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
monty808808monty808808 

Newbie try to create a trigger to update a field after update with a REST fetch

I am a nebbie trying do the following.

 

1) I have a custom field called test_account_id and test_campaign_id in the account tab

2) when a user inputs a  value in test_account_id I need a call to e.g. https://www.test.com?value= test_account_id__c which is a GET request.

3) the returned reults which is json will populate the  test_campaign_id

 

So....how do I do that?

 

This will be soooo much help for helping me to understanding with working APEX bettter.

 

Code that I can copy and paste will be great...

 

Thanks

sForceRoshansForceRoshan

Hi ....

 

I guess u will have to use web services . Try out for sforce.apex.execute in Salesforce documentation .....

Not sure about the syntax.