You need to sign in to do that
Don't have an account?
Test Dev 81
XERO : Only able to get invoice from Demo Company (global) in salesforce API
Hi there ,
I have build integration in apex to get invoices by InvoiceId and I am able to get Invoices from Demo Company org in Xero but when I pass InvocieId from my custom Company Org which is "RT Company" I get a successful response, but Invoices [] it returns an empty list
I guess API is not able to find that Id in Xero, but when I search that invoice manually I can see that invoice in RT Company
Is there any permission issue? when I generate the access token I select both organizations during the login
Thanks
Rahul
I have build integration in apex to get invoices by InvoiceId and I am able to get Invoices from Demo Company org in Xero but when I pass InvocieId from my custom Company Org which is "RT Company" I get a successful response, but Invoices [] it returns an empty list
I guess API is not able to find that Id in Xero, but when I search that invoice manually I can see that invoice in RT Company
Is there any permission issue? when I generate the access token I select both organizations during the login
Thanks
Rahul
Please note that ID differs according to environment. so it is not possible that two objects can have same id in different and same org.You might be trying to retrieve with help of InvoiceId from Xero in RT Company, but the record in RT company would have different InvoiceId.
You can first try to get the right Invoice Id from RT Company and then try to fetch it should give you the correct results.
Learn More here: https://help.salesforce.com/articleView?id=000324087
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.