Working with the results of the Action generated Poweshell

Hello

I have an action from orchestrator of a powershell script/function that I use regularly. The function is supposed to return a System.Object with email content (n, fromAdd, body, etc) that I would use in a script task.

The problem I'm having is that I can't access these results in my work of scriptable. I know that the performance of the action a PowerShellRemotePSObject (and I have reviewed the literature on 'Working with PowerShell results'), but none of my attempts to explore the values give the results, I'm looking for. I'd appreciate any help to know what I'm missing.

Thank you

Thank you once again Ivo. Sorry for the delayed reactions. I took a peek at the solution you provided but had a few mistakes - there was no GetFilter() function defined for the call to psObject.getRootObject () .getProperty ('from'). After fiddling around with the results, I found my solution.

I basically closed the rootobject of the return value of invocation of script that turns out to be a collection data structure (last result in the enumeration in italics/bold).

.....

rootObject var = psObject.getRootObject

(rootObject element)

{

System.log (rootObject [index])

}

[10:43:33.159 2013-12-10] [I] DynamicWrapper (Instance): [PowerShellPSObject]-[class com.vmware.o11n.plugin.powershell.model.result.PSObject] - VALUE: com.vmware.o11n.plugin.powershell.model.result.PSObject@e9e592

....

It turns out that the value of back in my Powershell script is the last element in the collection. from there, I could get my values:

System.log (rootObj [rootObj.length - 1] .getProperty ("to"));

System.log (rootObj [rootObj.length - 1] .getProperty ("from"));

System.log (rootObj [rootObj.length - 1] .getProperty ("Subject"));

System.log (rootObj [rootObj.length - 1] .getProperty ("body"));

System.log (rootObj [rootObj.length - 1] .getProperty ("logFile"));

I don't know if this will always be the case with psObject return values of Powershell called scripts, but several tests will help.

Thanks for your time.

Tags: VMware

