Hi,
I am using the Odata service application to fetch the data from the dynamics 365 FO and successfully authenticate all credential like (App Id/ Secret key and tenant key)
When I try to fetch the data from customer data entities I am not getting any result when I checked the URL the cross-company = true is not added.
Current URL which is processing is :
https://crm365develope80754a0238c7b1edevaos.cloudax.dynamics.com/Data/Customers
Which is wrong as I am not getting any data from above url .
Correct URL should be :
https://crm365develope80754a0238c7b1edevaos.cloudax.dynamics.com/Data/Customers?cross-company=true
So how we append the cross-company using Odata Service Application (downloaded from GitHub)
-- Function
public static void GetCustomerFilterByCompany(Resources d365)
{
var customer = d365.Customers;
foreach (var record in customer)
{
Console.WriteLine("Customer Name : {0}", record.Name);
}
}