You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to integrate salesforce contact with xero I copied your code but it showing an error invalid Type XeroContact.
Could you please help me with this?
Here is my code
public class casToXero {
public static XeroContact createContact (String contactBody) {
// The created contact to return
XeroContact createdContact;
// Execute the callout to the Contacts resource
HttpResponse response = XeroCalloutUtility.executeCallout('POST', 'Contacts', contactBody);
// If successful response
if (response.getStatusCode() == 200) {
// Use the parser to convert the response into Xero objects
createdContact = XeroCalloutResponseParser.parseContacts(response.getBody())[0];
}
else {
// Raise error
throw new XeroAccountingApiException(response.getStatusCode() + ': ' + response.getBody());
}
return createdContact;
}
public class XeroAccountingApiException extends Exception {}
}
Please help me with this.
Many Thanks,
Saniya
The text was updated successfully, but these errors were encountered:
Hi benedwards44,
I want to integrate salesforce contact with xero I copied your code but it showing an error invalid Type XeroContact.
Could you please help me with this?
Here is my code
public class casToXero {
}
Please help me with this.
Many Thanks,
Saniya
The text was updated successfully, but these errors were encountered: