Get Message Details with C3PO & ObjAPI

Has been a while since my last attempts but I have started experimenting
with C3PO on GW2012 again.
I hooked into the GW.MESSAGE.MAIL eGW_CMDID_OPEN event just fine,
get the message ID, and now try to retrieve some message details with
ObjectAPI.
No shared folders, or proxies, just personal messages.
The exception occurs when calling gwAccount.GetMessage(msgId)
This seems so basic, it must be something pretty simple.
Any suggestion?
Thanks
Wolfgang
' function called from execute handler
' get details of this message
Dim cCode As String
Dim msgId As String
Dim msgObj As Object ' ObjAPI message object
' actually these objects are stored globally,
' and moved here just for testing purposes
Dim gwCommander As Object ' TokenAPI handle
Dim gwSession As Object ' ObjAPI session object
Dim gwAccount As Object ' ObjAPI account object
Set gwCommander = CreateObject("GroupWiseCommander")
Set gwSession = CreateObject("NovellGroupWareSession")
Set gwAccount = gwSession.Login()
cCode = gwCommander.Execute("itemmessageidfromview()", msgId)
If (cCode = "True") Then
' OK: shows my email address & message id
' like xxxxxxxx.xxxx.xxxxx.xx.xxxxx.x.xxxxx.x
MsgBox ("getCurrentMessage: " & gwAccount.Owner + " -> " + msgId)
' ERR: Object variable or With block variable not set
msgObj = gwAccount.GetMessage(msgId)
' never gets here
MsgBox ("getCurrentMessage(): " & msgObj.Subject )
End If

On 4/15/2013 12:40 PM, Wolfgang Schreiber wrote:
> Has been a while since my last attempts but I have started experimenting
> with C3PO on GW2012 again.
>
> I hooked into the GW.MESSAGE.MAIL eGW_CMDID_OPEN event just fine,
> get the message ID, and now try to retrieve some message details with
> ObjectAPI.
> No shared folders, or proxies, just personal messages.
>
> The exception occurs when calling gwAccount.GetMessage(msgId)
>
> This seems so basic, it must be something pretty simple.
> Any suggestion?
>
> Thanks
>
> Wolfgang
>
I may be misrecalling but shouldn't it be
Set msgObj = gwAccount.GetMessage(msgId)
>
> ' *************************************************
>
> ' function called from execute handler
> ' get details of this message
> '
> Dim cCode As String
> Dim msgId As String
> Dim msgObj As Object ' ObjAPI message object
>
> ' actually these objects are stored globally,
> ' and moved here just for testing purposes
> Dim gwCommander As Object ' TokenAPI handle
> Dim gwSession As Object ' ObjAPI session object
> Dim gwAccount As Object ' ObjAPI account object
> Set gwCommander = CreateObject("GroupWiseCommander")
> Set gwSession = CreateObject("NovellGroupWareSession")
> Set gwAccount = gwSession.Login()
>
> cCode = gwCommander.Execute("itemmessageidfromview()", msgId)
>
> If (cCode = "True") Then
> ' OK: shows my email address & message id
> ' like xxxxxxxx.xxxx.xxxxx.xx.xxxxx.x.xxxxx.x
> MsgBox ("getCurrentMessage: " & gwAccount.Owner + " -> " + msgId)
>
> ' ERR: Object variable or With block variable not set
> msgObj = gwAccount.GetMessage(msgId)
>
> ' never gets here
> MsgBox ("getCurrentMessage(): " & msgObj.Subject )
> End If
>
> ' *************************************************

