BMC Communities Banner

This Question is Not Answered

1 "correct" answer available (10 pts)
5 Replies Last post: Nov 19, 2008 5:12 PM by Dhinesh  
Dhinesh Participant 5 posts since
Oct 27, 2008
Currently Being Moderated

Oct 30, 2008 11:59 AM

AR System Automation with C#

Hello Everyone,

 

          I am Completely new to Remedy and AR System, I need some help on automating the Create New Ticket action on AR system, We have a product and some telcom carriers were using it to track network performance and issues, so whenever there is some issue which is tracked by our tool, it should log into AR System on the user's machine and create a new ticket with all the details of the issue filled into the fields, the user should only review the details and should manually submit the ticket.

 

So I had been trying to get some documents / help for last two weeks and till now I just found out a way to loginto the AR System using the aruser.tlb file on my visual studio environment with C# (usign COM conversion to C# dll), but just now I found the .Net COM API 7.1 and all the related dlls and chm file, but no where I found any document that tells the basics of how to login to the system or how to create a new ticket, the chm just lists down all the methods and parameters, I am lost somewhere, so Is there really some document that tells atleast how to go about creating ticket, how to get the field names to use and modify the values on new ticket form and such activities?

 

Simply what I am trying to achieve is, automate the create new ticket action from within our tool, instead of user logging in manually into AR System and entering the new issue details manually, so all these should be done from program and only submission will be user.

 

If any of you had done something like this or you know where such post / document /help file exist in this forum, it will be really helpful.

 

Thanks

Dhinesh

Anders Wilhelm Participant 4 posts since
Oct 4, 2008
Currently Being Moderated
1. Oct 30, 2008 12:27 PM in response to: Dhinesh
Re: AR System Automation with C#

 

Here is a short example of submitting records.

 

 

try

{

   ARSystem.Server server;

   server = new ARSystem.Server();

   server.Login("myserver", "user", "password", "");

   String myForm = "formname";

   ARSystem.FieldValueList fieldValues = new ARSystem.FieldValueList();

 

 

   fieldValues[2] = "username"; //Submitter

   fieldValues[8] = "sometext"; //Short Description

   fieldValues[7] = "New";      //Status

 

   ARSystem.EntryIdList entryId = server.CreateEntry(myForm, fieldValues);

 

   Console.WriteLine("Submitted record: " + entryId.ToString());

 

}

 

catch(ARSystem.Exception e)

 

{

 

      Console.WriteLine("ARSystem.Exception caught\n" + e.ToString());

}

 

 

 

ginol Expert 253 posts since
Feb 26, 2008
Currently Being Moderated
3. Nov 3, 2008 1:40 AM in response to: Dhinesh
Re: AR System Automation with C#

Hi,

 

this should work with API 7.1 . In any case there is a complete code for Server.CreateEntry method in the BMC ARSystem.chm file.

Regards

 

 

 

try

{
BMC.ARSystem.Server server;

server = new BMC.ARSystem.Server();

server.Login("your_server", "your_user", "your_password", "");

String myForm = "your_form";

BMC.ARSystem.FieldValueList fieldValues = new BMC.ARSystem.FieldValueList();

fieldValues[2] = "username"; //Submitter

fieldValues[8] = "sometext"; //Short Description

fieldValues[7] = "New"; //Status



String entryId = server.CreateEntry(myForm, fieldValues);

Console.WriteLine("Submitted record: " + entryId.ToString());

}

catch(BMC.ARSystem.ARException e)

{

Console.WriteLine("BMC.ARSystem.Exception caught\n" + e.ToString());
}

appajee Expert 286 posts since
May 29, 2007
Currently Being Moderated
4. Nov 3, 2008 11:38 AM in response to: Dhinesh
Re: AR System Automation with C#

The AR System .NET and COM API is an unsupported API and it only includes the readme (for installation instruction) and a CHM for limited documentation (includes few usage code snippets). If there is any specific usage snippet you like to see or missing or incorrectly presented in the doc, please let us know. In any case, as this API is a wrapper on top of AR System C API and intimately deals with AR System constructs -- it is good idea to know about the object model, data structures involved (at least from C API perspective, for which there is a very detailed published/supported documentation).

 

In any case, you need to add reference to BMC.ARSystem.DLL and do not need the common.dll as it is a common/utility assembly used by few sample apps.

 

You need to have some knowledge about which specific form you want to integrate. This can be best supplied by the specific form author, or, your AR System administrator. Specifically about forms of a specific application supplied by BMC, there usually are few designated forms for integration purposes. You need to look into the specific application documentation or associated white papers to locate those forms and information about the fields on those forms.

 

Appajee

More Like This

  • Retrieving data ...