Creating a fixlet and applying action using the Platform API

(imported topic written by SystemAdmin)

Hi Everyone,

Basically, I am trying to automate the whole process of creating a fixlet and applying actions on it using the Platform API. So far I have been able to import the BES File to the console using the XMLImporter object of the API. To take action, I was thinking of doing something like loading the FixletMessage object of the API and then activating the fixlet. But I do not have enough information (i.e. the fixletID) about the fixlet in order to load that particular fixlet.

XMLImporter object, after successfully importing a .bes file returns an array of type VARIANT. I think this return value holds the information about the fixlet I just created. But I am not entirely sure how I would grab the fixletID from this return value. So far, I haven’t been able to get any useful information from the return value.

Also, after creating the fixlet, when I query the database, the siteID is always -1995328322 and I’m not sure why. :S

Has anyone tried to to this before?

Any help is appreciated!

Thank you!

(imported comment written by Bhushan Chirmade)

  1. If the fixlet is getting created in master site then site id will be same always.

  2. You can access the array by index numbers and that is your fixlet id to load.

Regards,

Bhushan