Tuesday, February 14, 2023

Get the environment link Using x++

 Get the environment link Using x++.


Microsoft.Dynamics.ApplicationPlatform.Environment.IApplicationEnvironment     env;
         
env = Microsoft.Dynamics.ApplicationPlatform.Environment.EnvironmentFactory::GetApplicationEnvironment();

//return env.Infrastructure.FullyQualifiedDomainName;
return env.Infrastructure.HostUrl;


Keep Daxing!!

No comments:

Post a Comment