Similar Messages

  • Function Module for getting message details on passing message ID.

    Dear All,
    Is there any way in XI through which I can get the complete details about the message if I pass the message ID to it. I am having message ID with me but I am not able to find its all details, is there any function module available??
    Warm Regards,
    N.Jain

    HI,
    Go through the below thread for the same information
    SXMB_MONI transaction table
    In Which Database Table the Messages are Stored in XI
    Thnx
    Chirag

  • Getting WebPage Details with JEditorPane

    I want to know that it is possible to get the details of the Web Page that is opened with using JEditorPane's setPage(String url) method.
    Details like -
    1.)Icon associated with the WebPage
    2.)Cookies Send by the WebPage
    3.)Certificates
    4.)Other Information

    thx for the reply... I tried that, I System.out.println() the code, it will give mi
    <html>
    <head>
    </html>
    So I use this
    Document doc = jeditor.getDocument();
    doc.getText(firstpos, lastpos);
    I have another question. How do I make use of the HTMLEditorKit.InsertHTMLTextAction class. I want to insert a table into the JEditorPane which contain a html page.
    Thanks in advance.

  • Get Message details in custom adapter module

    Hello,
    Could you please let me know how can we retrieve following parameters in custom adapter module?
    Message size
    Message Mapping name
    Operation Mapping name
    Sender and Receiver Interface names
    Thanks!
    Regards,
    Shweta

    Hi Shweta
    Not all the information is available directly from the adapter module.
    Message size
    Retrieve the input stream of the payload, convert the stream to bytes and count the bytes length.
    Message msg = (Message) inputModuleData.getPrincipalData();
    XMLPayload payload = msg.getDocument();
    InputStream inStr = payload.getInputStream();
    // Convert inStream to bytes
    int size = bytes.length;
    Sender and Receiver interface names
    You can only get Sender interface in sender module, and receiver interface in receiver module. You can get the from the getAction() method.
    Message msg = (Message) inputModuleData.getPrincipalData();
    String interfaceName = msg.getAction().getName();
    Operation Mapping name
    This is not directly available from the Adapter Framework. One workaround is to access this via the Integration Directory API. With the Interface Determination Service API, you can read the Interface Determination object to get the associated mapping. To do this you have to make a SOAP call to the API.
    Message Mapping name
    I'm not sure how this can be retrieved as this is only available in ESR.
    If the module is on the receiver side, another option is to extract the information during mapping and store it into Dynamic Configuration, then in the receiver module, to extract it from Dynamic Configuration.
    Rgds
    Eng Swee

  • Getting message tone with delivery report in Nokia...

    Whenever i send a txt message , with every delivery report i get a message tone which is very annoying. Solution please.. :s

    Hi Jayoza,
    Try going under Profile personalisation and set Warning Tones to OFF, then check again.
    Also go Messaging-->Settings-->Service message-->set to 'OFF'.
    We would recommend you to try one after the other and see which one will help. But report back and let us know if this has helped.
    Regards,
    haZey
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Get path details with script

    From an absolute beginner in both InDesign and java scripting . . .
    With an InDesign CS6 document already open on my PC . . . can I get the path out of the opened file and save some/all the route folders/sub-folders and document name as variables with javascript?
    Path is like this:-
    \\mainserver\PDFWorkflow\Ads\County\GDS\InDesign\Adverts\225501IP.indd
    Why? Because I want to write a script that gives me a Place dialogue box using some of the variables from the original path.
    Place dialgoue script would have a path something like this:-
    \\mainserver\PDFWorkflow\Ads\variable\GDS\InDesign\Resources\variable

    app.activeDocument.filePath
    returns the document's path. This works only on saved documents.
    If you want to do any kind of file handling, you should read chapter 3 on file system access in the "JavaScript Tools Guide CS6". Fire up the ESTK and open the Help menu; you'll see the document in that menu.
    Peter

  • Get message "loaded with errors on the target and was closed" but there are no errors in the vi.

    Hi,
    Attached image shows the error message which i receive when I try to run my vi. "vi loaded with errors on the target and was closed" 
    The vi has no errors as far as I can see and hasn't changed since I ran it a few days ago and it functioned fine. other vi's in the project run without any issue.
    Any guidance to find the issue would be greatly appreciated!
    Thanks,
    Conor
    Attachments:
    Labview error.JPG ‏43 KB

    Some tips:
    1. Try to recompile the VI which is "loaded broken" (ctrl+click on Run arrow). Deploy.
    2. Try to recompile this VI and its dependencies (ctrl+shift+click on Run arrow). Deploy.
    3. Try to recompile top-level VI and its dependencies. Deploy.
    4. Change something in "loaded broken" VI (add some code, like reversing array back and forth, just to make LV recompile it). Deploy.
    5. Close the project. Restart RIO. Open project. Deploy.
    6. Close LabVIEW. Restart computer. Restart RIO. Open project. Deploy.
    7. Take another computer. Deploy from it.
    8. Close project. Clear compiled object cache (menu Tools -> Advanced -> Clear compiled object cache...). Open project. Wait until LV will open/recompile it. Deploy.
    9. Do as 7, but in the meantime reformat RIO from MAX. Open project. Deploy.
    10. Contact NI Support. Send them your project. Make them Deploy it.
    The fun starts when you have project which deploys for 30 minutes... Usually I skip straight to step 8 then, and usually it helps.

  • When going online get message box with "xmlNode.getElementsByTagName("id")[0].firstChildisNull - 1.What causes this & how do I correct?

    Message is inside a box with blue title box and red cancel "X"
    in the blue title is [JavaScriptApplication]

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    What is your homepage set to?

  • Report to get the Material with Exception message"10"  Rescheduling in

    Hello All
    We want to get the report to get the materials with exception message"10".We can get deatils from T code MD06,but it is restricted to MRP Controller/Vendor and we can get the details from Table "MDKP".Plese provide any report or T code to get the details of the exception message "10"
    Thanks
    Suresh kumar

    Hello
    You can use BAPI_MATERIAL_STOCK_REQ_LIST todata from MD04 or BAPI_MATERIAL_MRP_LIST to get data from MD05.
    BR
    Catano

  • Unable to connect mac OSX 10.4.11 to wireless network (virgin media) even though iPad, iPhone and laptop ok.  Get message 'password incorrect' even though it works with other devices.  Keep getting message connect to BT unrestricted access.

    Keep getting 'do I want to connect to BT unrestricted network' which I have never used before.  I can get my ISP details input but get message 'incorrect password' even though it works with 3 other devices. My network provider, Virgin Media, sent an engineer but he couldn't solve the problem - said network was all ok so problem must be with my iMac (OSX 10.4.11).  When I try to use internet I get BTWiFi is current wireless network - I've never used this! I've tried to change this and virgin media details are accepted, it's just the password stage that prevents me from connecting. I am not very knowledgeable with computers so I really need a step by step guide to solve this problem.  PLEASE HELP!!!

    Excuse me barging in on the thread, but I have a lot of experience with Telus, and roaming with my BlackBerry (currently a Z10).  In short, you've been fed some outdated info by the Telus rep. Telus has become very Android-centric, and it seems like a good number of Telus CSR's are still reading from a Legacy BlackBerry trouble-shooting guide.
    My Z10 is unlocked, and I periodically use an AT&T sim when traveling in the US.  I have never had to change an email setting to get full email function -- including the SMTP settings.  To put it simply, your device first connects to a network using credentials provided.  At most hotels, for instance, your device will scan for and pick up a WiFi network.  The hotel will tell you the WiFi network name and give you a password to use.  You simply enter the password when prompted, then you may have to agree to certain conditions.  That's it.
    Your email settings are just that.  Using whichever network to which you are connected, the user name and password give you access.  The settings coincide with the email provider's server settings.  These don't typically change with the location from which you are connecting.
    I'd suggest you take a look at this very helpful email settings tool provided by BlackBerry, if you are having difficulty:  http://helpblog.blackberry.com/2013/03/email-account-validation-tool/
    It helps you determine the possible settings for connecting to your email provider.  Different providers offer different connection options, sometimes more than one.  Opinions vary, but my preference in descending order is:  ActiveSync, IMAP, then POP if required.  ActiveSync (aka EAS) and IMAP will offer 2-way sync.
    Take a look at the tool and pop a message back here if you have any questions.  Good luck. ~ecm

  • So with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    so with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    did that.  now getting no messages on anything.  opened up messages on the Mac and saw i had been sent many that never showed up on my phone.
    I tried sending a text with iMessage turned off and while it said delivered, doesn't look like it was ever seen.

  • I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display.

    I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display. i have never seen this message before and i have 2 other macbooks and have had many other also. i am assuming this is a problem with the new macbook retina. does anyone know the exact fix to this issue? i have seen many sugestions to try to fix this issue but none have solved the issue for anyone that i can find in the Apple Support Community. thank for looking into this in advance.
    ******A true apple fan********

    Actually your suggestions are the ones that i have tried. i have seen that you have tried to help others with this issue and the only one that i could find that said they found the problem said that it was an ilife update issue and it fixed it and i have no available updates. i know it has to do with something in photo stream because it happens when i create a new library and it is loading the photos but i get the message before i reach the maximum 1000 photos. so i've tried updating, new library(first backing up photos and then deleting them from iPhoto), reinstalling OSX many times, running disc utilities. I called Apple the first day i had this issue and i was the first person to call them for support with the retina display and i actually had it escalated to a senior advisor and we thought we fixed the problem but we did not. i am pretty fluent in dealing with troubleshooting these type of issues and this is the first time i'm reaching out to the community. i figured now that the retina has been out some time now that there would be an obvious answer to this issue. thanks for the quick reply.
    Bebers5

  • FM to get sales order details with billing document .

    hi ,
    is there any standard FM or BAPI to get the sales order details with input as billing document ?
    i have the billing document number now i need to get the sales order number and its details ..
    is that possible ..
    i very well know how to get it by using query, i need standard FM.
    Points will be awarded for sure , if it helps .
    Thanks and regards
    JK

    Here is the list of BAPIs
    BAPI_QUOTATION_GETDETAILBOS
    BAPI_INQUIRY_GETDETAILBOS
    BAPI_SALESORDER_GETDETAILBOS
    SALES ORDER->
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order

  • When I try to open a Pages document from iCloud, created on my iPad, I get message stating I need a newer version of Pages.  When I go to app store all I get is "installed" when looking at pages app. my Macbook pro is up to date with all updates.

    When I try to open a Pages document from iCloud, created on my iPad, I get message stating I need a newer version of Pages.  When I go to app store all I get is "installed" when looking at pages app. my Macbook pro is up to date with all updates. Any ideas?

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • IPhone 3S was used with Bell, then unlocked to use with Rogers. Now I want to use it as iPod (Don't want to activate as phone),but when connecting to iTunes I'm getting message:  There is no SIM card, disconnect and insert new SIM card. Help?

    I have an old iPhone 3S, that was used with Bell. My friend lost her phone and I lend her this one, which she unlock to use with Rogers. I got it back and want to use as an iPod not the phone, but when I connected to iTunes I am getting this message: "There is no SIM card installed in the iPhone you are attempting to activate. Please diconnect and insert a SIM card".
    I went to Bell and Rogers where we tried inserting active cards but message never changed.
    On the phone itself I am able to get wifi but finish with "Your phone could not be activated because the activation server is temporary anavailable."
    I run diagnostic from iTunes:everything is working properly, only message out of normal is "iTunes is not running in safe mode"
    How can I sinc this phone with iTunes, so I can use it to lisen to music?
    Any help will be apriacieted

    I can not get to iPhone screen, so no way to get to Settings. That is the problem. When I connect phone to iTunes I get screen asking to insert SIN card. On the phone I'm getting Cinfigure screen asking Launguage , Country or Region, Wi-Fi, ( I can connect to my home wi-fi), and last screen "Activating your iPhone". After two minutes of waiting IM getting message: Your iPhone could not be activated because the activation server in temporary unavailable. try connecting to iTunes or try later or contat apple.com/support.
    Like I mention, I went to Bell as well Rogers store and tried to insert active SIM card with no results.
    Yes, my friend unlock the phone to use with Rogers but I don't know where

Maybe you are looking for

  • Configurar saprouter para aceitar conexoes de fora

    Olha sei que este topico ja foi aberto mas volto a pedir um suporte. Preciso me conectar ao meu SAP de casa, tenho no meu saprouttab o seguinte: # SNC connection to and from SAP KT "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 194.39.131.34 * # SNC conn

  • How to edit the web.xml file

    hi friends, i have been working with netbeans for webapplications so far therefore its not ever been requerd to edit the web.xml file that automatically done by IDE itself. now, i am just trying to deploy the servlet and jsp's externally without usin

  • Test-ActiveSyncConnectivity fails with The remote server returned an error: (400) Bad Request.

    Hi all, I'm on the process of transition from Exchange 2003 to 2010, everything is going perfectly alright however ActiveSync is bugging me! when I try to test activesync I get the following error: [PS] C:\>Test-ActiveSyncConnectivity -MailboxCredent

  • T60 dual screens/mo​nitors

    Hi, I have an end user that wants to use his T60 with Dual monitors. I know that he is NOT going to be able to use the laptop screen and two external monitors. the setup is this: T60 setup on a dock. 2 19 inch external monitors, one is setup with VGA

  • Will Project Budget be available again after settlement to AUC/final asset?

    I would like to know if my project budget will become available again once I settle costs to AUC and to Final asset (or settle directly to final asset w/o AUC).  Letu2019s say my original budget for WBS is 5000, cost was posted to the WBS u2013 4000,