Similar Questions

  • Anyone who works with the CAF (Caltech intermediate Format) files in LabVIEW?

    Hey everybody,

    Anyone who works with the CAF (Caltech intermediate Format) files? These are files that are generated by IC layout programs, such as TannerEDA L-Edit, that define the layers and arrangement of the masks used in VLSI (Photolithography) of processing semiconductor device.

    I would like to analyse these CIF files to generate a map of wafer of devices for use in the-plate test. Currently, a plan of shooting is made and then I manually switch and define coordinates of line and column for the edge of a plate and various places of drop-in. I would like to automate this process, and I don't know if it is possible by playback of these files from the CAF. However, I don't really know how to read them, and I can get as much information from the Wikipedia page and the original article.

    So I ask: anyone has an easier set of screws that make reading CIF file? Or someone working with them can help me with my problem? I can describe it in much better detail once someone comes...

    Here is one of my notebooks CIF of Mathematica (remove the .txt extension obviously).  I used it to create a new CIF file with four instances of the object in a file.

    You can load a file with the following text:

    symName = loadCIF;

    You can see the layers:

    CIFlayers [symName]

    You can view layers:

    Show [{viewCIFlayer [symName, #, color of layer]}]

    (if you wish, add multiple layers to the list)

    If you have a file of type CIF I can also test to see that it recognizes the objects you use, I am generally to polygons and boxes.

  • I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate.

    I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate how can I solve this
    I have an acer

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: invalid license
    Validation code: 50
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - XY9X3 - JDXYP-6CJ97
    The Windows Product Key hash: xFQJU8srKsovk6p1Lk1yW93in4E =
    Windows product ID: 89583-OEM-7332157-00211
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.0.6002.2.00010300.2.0.003
    ID: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows Vista (TM) Home Premium
    Architecture: 0 x 00000009
    Build lab: 6002.vistasp2_gdr.110617 - 0336
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF}1.9.0027.06.0.6002.2.00010300.2.0.003x 64*-*-*-*-6CJ9789583-OEM-7332157-002112S-1-5-21-923204104-223683984-168055983Acer Extensa 5630 Phoenix Technologies LTD.V1.30 20090319000000.000000 + 00070333507018400FA04090409US Mountain Standard Time(GMT-07:00)03ACRSYSACRPRDCT109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.0.6002.18005
    Name: Windows Vista, HomePremium edition
    Description: operating system Windows - Vista, channel OEM_SLP
    Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 89583-00146-321-500211-02-1033-6002.0000-0042012
    Installation ID: 004511331255365043724851364501374781338933223323713385
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=43473
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=43474
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=43476
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=43475
    Partial product key: 6CJ97
    License status: Notification
    Notification reason: 0xC004F063.

    Windows Activation Technologies-->
    N/A

    --> HWID data
    Current HWID of Hash: OgAAAAEAAgABAAIAAwACAAAAAwABAAEAeqjWy6pVxGJ6f0DXhgfkNoBBsJzy9ErM1F/eG4QdrFYqhQ is

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20000
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC APIC PTLTD
    FACP INTEL CRESTLNE
    HPET INTEL CRESTLNE
    START PTLTD $SBFTBL$
    MCFG INTEL CRESTLNE
    SLIC ACRSYS ACRPRDCT
    ASF!            OEMID OEMTBL
    SSDT BrtRef DD01BRT
    SSDT BrtRef DD01BRT

    Ah! -in this case, it is not necessary.

    I see from my records that a similar case has been solved by uninstalling and reinstalling the update WAT - KB971033

    Open the Windows Update - click the link view updates installed on the left of the page

    in the list, find the WAT update KB971033, and then uninstall it.

    Then restart and reinstall the update from here - http://support.microsoft.com/kb/971033

    redemarrer restart again, then try to change your product key to the one on the sticker - what is happening this time?

  • protection tunnels works with the mode of transport only?

    Anyone know why protection tunnel works with the mode of transport only? If I change to tunnel mode, it stops working immediately.

    Thank you

    That's because Tunnel mode creates a new IP header that is modified when is coordinated, when the remote peer receives this new header which is concerned the Security numbers do not match what it generated. Using transport mode retains the original header and only encapsulates the payload.

  • Unable to work with the camera on laptop

    Original title: camera

    my camera on my laptop does not work.

    It works through skyping, but I want to take pictures and do the videoes but his does not work

    Hi r.,

    Please answer a few questions to refine the question.

    1. are you referring to photo App? What is the situation when you launch photo App?

    2. do you receive any error messages?

    3. What is the brand and model of the laptop?

    As you said that you were able to work with the camera when using Skype app, there is a problem with the permission of the camera app to use the construction in camera.

    If the camera application opens, then follow the steps mentioned below:

    a. press Windows + C on your keyboard to open the bar of charms.
    b. Select the settings option.
    c. Select permissions .
    d. snap it allow this application to access to your: Webcam and Microphone option.
    e. close the application by pressing Alt + F4 on your keyboard.
    f. open the camera app and check the results.

    If the problem persists, then I suggest you to run Windows 8 Troubleshooting App to diagnose and resolve the problem.

    Hope this information helps.

  • Challenges, working with the Blues in vco vcac plugin

    Hello

    Work with the latest plugin VCAC release VCO (5.2 and 5.5 respectively), I intending me to put a simple set of wrapper script element before the workflow 'Configure a virtual machine for an action plan', such that (to start) entries and group plan Director supply could be sent in the form of simple name strings, rather than expecting to complex objects (as expected) to allow for easier consumption REST API (not through the layer of presentation btw, who used the inventory tree to search for and provide said interactive input objects).  I couldn't find any provided action let me do the recoveries of simple object by name and decided to start by entering a complete picture of the objects and don't string correspondent against her...

    This proved be simple enough for the provision of groups and works very well - namely due to the provided method "host.findAllChildProvisioningGroups ()", you were using it directly or through the action "getAvailableProvisioningGroups".

    Blue are becoming another story.  I found the 'getBlueprints' action, which appears to be operated by the presentation layer when the workflow is run interactively, holding an object provisioningGroup in entry (which I had already recovered above).  It did not work when used in a script element, however.  After reviewing the support action, I found that it relied on a property of the object group configuration, rather than a method (it is not a useful method available).  Adding that debugging confirmed that the table was never fill when referenced (group.virtualMachineTemplates).  I don't know if it's broken or if I should wait only it works through presentation, or if I was just incorrect use - but I started looking for alternatives.

    I have looked around in the browser of the API and other samples, including the set of extensibility and reviewed all the activities planned, but they always seem to wait for the entry of VCAC:Blueprint type.  I found getBlueprintsForProperty and it is close to what I need, if it is running too slow when you pull a list of close-up (nearly one second per object).  I don't know linqpad can empty all the plans into VCAC (via ODATA) much faster.

    In the end, I'm looking for a way to get easily all plans for a commissioning Group (or even a host if it is fast enough), returned in an array of type VCAC:Blueprint can I browse - or even more simply, to retrieve the object model directly based on a property displayName known and gets my object.  I am aware of the VCAC entity the full mechanism added in the last plugin, but concerned that I'll be back will not match the input type... It seems that some properties do not match the type VCO and others do not part of an entity to plan at all.  Frankly I was hoping to not who become familiar with the innards of the existing API VCAC and wouldn't not rather recreate a plan object of its parts of the requested Party.

    If you're still with me, thank you! - and, ideas?  I'd like to hear missing me something simple here...

    -Milson

    OK spent more time on it with begins to implement a piece of javascript to directly get an object in the inventory of its entity vCAC. Instead of an iteration all objects of the same type, it is the object directly by ID.

    var entityKeyProperties = entity.entityKey;
    var entityIdKey = entityKeyProperties.keys[0];
    var entityIdValue = entityKeyProperties.get(entityIdKey);
    System.log("Found key " + entityIdKey + " : " + entityIdValue);
    
    switch(entity.entitySetName) {
    
        case "VirtualMachines" :
            inventoryObject = Server.findForType("vCAC:VirtualMachine", entity.hostId + "/" + entityIdValue);
            break;
    
        case "VirtualMachineTemplates" :
            inventoryObject = Server.findForType("vCAC:BluePrint", entity.hostId + "/" + entityIdValue);
            break;
    
        default : throw "No inventory object for entity type " + entity.entitySetName;
    }  
    

    I worked with the old version of the plug-in and then decided to test with the last version of the plugin (5.2) and made a great discovery.

    Engineering simplified our life with the implementation of entity.getInventoryObject ();

    So basically:

    var entity = vCACinventoryObject.getEntity(); // convert an inventory object to an entity
    inventoryObject = entity.getInventoryObject(); // convert an entity to an inventory object
    

    So in your case the code to quickly find a blueprint by name would be:

    if (vcacHost == null) return null;
    var model = "ManagementModelEntities.svc";
    var entitySetName = "VirtualMachineTemplates";
    
    var property = new Properties();
    property.put("VirtualMachineTemplateName",name);
    
    var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);
    
    var blueprints = new Array();
    for each (var entity in entities) {
        blueprints.push(entity.getInventoryObject());
    }
    
    return blueprints;
    
  • Need Adobe XI. DC does not work with the plugins I use.

    I'm on a Mac and I need Acrobat XI as DC does not work with the plugins that I use at work. We have a subscription to the CC. I downloaded the software XI from here: https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html but it asks for a serial number. I followed the steps on this page about what to do if you have a subscription, but this brings me to a page that asks you a redemption code to activate my subscription. My subscription is already activated. Is there a way to install XI without needing a series/redemption code?

    Update: I spent 2 days looking how to get this resolved. Of course, 5 minutes after I ask this question, it happens to me on this: https://helpx.adobe.com/content/help/en/creative-cloud/kb/acrobat-dc-uninstalls-acrobat-11 .html , that solved my problem and my installation began through the application of CC desktop, rather than a separately downloaded .dmg file as before. Note: After clicking on the button 'Download Adobe Pro XI', next steps called "Adobe DC", but the end result is an installation Pro XI.

  • [JS, CS4] TextFrame.extractLabel () does not work with the instances of this class

    I have the script, which works very well in CS3. In CS4 (app.version = 6.0.1.532) However, I get an error using extractLabel, after reading a few other a textframe properties:

    frameObject.extractLabel ('name')
    Error: TextFrame.extractLabel () does not work with the instances of this class

    Until the reading of one of the 'normal' properties, such as (frameObject.) content I can call frameObject.extractLabel ('name') without errors, but after "watching" (assign it to a variable in the code, or by getting the value in the javascript console), the content property (or as it seems any normal property) the extractLabel method generates the above error.

    It seems to work to move all frameObject.extractLabel at the beginning of the function calls, but I don't think that I would need to do this.

    It could very well be the case that the label read by extractLabel has no content and never received. Will there be a change in behaviour of CS3 in this sentence? If so, and if this is the reason for the error, is there then a way to determine if the label has been assigned?

    This error is familiar to someone else?

    Best regards

    Andreas

    It works if you use:

    var pgItm = app.activeDocument.textFrames.itemByID(parseInt(myId));
    

    Otherwise, this might work:

    var pgItm = app.activeDocument.pageItems.itemByID(parseInt(myId)).getElements()[0];
    

    Although, generally, itemByID gives you the question no matter what it is as long as there are, so I'm bit puzzled that neither of them will be necessary.

    Dave

  • A HP Officejet H470wl will work with the MacBook Air

    A HP Officejet H470wl will work with the MacBook Air? The driver is still supported? I'll buy an Air.

    Hello..

    New Mac come with v10.11.x El Capitan pre installed.

    I checked for compatible drivers (software) for pinter them HP > http://support.hp.com/us-en/product/HP-Officejet-H470-Mobile-Printer-series/3434 453/model/3434454/document/c04510394 /

    Fact on the Mac, you would use Software Update to install the drivers according to the HP website.

    Printer and scanner software available for download for your Mac

  • SQLite Manager does not work with the v11. Until make you it easier to go back to older versions or newer versions stop, breaking most of the modules I won't use Firefox

    SQLite Manager does not work with the v11. Until that make it easier to return to older versions or newer versions stop, breaking most of the modules I use FirefoxHow to come back at 10 Firefox?

    Update Firefox 23.0 which published yesterday afternoon.

  • I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    Well, if you need older versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php

    Best regards, G-Cloud.

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • Portege M200 - pen does not work with the screen

    So I bought a pen for M200 and reinstalled the operating system.
    Now I M200 with Windows XP Tablet PC edition, a utility Screen Rotation and usefulness of the stylus button. Now Pen buttons work fine with my new pen, but the screen itself does not work. I mean, the stylus does not work with the screen.

    I have a mouse, and another menu pointing devices in Device Manager and it includes the following submenus:

    HID compatible mouse (I use the random DELL mouse)
    Mouse PS/2 Cimpatible (?)
    --------

    I think there must be something else...
    Please tell me, forum, what drivers should I download to get the pen to work?

    Stand by. Are you using the original image of recovery Toshiba (operating system) or you have installed your version?

  • my photo does not work with the screen saver

    Photos has never worked on Apple TV 4 until today with the 032116 update, but my pictures does not work with the screen saver.

    I dare you to try to tell me how to make it work. Please have a solution, someone.

    Given that Apple isn't really care or help on these forums, it would be great if someone mentioned the steps.

    Thank you

    Can you elaborate on the question?

    These are user forums and this is why you will not see the participation of Apple here

  • HP laserjet p1102w: wireless printer does not work with the new wireless network

    My office moved recently and we have a new wireless network. My printer always wireless worked perfectly on the previous network, but it does not work with the new network. I get a message "the printer is offline. I don't know how to reconfigure so that it detects the new wireless network. Can anyone help? Thank you

    Hi Shlomi,
    Thanks a lot for the info. I'll give it a try today...

Maybe you are looking for

  • How to connect my computer to my TV

    I have a HP touchscreen desk top, model # 320-1120 m. I want to know what do I need to connect it to my Televicion.

  • Windows Update 8.1 - now my LaserJet P1005 printer will not work (AGAIN!)

    I have a HP laserjet P1005 printer, whose yeaterday was work happliy in window 8. I downloaded 8.1 last night and the printer no longer works! With the window of printer status open (through the control panal windows) the details of the document are

  • Sansui HDTV with PC quick entry works after change of pixels.

    Description of the problem: I have a HD of Sasui TV with an entry for PC I have deen usind more than a year. After changing the pixel size of the screen, we loss of image. The monitor works fine with my laptop. The monitor works in cmos and throughou

  • BlackBerry Smartphones JVM 102

    Please my device cannot start, am getting JVM error 102 reset message, and the screen is white. am using the 2 8250 curve, what can I do.

  • Cisco ISE and WLC Access-List Design/scalability

    Hello I have a scenario that wireless clients are authenticated by the ISE and different ACL is applied depending on the rules in the ISE. The problem I have seen is due to the limitation on the Cisco WLC that limit only 64 input access list. As the