Using XML in scripts

I looking to read from a doc such as a list of  VIP ANI`s. I`m using a holiday script but I want to know how to write from the beginning  what does the create, get etc steps do. Any pointers
thanks

check this link:  http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_user_guide_list.html
the document: Scripting and Development Series: Volume 2, Editor Step Reference for Cisco Unified CCX and Cisco Unified IP IVR, Release 8.0(1)
That explains all the Editor pallete.
Gabriel

Similar Messages

  • Search informatio​ns about using XML to create scripts (automate tests)

    Hello,
    I search some (A LOT OF...) informations  about using XML in Labview. I know that Labview use a specific schema for XML, but I search examples or tutorials.
    My aim is to control a VI with a script in XML, I would know if I can generate "while loop", modified attributes etc... with my XML file?
    Bye

    Hi leo,
    first for all others: this is related to this thread!
    Then:
    Your script should be handled by LabView in an interpreter-style. So you read in the script and parse the commands. For each command that is supported you have to provide the functionality in a state-machine like handling routine.
    I would stay away from the before mentioned "LabView scripting", atleast for production-type programs as LV-Scripting is not supported by NI (and not easy to handle...)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Building & deploying cubes in OWB (can we do these by using XML scripts)

    Hi Guys,
    Building & deploying cubes in OWB (can we do these by using XML scripts).
    Is it possible in OWB?
    Please help me ASAP..

    Hi, i managed to work out a solution with my web host.
    The problem was that they are using Apache to process all incoming http requests then only forwarding specific requests to tomcat.
    So by entering the port number after the domain ie www.mydomain.com:8080/ the http request went directly to tomcat and was processed correctly.
    Furthermore my web host configured apache so all requests go straight to tomcat so now the port number isn't even required and all is well with the world again!
    except... navigating to different pages in my site does not update the url correctly.
    For example the site loads index.jsp when entering www.mydomain.com/ but when navigating to another page (i.e. photo.jsp) the photo.jsp page loads ok but the url is updated to www.mydomain.com/faces/index.jsp which is not correct. When refreshing the photo.jsp page it reloads the index.jsp page because of the incorrect url.
    any ideas...

  • Catalog manger "search and replace " using xml script

    Hi ,
    we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
    my inputs:
    <?xml version="1.0" encoding="utf-8"?>
    <actions>
    <action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
    </actions>
    please correct me .

    Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
    I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
    This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
    If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
    This might take little bit time but your changes based on proper doc.
    Let me know updates, if helps mark
    Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM

  • How Do You Use XML To Create Image Upload On A WebSite?

    Hello,
    Could some one please help me understand how to create web image gallery and web video gallery using XML? I have found few xml codes that could be used to do this but I am not so sure how to use them. I want my clients to be able upload images and videos with linking thumbnails to Image and or Videos. Do you think the codes I included in this question will help me achive this goal? And do I need to put all in one and in the same directory so it will work? Please help with your idea and tell me how you would use these codes and how you may step-by-step implement the idea your self to your own web site.
    I have also included the instruction I found on the web with the codes.
    Starting with You Tube, API on their video gallery, here are the codes I found,
    Assume you are to use the YouTube, XML code; What will you change here so it will work on your own www.domain.com?
    <% Dim xml, xhr, ns, YouTubeID, TrimmedID, GetJpeg, GetJpeg2, GetJpeg3, thumbnailUrl, xmlList, nodeList, TrimmedThumbnailUrl Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
    xml.async = False
    xml.setProperty "ServerHTTPRequest", True
    xml.Load("http://gdata.youtube.com/feeds/api/users/Shuggy23/favorites?orderby=updated") If xml.parseError.errorCode <> 0 Then
        Response.Write xml.parseError.reason End If Set xmlList = xml.getElementsByTagName("entry") Set nodeList = xml.SelectNodes("//media:thumbnail") For Each xmlItem In xmlList
        YouTubeID = xmlItem.getElementsByTagName("id")(0).Text
        TrimmedID = Replace(YouTubeID, "http://gdata.youtube.com/feeds/api/videos/", "")
        For Each xmlItem2 In nodeList
            thumbnailUrl = xmlItem2.getAttribute("url")
            Response.Write thumbnailUrl & "<br />"
        Next     Next    
    %>
    For the image gallery, the following are the codes I found with your experience do I need to use the entire codes or just some of them that I should use?
    CODE #01Converting Database queries to XML
    Using XML as data sources presumes the existence of XML. Often, it is easier to have the server create the XML from a database on the fly. Below are some scripts for common server models that do such a thing.
    These are starting points. They will need to be customized for your particular scenario.
    All these scripts will export the data from a database table with this structure:
    ID: integer, primary key, autoincrement
    AlbumName: text(255)
    ImagePath: text(255)
    ImageDescription: text(2000)
    UploadDate: datetime
    The output of the manual scripts will look like:
    <?xml version="1.0" encoding="utf-8" ?>
      <images>
         <image>
              <ID>1</ID>
              <album><![CDATA[ Family ]]></album>
              <path><![CDATA[ /family/us.jpg ]]></path>
              <description><![CDATA[ here goes the description ]]></description>
              <date><![CDATA[ 2006-11-20 10:20:00 ]]></date>
         </image>
         <image>
              <ID>2</ID>
              <album><![CDATA[ Work ]]></album>
              <path><![CDATA[ /work/coleagues.jpg ]]></path>
              <description><![CDATA[ here goes the description ]]></description>
              <date><![CDATA[ 2006-11-21 12:34:00 ]]></date>
         </image>
      </images>
    These are all wrapped in CDATA because it is will work with all data types. They can be removed if you know you don't want them.
    Note: If using the column auto-generating versions, ensure that all the column types are text. Some databases have data type options like 'binary', that can't be converted to text. This will cause the script to fail.
    CODE #02ASP Manual: This version loops over a query. Edit the Query and XML node names to match your needs.
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <%
    Dim MM_conn_STRING
    MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
    %>
    <%
    Dim rsImages
    Dim rsImages_cmd
    Dim rsImages_numRows
    ' Query the database and get all the records from the Images table
    Set rsImages_cmd = Server.CreateObject ("ADODB.Command")
    rsImages_cmd.ActiveConnection = MM_conn_STRING
    rsImages_cmd.CommandText = "SELECT ID, AlbumName, ImagePath, ImageDescription, UploadDate FROM images"
    rsImages_cmd.Prepared = true
    Set rsImages = rsImages_cmd.Execute
    ' Send the headers
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %><?xml version="1.0" encoding="utf-8"?>
    <images>
      <% While (NOT rsImages.EOF) %>
         <image>
              <ID><%=(rsImages.Fields.Item("ID").Value)%></ID>
              <album><![CDATA[<%=(rsImages.Fields.Item("AlbumName").Value)%>]]></album>
              <path><![CDATA[<%=(rsImages.Fields.Item("ImagePath").Value)%>]]></path>
              <description><![CDATA[<%=(rsImages.Fields.Item("ImageDescription").Value)%>]]></description>
              <date><![CDATA[<%=(rsImages.Fields.Item("UploadDate").Value)%>]]></date>
         </image>
        <%
           rsImages.MoveNext()
         Wend
    %>
    </images>
    <%
    rsImages.Close()
    Set rsImages = Nothing
    %>
    CODE #03
    Automatic: This version evaluates the query and automatically builds the nodes from the column names.
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <%
    Dim MM_conn_STRING
    MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
    %>
    <%
    Dim rsAll
    Dim rsAll_cmd
    Dim rsAll_numRows
    ' Query the database and get all the records from the Images table
    Set rsAll_cmd = Server.CreateObject ("ADODB.Command")
    rsAll_cmd.ActiveConnection = MM_conn_STRING
    rsAll_cmd.CommandText = "SELECT * FROM Images"
    rsAll_cmd.Prepared = true
    Set rsAll = rsAll_cmd.Execute
    ' Send the headers
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %><?xml version="1.0" encoding="utf-8"?>
    <root>
      <% While (NOT rsAll.EOF) %>
         <row>
             <%
                 For each field in rsAll.Fields
                 column = field.name
             %>
              <<%=column%>><![CDATA[<%=(rsAll.Fields.Item(column).Value)%>]]></<%=column%>>
              <%
                 Next
              %>
         </row>
        <%
           rsAll.MoveNext()
         Wend
    %>
    </root>
    <%
    rsAll.Close()
    Set rsAll = Nothing
    %>

    OK, I understand - thanks for that.
    I thought the whole process was supposed to be a bit more seemless? Having to upload/download documents and manually keep them in sync will leave a lot of room for errors.
    It's kinda painful the way iOS doesn't have folders. It makes things incompatible with the Mac and means you can't group files from multiple apps into a single project - who organises their digital life by the apps they use?
    I think I'll recommend they use their iPad only.
    Thanks for that.
    Cheers
    Ben

  • Using XML-based object structures to represent data in code/at run-time

    Hello,
    I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
    Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
    My question, and I use this example only to try and illustrate it, is:
    when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
    This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
    Thank you for any advice.
    Greg

    Hi Christian,
    Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
    For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
    One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
    Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
    Thank you for any advice
    Greg

  • How to load images using xml in flash

    Hi
    im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3

    You'll find a tutorial for what you are after here:
    http://www.gotoandlearn.com/play?id=22

  • Using XML with special characters - not rendering

    Hello,
    I am using xml to populate the content of a Flash file, but
    we have localized content for different global regions. So, when
    the content contains special characters like "é" they do not
    show up at all in the flash. I tried using &eacute; but that
    just renders the actual code...
    Is there a workaround for this?
    Thanks

    Hi Rothrock, thanks for your reply...
    Flash Version: 8, but the swf was published to be 7+
    compatible.
    The font is Meta Normal, it is embedded, and it does include
    the character.
    I am retrieving the xml by using this script in the html
    page:
    <script type="text/javascript">
    // <![CDATA[
    var fo = new FlashObject("/templates/flash/index.swf" +
    cKiller, "ad-flash", "710", "351", "7", "#FFFFFF");
    fo.addVariable("xmlURL", "/flash_content/products.xml");
    fo.write("ad");
    // ]]>
    </script>
    I am creating the XML using Macromedia Homesite, with the
    encoding declaration <?xml version="1.0" encoding="UTF-8" ?>
    The XML is being read fine, only the special characters don't
    show up... so it will cut off the word, or just have an empty space
    where the character should be.
    I am not sure how to specifiy Extended Latin charset in the
    document... could you tell me how to do that?
    Thanks

  • Generating a XML using XML Schema

    Hi,
    I have a requirement where I need to generate a XML which should follow XML Schema. If XML schema changes, i should still be able to generate XML file. Any sample code or idea will help me.

    http://java.sun.com/webservices/jaxb/users-guide/jaxb-using.html
    This tutorial is a good place to start. ideally you will use the xjc.bat file present in
    jwsdp-2.0 (thats whaty i use) to generate a package full of classes that corresponds to your
    schema.
    Use ANT-build script to generate this package then you will do some marshalling
    followed by validating against a DTD, and unmarshalling - to do get java objects out of XML

  • Splitting columns using xml path

    Please see my script below,
    This is one of the msdn user request but as he is newbie unable to put ddl and dmls.. but all he wants is doing pivot on values.. but I'm trying the same using dynamic pivot which I'm not able to achieve. Help is appreciated.
    Table Script:
    create table #temp(
    ProjectNO int,projectname varchar(10),client varchar(10),programmers varchar(10));
    declare @cols AS nvarchar(MAX)
    ,@QUERY AS NVARCHAR(MAX);
    Insert into #temp
    Select 01 , 'ave' , 'zica' , 'dee'
    UNION
    Select 01, 'ave', 'zica ', 'law'
    UNION
    Select 01 ,'ave', 'zica', 'amy'
    UNION
    Select 01 , 'ave' , 'rowan' , 'dee'
    UNION
    Select 01 ,'ave' ,'rowan' ,'law'
    UNION
    Select 01 ,'ave' ,'rowan' ,'amy'
    Select * from #temp
    Question 1: Desired output:
    ProjectNO. Prjtname Clt1 Clt2 Prog1 Prog2 Prog3
    01 ave zica rowan dee law amy
    Question 2: Query:
    Select distinct Replace((select distinct convert(char(8),client)
    from #temp
    FOR XML path('')) ,'";;#;;"',' ') as clients
    FROM #temp
    GROUP BY ProjectNO
    In the above query I'm doing xml path and I'm getting result in single row like
    clients 
    rowan    zica
    Instead can I get result like below using xml path?
    client1 client2
    rowan  zica
    - please mark correct answers

    For this particular problem we don't want to use XML path. I already answered in the other thread with a link to this article
    T-SQL:
    Dynamic Pivot on Multiple Columns
    Let me know if using that article code you will be able to achieve the goal. It's rather simple, actually, I can write up the mock up idea.
    declare @MaxClients int, @MaxProgrammers int
    select @MaxClients = max(ClientsCount) from (select ProjectNo, count(distinc(Client)) as ClientsCount from #Temp GROUP BY ProjectNo) X
    select @MaxProgrammers = max(ProgrammersCount) from (select ProjectNo, count(distinc(Programmer)) as ProgrammersCount from #Temp GROUP BY ProjectNo) X
    declare @SQL nvarchar(max), @Loop int
    set @Loop = 1
    Actually, that't the beginning of the idea and you should be able to figure this out till completion based on the article I pointed out. We would need to use 2 dense_rank functions.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • SetPixel in flash using xml....?

    Hi ,
    I have tried this in flash i got the result but now i am trying to change the color of the bitmap using setpixel values using xml.
    First i am creating a new bitmap and then i have a button when i click on the button the pixel values or the color of the bitmap should be changed.
    script for creating a bitmap:
    import flash.display.BitmapData;
    var myBitmapData:BitmapData = new BitmapData(100, 80, false, 0x00CCCCFF);
    var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
    mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
    Script on the button:
    on (release) {
        for (var x:Number = 0; x<50; x++) {
            for (var y:Number = 0; y<10; y++) {
                myBitmapData.setPixel32(x, y, 0x11FF00);
            for (var y:Number = 11; y<20; y++) {
                myBitmapData.setPixel32(x, y, 0xCCFF00);
            for (var y:Number = 21; y<50; y++) {
                myBitmapData.setPixel32(x, y, 0x11FFEE);
    Now i just want to change the color of the bitmap using setpixel using xml and calling the xml into flash.

    Hi kglad,
    Well i am confused, I am searching that how would be the attributes for setpixel in xml file?How can we assign setpixels from xml.
    for example when we load a dynamic data into flash which has three dynamic texts "name_txt,count_txt,type_txt" and when we click on the button "rb_btn" xml data will be loaded into the three dynamic text fields.  So below is my code in xml and in flash.
    script in xml:
    <?xml version="1.0" encoding="utf-8"?>
    <Books>
    <Book name="Harry Potter" count="1" type="Asian"/>
    </Books>
    script on first frame:
    import flash.display.BitmapData;
    var myBitmapData:BitmapData = new BitmapData(100, 80, false, 0x00CCCCFF);
    var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
    mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
    var myXML:XML = new XML();
    myXML.ignoreWhite = true;
    rb_btn.onRelease = function(success) {
            var bookName = myXML.firstChild.childNodes[0].attributes.name;
            var bookCount = myXML.firstChild.childNodes[0].attributes.count;
            var bookType = myXML.firstChild.childNodes[0].attributes.type;
            name_txt.text = bookName;
            count_txt.text = bookCount;
            type_txt.text = bookType;
    myXML.load("colors.xml");
    So we are assigning a name in xml called "name="Harry Potter" "we are calling it flash as
    "var bookName = myXML.firstChild.childNodes[0].attributes.name;" And my question is how or what is the process to write a code for setPixel in xml and calling  it into flash.

  • Insert a trademark symblol to my swf dynamicly using XML

    hello there,
    i am trying to insert a trademark symblol to my swf dynamicly
    using XML,
    i tried every thing i could "caved the xml in every format
    known to man kind, wrote some AS script to replace thin join, i
    tried to hard code the symble" but nothing worked.
    i am running flash8.
    help is needed plz.
    today is the DEAD LINE.
    plz.

    Okay, test files are up in the following directory:
    www.saffronthread.com/test
    You can guess which ones are for you. I didn't deal with the
    whole IE stupidness, so you my need to click on the page. But I've
    got several different text fields some runtime some author
    environment and sample text. Works for me on Mac and on the PC I
    checked. Let me know what you find out.
    As for System.useCodePage it is very seldom an actual
    solution to the problem. It is a solution for when you want to be
    sure that the user's Flash Plugin uses the computer's code page for
    text rendering. Read the help entry for it and you will see that it
    is not a solution for making sure that the most people possible
    will correctly receive my text. It is more a solution for, I want
    to make sure that those with Chinese operating systems are able to
    correctly see the Chinese text I have encode with my special
    encoding.
    Most questions that get a "Oh, you must use
    System.useCodePage answer" are more like, "I want to make sure that
    everybody on every type of system can see my special characters."
    The answer for that tends toward proper use of UTF-8 and that is my
    guess for your problem. That your XML file is not being saved as
    UTF-8. If System.useCodePage is helping you that tells me that your
    XML editor is saving to some odd (maybe very popular, but not
    UTF-8) encoding.

  • Why use Xml Db?

    Hi ,
    1- what is the main benefit for using xml db , what does it offer that regular db doesn't ?
    2- what do i have to learn to know this type of db?
    Thanks.....

    1) There is a simple rule. If you have to handle XML use XML(DB).
    Oracle XMLDB functionality is a free / core part of the Oracle database (install it, if it isn't via the main script $ORACLE_HOME\rdbms\catqm.sql)
    A "regular" db is 99% of the time needed to handle relational data. See Wikipedia for differences between relational, xml, or, lets say, object orientated databases.
    2) Start reading. ;-)
    Start reading the Oracle XMLDB Development Guide (http://www.oracle.com/pls/db111/to_toc?pathname=appdev.111/b28369/toc.htm) - Chapter 1 and 2 are a good way to start.

  • Dynamically populating more than one field using xml data binding

    Hi All,<br /><br />I have the following code that works fine to dynaically populate a<br />second drop-down list2 from a choice in drop-down list1 using xml data<br />biding.<br /><br />var tempString = "xfa.record." + this.boundItem(xfa.event.newText);<br />var oItems = xfa.resolveNode(tempString);<br />var nItemsLength = oItems.nodes.length;<br /><br />myinfo.page1.state.clearItems();<br />myinfo.page1.state.rawValue = null;<br /><br />for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)<br />{<br />myinfo.page1.state.addItem(oItems.nodes.item(nItemCount).value);<br />}<br /><br />Here is my xml file<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><myinfo><br /><country/><br /><countries><br /><item uiname="United States" token="US"/><br /><item uiname="South Africa" token="SA"/><br /><item uiname="Australia" token="AU"/><br /></countries><br /><state/><br /><AU><br /><item>Australian Capital Territory</item><br /><item>New South Wales</item><br /><item>Northern Territory</item><br /><item>Queensland</item><br /><item>South Australia</item><br /><item>Tasmania</item><br /><item>Victoria</item><br /><item>Western Australia</item><br /></AU><br /><US><br /><item>California</item><br /><item>New York</item><br /><item>Texas</item><br /><item>Michigan</item><br /><item>North Carolina</item><br /><item>South Carolina</item><br /></US><br /><SA><br /><item>Eastern Cape</item><br /><item>Free State</item><br /><item>Gauteng</item><br /><item>KwaZulu-Natal</item><br /><item>Limpopo</item><br /><item>Mpumalanga</item><br /><item>Northern Cape</item><br /><item>North-West</item><br /><item>Western Cape</item><br /></SA><br /></myinfo><br /><br />I have two questions:<br /><br />1) I want to be able to structure my xml in a way that I can populate<br />a third drop-down list3 from a choice in list2. I need to know how to<br />to include the different capital cities of the states in my xml data<br />so that they can get populated in list3 from a selection in list2;<br /><br />2) And be able to script the third list3 to get dynamically populated<br />from a choice in list2.<br /><br />Thanks in advance for your help.

    I would like to ask someone for help.
    I have an XML file a result of the XSLT transformation. A schema was created based on this XML and this schema is bound to a form as a data source.  When I preview my form using a Preview tab with transformed XML as a Data File in LiveCycle Designer 8.1, I can see only the first form data across 3 Text fields on the form. The rest of the forms are not getting displayed. What am I doing wrong?
    Here is the part of the XML file Im trying to display on the form:
        FORM 1
        FORM 1 DESCRIPTION
        $5000
        FORM 2
        FORM 2 DESCRIPTION
        $7000
        FORM 3
        FORM 3 DESCRIPTION
        $4000
    Part of the schema that was created based on the XML file from above:
    Thank you.

  • How to create multiple ifs users using XML

    I used the following xml file to create a ifs user. But I don't know how to create multiple users using XML. Thanks for your help.
    <SimpleUser>
    <UserName>bill</UserName>
    <Password>bill</Password>
    <DirectoryUserDescription>Bill</DirectoryUserDescription>
    </SimpleUser>

    There are many good resources for Powershell tutorials. The MS help page for each cmdlet is usually a good place to start.
    The suggested answer is very good and easy to modify to your needs. The linked article provides good detail on creating your csv file. If you look at their sample csv, you will see the column for LicenseAgreement and UsageLocation. You can change the script
    to use the values from the csv instead of the same value for every user like so:
    -LicenseAssignment $_.LicenseAgreement -UsageLocation $_UsageLocation
    Basically, $_.<valuename> is the filled in by the value under the heading <valuename> in your csv file for the current user. 
    As for what msdivision, replace this with the correct domain name value for your organization. You can get the values for license SKUs from existing users by using the following:
    Connect-MsolService
    Get-MsolUser -UserPrincipalName <userprincipalname> |select Licenses

Maybe you are looking for

  • Battery Life on two 3G iPhones has dropped dramatically since 3.1 update...

    Hello all! I couldn't find a thread with just this problem, so I thought I would start it. My wife and I both have iPhone 3G 16GB phones and using the same apps as before, our battery life has dropped to less than a day for both of us. I would estima

  • Rounding up doubles

    Just wondering if anyone knows how to round up a double so that for instance 100.232323 can be up to 100. This is due to trying to convert a price in pence to a meaningful price. Also is there anyway to represent a figure in pounds and pence??? Regar

  • Upload Data Periodically using FV75 based on Customer No

    Hi Guys, I'm very new to SAP. Here i'm facing one problem that i've to upload Data from File to SAP for FV75 transaction. I tried Recording but it's not possible. Then i tried BAPI like MRM_PARKED_INVOICE_ACCDATA,  AC_DOCUMENT_PARKING_NO_UPDATE, and

  • Photoshop CC recovery never works

    Hey everyone, I've been having this issue for a while, but I'm just now trying to figure out what the heck is going on. The problem is in the title, the recovery function never works in Photoshop CC for me, no matter what I do or what auto-save inter

  • [svn:fx-trunk] 5113: Merge 3.x revisions 5042,5072-5073,5090-5091 - trunk

    Revision: 5113 Author: [email protected] Date: 2009-02-27 12:48:28 -0800 (Fri, 27 Feb 2009) Log Message: Merge 3.x revisions 5042,5072-5073,5090-5091 -> trunk This includes the latest released player 10.0.22.87 Modified Paths: flex/sdk/trunk/framewor