I'm getting an error when I am call non void method from REST API class. Trying to add the Rest Response id in contract object.
trigger RestAPIcalloutTrigger on Contract (after insert , after Update) {
Integer CaseID;
CreateCasesByContract cc = New CreateCasesByContract();
List<Contract> CList = New List<Contract>();
for(Contract c : Trigger.New)
{
if(c.Broker_Involved__c == 'yes' )
{
c.BCR_Case_Id__c = cc.CreateCase();
c.BCR_Case_URL__c = 'http://cases.boxerproperty.com/ViewCase.aspx?CaseID='+ c.BCR_Case_Id__c;
}
CList.add(c);
}
Update CList;
}
The error is "Callout from triggers are currently not supported".