For an introduction to this code please see the article " Adding a Button to Generate an SData feed based on Current Context using the ASP/COM API "
The code listed below is the C# equivalent.
[code language="csharp"] using Sage.CRM.WebObject; using…