I am getting this error - "You have uncommitted work pending. Please commit or rollback before calling out line number - 279", when calling getslots method of Appointment booking in FSL App,
Everything was working fine till yesterday, but now I am getting this error everytime I hit that method.
I want to search Contacts using this query.
List<Contact> listcontact=[SELECT id,name,phone from Contact where Lastname=:lname and MailingAddress=:mailingaddress];
But unexpectedly it give the error.
Address fields can only be filtered using Distance expressions
Please help me..