BusinessObjects Board

how to get mail addresses from an instance?

Good morning all.

I’m trying to write an instance manager for BO XI r3.
My application should get some details about an instance and display them to the user.

I’m having serious problems getting the mail addresses the report is sent to. I can’t obviously access to SI_MAIL_ADDRESSES property cause its nested.

Anyone can help me? I’m working in vb.net but examples and snippets in c# will also be apreciated.

Thank you so much for your attention


Federico.Garagiola :it: (BOB member since 2009-02-24)

Welcome to B:bob:B!

Have a look at this utility:

You can get some ideas for your work from its source code.


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Thank you,

I had read this source a few hours ago.
It’s a great application, but it does nothing more than mine. I can get all of these details without effort…

The details i need and i cant get are just the mail addresses

[UPDATE]

I’m reading the v2 and perhaps i found something interesting


Federico.Garagiola :it: (BOB member since 2009-02-24)

Which SDK are you using?


skeeter :us: (BOB member since 2008-05-22)

R3


Federico.Garagiola :it: (BOB member since 2009-02-24)

[quote:2e7dfc13ea=“Federico.Garagiola”]I’m reading the v2 and perhaps i found something interesting
[/quote]
There is even v3 of the utility :slight_smile:


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Sorry, Should have been more specific. Are you using, .NET or Java?


skeeter :us: (BOB member since 2008-05-22)

There is even v3 of the utility :slight_smile:
[/quote]

V2 is enough :lol:

Im working in .NET

I think I set up everything right, but i’m still sperimenting an error.

in this line:

iooOggetto.SchedulingInfo.Destination.CopyToPlugin(pinDestPlugin)

where iooOggetto is the infostore object

im getting an unhandled exception like “new method get_Destinations() and older method get_Destination() cannot be used together. Try using the newer one”

My exception message is in Italian, i tried translating, but it probably wont be exact.

Someone have idea how to fix this up?

[EDIT]

The problem seems to be located in the “assignment” part. I tried splitting this line in two and this still rises the exception, so the problem might be here:

Dim destDestination As CrystalDecisions.Enterprise.Destination = iooOggetto.SchedulingInfo.Destination

[SOLVED]

I tried replacing each occurrence of

iooOggetto.SchedulingInfo.Destination

with

iooOggetto.SchedulingInfo.Destinations.Item(1)

And everything works as charm.


Federico.Garagiola :it: (BOB member since 2009-02-24)