Create URL Document for text only string (Not XML)

I want to query a http page that return only a string of text. The response is not formatted with XML. Is it possible to read the value of “parameter1” containing “4321” from the Contact Center Express script?
Response (pure text):
parameter1=4321&parameter2=1234

Getting the response body of an HTTP GET request is as easy as:
Set my_string = URL[http://my-server.local/]
Now, if the response body is formatted as a query string:  key1=value1&key2=value2, you will need to further process your results.
You can feel free to search the web for "java query string" to see if there's code out there you like, otherwise, here's one way to do it in UCCX.
/* This Set step makes the HTTP GET request to the web server and stores the response body in the String */
Set my_string = URL[http://my-server.local/]
/* This Do step takes any size query parameter and turns it into a HashMap */
/* E.g., From this: key1=value1&key2=value2; to this: map[key1] = value1, map[key2] = value2 */
Do {
    String[] pairs = my_string.split("&");
    int i = 0;
    int j = pairs.length;
    for (; i < j; i++) {
        my_map.put(pairs[i].split("=")[0], pairs[i].split("=")[1]);
}/* This If step checks the existance of a specific key, and if it exists, we get the value for use in our script */If (my_map.containsKey("key1"))     True          /* The specified key is in the map, set account_number to its value */          Set account_number = (String) my_map.get("key1");     False          /* The specified key is not in the map */
I hope that makes sense and helps you.  Ask questions if you need more help.  Good luck.
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.

Similar Messages

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • Create delivery  document for line item 5 only manually

    Hi Sap Experts,
    We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
    We will send him mail saying that create delivery  document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
    We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
    What are options we have and how to customize this scenario?
    Kindly suggest.
    Regards,
    Kotli

    Can you be clear in your requirement?
    One requirement is user should not select line items other than the one instructed to them
    The other requirement is delivery split should happen based on item category
    If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit.  If your requirement is second one, then just try in your system and share the outcome how system is functioning.  You will come to know how standard SAP works.
    G. Lakshmipathi

  • Can i search a document for text in column a to return the entire row if column a matches in a separate sheet?

    Can i search multiple sheets in a document for text in column a to return the entire row if column a matches in a
    separate sheet?

    Thank you, Barry. That was helpful, and am hopeful that what I want to do is possible.
    I am creating a spreadsheet that currently has 20 sheets, of which certain sheets have more than one table.  I will be adding more sheets.  I would like to return results for all occurences of the search string.  Preferably into a seperate spreadsheet.  It would be perfect if that seperate sheet updated whenever I update information in the first spreadsheet.  To give an example:
    Sheet:     baskets
         Tables:         straw
                             wire
    Sheet:      barware
         Tables:          glasses
                              decanters
                              coasters
    My tables all have the same titiels:
    Vendor      Description     Cost     Selling Price
    Since I will have upwards of 100 sheets, with multiple tables, and most of my vendors will fit into multiple sheet categories, it would be helpful if I could also see what my order will be from each vendor, not just who I will be ordering each item from.  How would I do that? 
    I hope I conveyed that properly. 
    Thank you in advance for your help,
    Rana

  • Unable to create Accounting document for my Outgoing excise Invoice

    Dear All,
    I am implementing sales from Factory. I am unable to creat accounting document for my Outgoing excise invoice.  When I click the Utilization button, The excise invoice type is selected Deemed.
    1. How to control which Which Excise invoice type should be selected in J1IIN.
    2. For Deemed exports will system not genererate Accounting document for Excise Invoice?
    3. Where to view the excise invoice document types (Like Billing and order types)
    Thanks & Regards

    For deemed export sales,
    -Accounting documents will not get generated. (ref: Excise Acct Determination in CIN settings, you will not find Excise Tranraction type:ARE3 for which G/L account will not be assigned)
    -Excise Invoice type will be automatically triggered based on configuration : Excise Group / Series Group detetermination.
    - For Deemed Exports , only Quantity will get updated in RG1, but not the value. thats the reason, accounting document will not get generated.
    - This excise invoice is created, for - to update the RG1 registry / ARE3 creation.
    hope it clears
    regards,

  • How to create a Document object from a string.

    If I use the following code, the input String cannot contain "\n", otherwise, it generates errors.
    in the following code, inputXMLString is a String object that has xml content.
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(new InputSource(new StringReader(inputXMLString)));          How can I create a Document object from a string with "\n" in the string?
    Thanks.

    If I use the following code, the input String cannot
    contain "\n", otherwise, it generates errors.That's going to be a huge surprise to thousands of people who process XML containing newline characters every day without errors.
    Perhaps your newline characters are in the middle of element names, or something else that causes your XML to be not well-formed. I'm just guessing here, though, because you didn't say what errors you were getting.

  • Creating Intermediate Document for purchase order

    Hi gurus i am working With  ALE Concepts ,could any one tell me how to Create Intermediate Document for purchase order
    regards,
    Peachimuthu.

    hii...
    See to create idoc for purchase order
    u hve to create
    1. Idoc Type
    (here u will create segment and segment type)
    2. Now create message type
    3. Link idoc type to the message type
    4.Check Login System number if not assigned than assign it (generally basis ppl do dis job)
    5. Create RF destination and ports also (according to demand)
    6. Now finally create partner profile and linked with the system to u wnt to send an idoc..
    Regard
    Arpan Maheshwari

  • My iphone 4s voice dictation for text messages is not consistently working. Sometimes it works, other times after the dictation it just gives me a blank space. Anyone else having this problem?

    My iphone 4s voice dictiation for text messages is not consistently working. I've had the phone since Thanksgiving and it always worked perfectly, but the last few weeks it's been hit or miss. Sometimes it works, sometimes it doesn't. Anyone else having this problem? I tried the hard reset but that hasn't fixed it.

    I have the same problem since updating to IOS 8.3. Any app to which I want to send a new link via IMessage does not allow me to select a contact to send the IMessage to. Using a pre-existing thread does not have same problem.

  • RINGTONE NOTIFICATIONS FOR TEXTS ONLY

    I have a new   DROID RAZR HD by Motorola in White and it is fantastic.  I only want ringtone notifications for TEXTS ONLY.  How do I stop ringtone notifications from email and Facebook which I can wait on, but TEXTS I want to answer asap. 

    In the individual applications chose a silent tone for email and Facebook notifications. Then in the text message application choose the tone of your choice.

  • I can no longer see my inbox for texting, only those messages I've sent. How do I get my inbox back?

    I can no longer see my inbox for texting, only those messages I've sent. How do I get my inbox back?

    Tap the Messages button at the top left.

  • How to create matreial document for ten line items (10 documents) by BAPI

    Hi
    how to create matreial document for ten line items (10 documents) by BAPI_goodsmvt_create
    i created but it gives error as "no ites were transferre
    and i need code also.
    thanks in advance

    Prabhu Peram wrote:>
    > >
    Gareth @ Atos Origin UK wrote:
    > > Prabhu,
    > >
    > > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
    > > Gareth.
    >
    >
    >
    > regards
    > Prabhu
    Prabhu.
    I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points.  Therefore you should know better than to simply cut and paste standard SAP help.  If you don't copy and paste for sake of points, what do you do it for?  It serves no purpose other than to fill up the servers here on SDN.  The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves.  Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
    Gareth.

  • Invoice message Preseding document for the invoice is not available.

    Hi .
    when I want make the Invoice process to PO the system show the header Message
    Invoice message Preseding document for the invoice is not available. 
    even the Po recepcion is made into SRM.
    any suggestions
    thanks .

    Hi Oscar
    It seems the PO has GR Based Invoice Verification indicator active. IN that case system will look for the confirmations/GRs for this PO in order for you to post an invoice for this PO.
    Regards
    Virender Singh

  • Error creating accounting document for a credit note

    Hi All,
    I am facing an issue while creating an accounting document for the credit note created.
    The scenario is as follows:
    Created a credit memo --> created credit note --> create accounting document
    While creating accounting document, i'm getting an error message as 'The G/L account XXXXXXXX requires an assignement to CO object'.
    Please let me know why i'm getting this error and how to overcome this issue.
    Thanks,
    Anil Kumar

    While creating accounting document,
      i'm getting an error message
    First of all, I am not clear on your above statement as in normal circumstances, once you generate a credit memo, in bacground an accounting document will also be generated.
    In your case, I believe while saving the credit memo, system throws the error to maintain CO object in which case, do the following:-
    Go to TCode KA02 enter the controlling area, give the G/L acoount No and click on Master data tab.  There  select  "Default Acc Assgmnt" tab  and enter Cost centr and save.
    Next Go to FS00, input the G/L Account and click on Edit Cost Element on top.  There click on Basic Data and for the field CElem category, maintain the required numeric value.  Now select the tab Default Acct Assgnmt and there maintain the required cost center and save.
    thanks
    G. Lakshmipathi

  • How can I create template documents for non-InDesign users to edit the text of later?

    I'm looking to produce a small system for people within my company to edit and print labels as needed that comply with our internal design standards. I would like to use InDesign to produce a few templates for labels that people could then edit one or two fields later on, things like item name and ID number. I'm not averse to producing a small application in XCode that users can start up, enter their data and it saves the printer-ready label sheet to their desktop. I started out using Acrobat Pro, but I'm running into trouble embedding fonts for use in form fields, centering text, and outputting a filled-in pdf for print use, and not a form that submits info to an email or server. If InDesign is the wrong tool for the job of setting up a template like this, please feel free to suggest another route.

    I would direct you to the Acrobat forums, personally. You can enable rich-text formatting of Acrobat form fields from within Acrobat Pro, and also IIRC embed fonts for use in form fields. If you can spec out what you mean by "fine detail that we'd need" then we, or someone over at the Acrobat forums, can tell you whether or not rich text in Acrobat forms will work for you. I suggest this to you because centering text for Acrobat form fields is dead easy, so I suspect you've not investigated the tools available in Acrobat after you've exported the PDF from InDesign.
    Post-export PDF data merge sounds like, I dunno, variable-data printing? which doesn't sound like it would fit your case.

  • Program does not create PCP0 documents for TMS Idocs

    Hi All,
    We have a dialy job that will catch up all payroll/tms idocs that is being received by the system. The program will automatically creates a document in the tcode PCP0 for every idocs that it has gathered both Idocs that have no errors and Idocs that have errors. Would like to ask if you have experienced the cause of this?
    Regards,
    S. T.

    Hi wyo3witt,
    I checked your account and saw that your subscription had been canceled, but that you hadn't been refunded yet. I processed a refund for you (transaction ID 0066152640); you see it in your account in 2-3 days.
    Best,
    Sara

Maybe you are looking for