Conditional Lookups

Hello.
I'm writing a mapping to load a fact table, but am having some difficulty. My staging table contains data that indicates whether an entity is a customer or a vendor (entity number, entity type). I need to retrieve information from a customer dimension if the entity is a customer and a vendor dimension if the entity is a vendor.
For example, if entity #1 has type C, then lookup in the customer dimension. If entity #2 has type V, then lookup in the vendor dimension.
Can anyone provide guidance on how I'm might accomplish this? I know I could write a transformation to do this, but am looking to see if it can be done with other operators...maybe a filter/key lookup combo, or with a case statement somehow?
Thanks and Happy New Year!
Dan

You mentioned "maybe a filter/key lookup combo, or with a case statement somehow". Don't see why not with either of these.
You could certainly use a filter to branch into two different paths, or an expression operator with two separate case statements branching into two different paths again. Performance will depend to a large degree on correct indexing.
If you choose to do a lookup, one thing I experienced with our installation when doing lookups on strings is that they have to be the same length. This is probably a bug specific to our release and patch levels.
Thanks.

Similar Messages

  • Conditional Lookups in MDM?

    I'm an MDM newbie, just learning my way around, trying to figure out how I will be able to make MDM work with the data landscape we have around here.
    My question today is, is it possible to have what I will call a "conditional" lookup for a field?  That is to say, is it possible to have a field's choices be dependent on some other field?  Can a field's lookup return not ALL the records in the lookup table, but some subset of them?
    Say I have product records, and the values possible for a particular field on each record should be limited depending on product-type.
    (For reasons I brought up in my post yesterday, a product-type taxonomy with attributes won't serve my purpose.)

    Hello Steve,
    As per your requirement, you can use the Qualified look up table.
    I hope this will fullfil your requirement.
    Just refer this thread related to Qualified lookup table for extracting the record from it.
    Re: Accessing Non Qualifier Lookup flat field of an Qualified LookUp table
    TNR,
    Saurabh...

  • How to get all Conditions in Advanced Search

    Hi All,
    I'm implementing the AdvancedSearch using Query bean.
    I have defined the Criteria row with one Item of Varchar2 Datatype.
    On Advance Search the poplist shows only two conditions (Lookup type=ICX_CONDITIONS) of "is" and "is not". How to get the complete list of conditions ("contains", "ends with", "starts with"....)
    Thanks,
    Satya

    What is the item type for which you get only the two conditions.
    If the item type is OAMessageChoiceBean or OAMessageLovInputBean the conditon poplist will contain only those two options. And if the datatype is Boolean the conditon poplist will again contain only those two options.

  • Configuring Condition Types - Pricing Date

    Greetings to all,
    we are trying to change the way the price conditions are found by using a different date determination within the Condition Type. i am looking at the screen "change view condition type" for a specific condition type (doesn't matter which) and specifically looking at the section "control data 2" and field "Pricing Date". it has a number of choices within it, including 1) blank - standard 2) A - date of service 3) B - price date, and so on. i have determined that this field v_t685a-kprdt (pricing date) has a domain KPRDT and the options for this field are hard coded within the domain (value range).
    my question, is there a way to configure this field so that i can use another date to key on the determination of the price condition?
    my concern is not with the standard SD or FI price condition lookup, but with a bolt on (automotive). it uses this funcitonality and the document has other dates, some customer defined.
    please and thank you.

    Hi Erik
    One option is to use the MV45AFZZ and in the form for KOMK
    pass what ever date you want to KOMK-PRSDT.
    Please try and this and let me know if this works.
    Thanks
    PG

  • Parallel processing inside EJB

    Hello!
    I have an EJB (Stateless session) that needs to call three other EJBs to perform some actions.
    Right now, the EJB calls the others performing action A. If A is successfull performs B and then C.
    I would like to perform A. If A is successfull, perform B and C simultaneously.
    If this was a normal Java program, I would execute class A and then launch as threads B and C, getting notifications on complete.
    I read that threading shouldn't be used in EJB's. So, is it possible to call two beans simultaneously from another bean?
    For those thinking JMS, I also thought about that but would like to do it "the old Java way".
    Pointers to docs, comments, etc are appreciated. Even flames! ;)
    Thank you for your time!
    HappyGuy

    Why can't u incorporate the 3 other actions in the same EJB. What holds U ?
    And If it is very much required, Then go ahead Have the other 3 Actions to return boolean.
    Let The X Bean on condition Lookup the Bean A and Bean A's Method.
    Since return type is boolean,
    Decide to invoke B and even when B return's true Then invoke C.
    Even tho u can invoke 2 Bean ( B & C) simultaneously, the control will go the first ( B or C) and then ithe control will follow down.
    Its always better to have check for the boolean value and then decide,
    Solution Ok ,
    Kindly Let Me Know.

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Lookup conditions in DB lookup Expression

    Hi,
    Please let me know how to define lookUp conditions in DB lookup Expression.
    I'm working on Netweaver ABAP stack 7.0
    Thank you,
    Anjani.
    Edited by: Anjani P on Dec 27, 2009 3:13 PM

    Hello Anjani,
    I assume you are using NetWeaver 7.00 not Netweaver7.01.  In Netweaver7.00  BRFplus has no UI available so you have to work with the APIs only. In IF_FDT_DB_LOOKUP interface there is a method SET_FIELD_CONDITIONS which has a field condition table as its input.  You may set the lookup condions using this method.
    If you are using NetWeaver 7.01 or 7.02 you may use the UI for the same.

  • Lookup Conditions

    Hello.
    I have a business requirement where I need to do currency conversions in ETL. We are a global organization. I'm working with two tables. One contains general ledger journal entry line data. This data has amounts recorded in one of 50+ local currencies. I have a second table that contains all historical currency conversion rates to be used to convert any local currency to one of three base currencies. The results should then be loaded into a fact table.
    For example, Table A has a journal entry line recorded in Yen. I need to use the currency conversion rate table, Table B, to convert that to US Dollars, Danish Kroner, and Indian Rupee. Those three conversions are each then a column in my fact table. The journal entry has an effective date which represents the date the entry was posted and therefore the date to be used for currency conversion. Furthermore, each row in the currency conversion table has a start and end date that indicates the time period that the currency conversion was valid. These start and end dates are not necessarily the same, so I need to lookup the conversion based on the following:
    Table_A.Local_Currency_Type = Table_B.Local_Currency_Type
    and
    Table_A.Effective_Date >= Table_B.Start_Date
    and
    Table_A.Effective Date <= Table_B.End_Date
    The results should return the Base Currency Type and the conversion rate from local to one of the three base currencies, one each for USD, DKK and INR base currencies. So for every one row of input 3 rows should be found.
    I'm using OWB 10.2.0.2.8 and see that I can't edit the lookup condition in the mapping editor.
    So, two questions: 1. Does a newer version of OWB allow for editing the lookup condition? 2. Can any of you provide guidance on alternative solutions for this issue?
    Thanks for your time.

    Hi, Scott.
    The only reason I considered the lookup was that I hadn't fully thought my design through. After a few more hours (ugh) I was able to redesign with a JOINER.
    Thanks for the feedback.
    Dan

  • Losing Lookup Condition after import

    For transferring a project from development to test (and later production) we're using metadata export/import.
    After import into the 'test repository' we noticed that in a mapping the Lookup Condition of several Key Lookups are missing, in fact these Key Lookups are all using the same Table definition.
    Has anyone experienced this problem?
    And, of course, is there a cure?
    We're using
    Warehouse Builder 9.0.3.37.0
    Repository 9.0.3.0.1
    Oracle db. 9.2.0.2.1
    Regards,
    Peter van Leeuwen

    We resolved this issue.
    The problem occurs when table names are long. The original table names was 27 characters long. In a mapping we have 3 lookups all based on the same table.
    We lost the lookup condition in 2 cases, that is project export/import (from Development to Test) and copy mapping.
    We solved the problem by shortening the table name.
    Peter

  • Lookup multiple conditions

    I have been browsing around for a bit and still can't seem to find an answer. I am trying to lookup a using two conditions if possible.
    In the example below I am trying to lookup column C in table 1 from table two to provides results shown below. Any thoughts?
    Table 1
    A B C
    PHL 6/1/10 25
    NYC 7/1/10 35
    Table 2
    Date PHL NYC
    6/1/10 25
    7/1/10 35

    jkohler wrote:
    I have been browsing around for a bit and still can't seem to find an answer. I am trying to lookup a using two conditions if possible.
    In the example below I am trying to lookup column C in table 1 from table two to provides results shown below. Any thoughts?
    Table 1
    A              B             C
    PHL____6/1/10__25
    NYC____7/1/10__35
    Table 2
    Date________PHL___ NYC
    6/1/10____25
    7/1/10_____________35
    Hi J,
    Parsing on the forum removes extra spaces (and other non-visible characters), making it difficult to show a table. I've used underscores to push data over to the 'column' you want it in. (The column labels, A, B and C are separated with sticky spaces—option-space to do the same thing.)
    LOOKUP doesn't seem necessary here. Enter the Date, PHL and NYC labels into the header row on Table 2, then these formulas in Table 2.
    A2: =Table 1::B
    B2: =IF(Table 1::$A=B$1,Table 1::$C,"") (Click Accept, then drag the small round handle at the lower right of cell B2 to the right to fill the formula into cells to the right. The resulting formula in C2 will be the one below.
    C2: =IF(Table 1::$A=C$1,Table 1::$C,"")
    Select cells A2:C2 and drag the handle down to fill all rows on Table 2.
    NOTE: Numbers will replace the cell/column references in the formulas with the names of those columns.
    Regards,
    Barry

  • Comparing lookup columns in conditional formatting

    I have a column of type number in one table, and in that same table a lookup column of type number.  Do I have to do any special formatting or manipulation to be sure they properly compare so I can do conditional formatting? 
    First part of clause is in the main table; second part is the lookup
    This is the clause in question clause:
    $thisNode/@Due_x0020_Cycles <= @Registration_x003a_Cycles_x0020_
    (This of course, doesn't work as I expect it to)

    This might be because the Lookup is actually returning the index value rather than the actual value that displays. You may have to take the Index value from the lookup and use that to get the value from the original list.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • List of Like condition from one Lookup table.

    Hi,
    I have 2 tables.
    SourceData table and LookUp table .
    SourceData table has one column called SName
    SName
    Jayesh  Krishnan
    Karthik Kumar
    Liju    Sharma
    Kumar Jayesh
    Kumar Pradeep
    Lookup table has one column called LName(Lookup table is the one which is required to look up with "like" condition)
    LNamne
    Kumar%
    %Krishnan
    I need to query SourceDate table with the like condition mentioned in lookup table.
    So my result based on above two tables should look like
    Jayesh  Krishnan
    Kumar Jayesh
    Kumar Pradeep
    Please help me in this regard.

    Try this,
    create table sourcetable (SName varchar(200))
    insert into sourcetable values('Jayesh Krishnan')
    insert into sourcetable values('Karthik Kumar')
    insert into sourcetable values('Liju Sharma')
    insert into sourcetable values('Kumar Jayesh')
    insert into sourcetable values('Kumar Pradeep')
    create table lookuptable (LName varchar(200))
    insert into lookuptable values('Kumar%')
    insert into lookuptable values('%Krishnan')
    go
    declare @sql nvarchar(max)
    declare @temp table ([where] nvarchar(max))
    declare @where nvarchar(max)
    set @sql = 'SELECT Substring(COLS,4, LEN(COLS)) FROM (
    SELECT Stuff((SELECT '' OR SName like '''''' + LName + ''''''''
    FROM lookuptable
    FOR xml path('''')), 1, 1, '''') COLS
    ) X'
    insert into @temp exec sp_executesql @sql
    select @where = [where] from @temp
    set @sql = 'SELECT * FROM sourcetable WHERE ' + @where
    exec sp_executesql @sql
    go
    drop table sourcetable
    drop table lookuptable
    Regards, RSingh

  • LookUp to the same table with multiple conditions

    Hi,
    I nead to do a lookup to the same table in the flow but with diffrent quieres, each query contains it's own 'where'.
    Can I do it somehow in one look up or do I have to use a few ?
    select a from table where a=1
    select b from table where c=3
    Thanks

    Hi,
      Using multiple lookups will be a cleaner approach. If you are using multiple lookups on the same table consider using Cache transform. Refer the below link for details on Cache transform
    Lookup and Cache Transforms in SQL Server Integration Services
    Alternatively if you want to go ahead with single look up , you may have to modify the SQL statement in the Lookup accordingly to return the proper value. In you case it may be
    select a,b from table where a=1 or c=3
    Note : Consider the above as a pseudo code. This needs to be tested and applied based on your requirement.
    Best Regards Sorna

  • Why is the LookUp object in the Flow Task of my SSIS package going red (and not working) ? Sql Server 2008 R2

    I have been working with the Sql Server 2008 R2 SSIS Tutorial at
    https://msdn.microsoft.com/en-us/library/ms170419(v=sql.105).aspx
    --specifically -- Lesson 1.  I have been having some problems with this lesson where the source data from the samples download doesn’t exactly match the data described in the tutorial, and the tables in the tutorial are different from what
    is contained in AdventureWorksDW (tutorial refers to DimTime – AdventureWorksDW contains DimDate and no DimTime).  
    So, after futzing in BI with this tutorial  so that I can at least get it to run in Debug – it errors out on the 2<sup>nd</sup> LookUp object.
    Rather than looking for a fix to the problem(s) that I am having between the tutorial and the stuff I downloaded in the samples --
     I want “Adapt” the tutorial so I can use the stuff I downloaded and hopefully learn how to use SSIS with the elements (source data and tables) that are present on my workstation. 
    Here is a description of what is going on for me – which I really don’t understand what is going on in BI – based on the images below – like what columns (from what tables) are they associating to in the OleDB Destination? 
    Note:  the sql in the LookUps here is the sql that I copied from the tutorial. 
    I probably need to modify these sql statements – so -- the help I am requesting is to make the required modifications/changes
     so that I can adapt this tutorial with the stuff that’s on my workstation.
    I downloaded the samples and the AdventureWorksDW mdf for Sql Server 2008 R2. 
    It turns out that in the tutorial it wants me to select a DimTime table, but the version of the AdventureWorksDW db does not contain a DimTime table. 
    Instead, it contains a DimDate table.  So I tried adapting DimDate for the tutorial. 
    Additionally, the sample data file -- SampleCurrencyData.txt -- has slightly different data types than the types described in the tutorial, so I selected data types for the columns in the datasource text file that would work in BI would to
    connect column from source data file to the table.
    After finishing all the steps for Lesson 1 -- when I tried debugging the package – and it error'd out on  the 2<sup>nd</sup> Lookup object whichwent red.
      I edited the lookups and the sample Ole DB Destination to "ignore on fail” and I did all
     green but the FactCurrencyRate table is not being populated -- as described in the tutorial, so I reset the on error back to default (Fail on error option).   And based on this tutorial -- I believe FactCurrencyRate
    table is the table which is supposed to be populated with the data from SampleCurrencyData.txt?
    In the sample data file that downloaded with all the samples  I removed all the data from the text file except for 6 rows, so instead of the original 1100 or so rows, I have only 6 rows of data in the source data file (just to keep things
    simple for debugging for now).  I did not modify the data itself. 
    Here is what the (raw) data contained in SampleCurrencyData.txt looks like (from the samples that I downloaded from codeplex) – it’s supposed to be 4 columns of data – float, nvarchar, datetime, float:
    0.281690141       USD      
    6/26/2004 0:00  0.281713948
    0.281690141       USD      
    6/27/2004 0:00  0.281642539
    0.281690141       USD      
    6/28/2004 0:00  0.281761573
    0.283286119       USD      
    6/29/2004 0:00  0.283221933
    0.283286119       USD      
    6/30/2004 0:00  0.283358363
    0.281690141       USD      
    7/1/2004 0:00     0.281682206
    Below are images of my BI Layout for Lesson 1 from this tutorial -- the FlatFile and configurations for On Fail Error, A Flow task, the 2 LookUps (CurrencyKey and DataKey), the OleDB Destination configuration, the Design view of the associated tables and
    the Debug Run of Lesson 1, and the following error messages. My goal is to figure out what is going on in BI for this tutorial.
    Error: 0xC020901E at Extract Sample Currency Data, Lookup Datakey [51]: Row yielded no match during lookup.
    Error: 0xC0209029 at Extract Sample Currency Data, Lookup Datakey [51]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. 
    The "component "Lookup Datakey" (51)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Match Output" (53)" specifies failure on error. An error occurred on the specified
    object of the specified component.  There may be error messages posted before this with more information about the failure.
    Error: 0xC0047022 at Extract Sample Currency Data, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. 
    The ProcessInput method on component "Lookup Datakey" (51) failed with error code 0xC0209029 while processing input "Lookup Input" (52). The identified component returned an error from the ProcessInput method. The error is specific
    to the component, but the error is fatal and will cause the Data Flow task to stop running. 
    There may be error messages posted before this with more information about the failure.
    --this is the flat file
     -- SampleCurrencyData.txt (which only contains 6 data rows for my purposes)
    --and here is where I assign the data types for the colums of -- SampleCurrencyData.txt
    This is the first LookUp Object -- LookUp Currency Key – The DB contains DimCurrency table. 
    I copied the sql from the tutorial here.
    I actually have a DimCurrency table in my copy of AdventureWorksDW. 
    Here’s the design view of DimCurrency and a sample of the data contained in DimCurrency and the On Fail configuration
    I actually have a DimCurrency table in my copy of AdventureWorksDW. 
    Here’s the design view of DimCurrency and a sample of the data contained in DimCurrency and the On Fail configuration
    --Here is what the data looks like in the DimCurrency table
    --2<sup>nd</sup> LookUp object  -- LookUp Data Key – this is the LookUp
     where BI errors out on Debug
    --it appears this lookup is referencing the DimDate table – which I DO have in the DB.
    --I can’t find the following sql in the tutorial, so I suppose BI added the sql (did it?)
    --Here's how I configured for On Error
    --Here is DimDate table in Design view
    --Here is a sample of the original data contained in DimData
    OleDB Destination
    --Here is where I get lost a bit – what is going on in the destination here?
    --Here's my On Error configuraino
    --and here is the FactCurrencyRate table
    --and here is a sample of the data contained in FactCurrencyRate
    Rich P

    Thank you for your reply.  I changed the error handling as you suggested on the 2nd lookup to redirect to unmatched rows.  Now I get all greet.  I don't have the conditional split as in your diagram.  But also, nothing appears to have
    happened in the DB.  Aren't the rows in my text file supposed to be added to the FactCurrencyRate table?
    How do I get a conditional split?
    Rich P
    OK, sorry I forgot to reply you back.
    Conditional Split was just dummy task. Ignore it.
    Manipulate the data in such way that you get matching records.
    Inside Source, for first 2 rows I put the dates which are available in DimDate.
    1.00010001,ARS,7/1/2005 0:00,0.99960016
    1.00010001,ARS,2/5/2006 0:00,1.001001001
    1.00020004,ARS,9/5/2001 0:00,0.99990001
    1.00020004,ARS,9/6/2001 0:00,1.00040016
    1.00050025,ARS,9/7/2001 0:00,0.99990001
    1.00050025,ARS,9/8/2001 0:00,1.001001001
    Then in OLE DB Destination, I loaded the rows to TestFactTable.
    (Now, you don't even need NO MATCH OUTPUT as there are matching records here)
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • [Forum FAQ] SharePoint 2013: Extracting values from a multi-value enabled lookup column and merge values to a multi-value enabled column

    For some business requirements, users want to extract values from a multi-value enabled lookup column
    and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
    add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
    How to extract values from a multi-value enabled lookup column and add items to another list based
    on each separate value using SharePoint Designer 2013.
    Important actions: Loop Shape; Utility Actions
    Three scenarios
    Things to note
    Steps to create Workflow
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013.
    Important actions: Call HTTP Web Service; Build Dictionary
    Things to note
    Steps to create Workflow
    How to
    extract values from a multi-value enabled lookup column and
    add items to another list based on each separate value using SharePoint Designer 2013.
    For example, they have three lists as below. They want to
    extract values from the Destinations column
    in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
    Lookup1:
    Title (Single line of text)
    Lookup2:
    Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Important action
    1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
    Loops must also conform to the following rules:
    Loops must be within a stage, and stages cannot be within a loop.
    Steps may be within a loop.
    Loops may have only one entry and one exit point.
    2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
    Three scenarios
    We need to loop through the string returned from the look up column and look for commas. There are three
    scenarios:
    1.  No comma but string is non-empty so there is only one country.
    2.  At least one comma so there is at least two or more countries to loop.
    3.  In the loop we have consumed all the commas so we have found the last country. 
    Things to note
    There are two things to note:
    1. "Find string in string (output to Variable:index)"  will return -1 if doesn't find
    the searched for string.
    2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
    field as  "Lookup Values, Comma Delimited".
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup2.
    Add conditions and actions:
    Start the workflow automatically when an item is created.
    Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
    See the below in workflow History List:
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013
    For example, they have three lists as below. They want to find duplicate values in the Title column in
    Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
    Lookup1:
    Title (Single line of text)
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Lookup2:
    Title (Single line of text), Test (Single line of text).
    Important actions
    "Call HTTP Web Service"
    action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
    is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
    “Build Dictionary"
    action:
    The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
    The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
    The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
    Things to note
    The
    HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
    Use Get
    d/results(0)/Id form
    Variable: ResponseContent (Output to
    Variable: maxid) to get the Max ID.
    Use Set
    Variable: minid to Current List:ID to get the Min ID.
    Use Copy from
    Variable: destianation , starting at
    1 (Output to
    Variable: destianation) to remove the space.
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Test (Single line of text).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup3.
    Add a new "Build Dictionary" action
    to define the http request header:
    Add a Call HTTP Web Serviceaction, click on
    this and paste your http request.
    To associate the
    RequestHeader variable, select the Call action property,
    set the
    RequestHeaders property to
    RequestHeader:
    In the Call action, click on
    response and associate the response to a new
    variable: ResponseContent (of type Dictionary).
    After the Call action add Get item from Dictionary action to get the Max ID.
    Add Set Workflow Variable action to get the Min ID.
    Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
    Create item in Lookup2.
    The final Stage should look like this:
    Start the workflow automatically when an item is created.
    Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
    See the below in workflow History List:
    References
    SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
    http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
    Workflow actions quick reference (SharePoint 2013 Workflow platform):
    http://msdn.microsoft.com/en-us/library/jj164026.aspx
    Understanding Dictionary actions in SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
    Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

Maybe you are looking for

  • Photo library?? all photos not available

    Hi! I switched to the iCloud Photo library to save storage on my phone and iPad Every photo of mine is in iPhoto and iCloud, however I can not "see" older photos NOT taken on phone and iPad in the Photos app (on phone and iPad) Is this due to iCloud

  • Maintenance Order confirmed to WBS element

    Hi, We have an issue where in a maintenance orer was confirmed to a WBS element which is has a User Status Profile Active which does not allow "Actual Activity Allocation'', "Confirm Order" etc. but still user was able to confirm Maintenance work ord

  • Pdfforge interferes with Reader Enabled Form

    Hi, I have set up a form that I then enabled for Adobe Reader users to be able to fill out and save. One user has PDFForge installed. It's a free PDF creator. She is the only one who cannot use the forms. She cannot save, and the calculations don't e

  • Tracker Icon Disappears with PC Reboot

    Hello All, I am preparing to roll out Shared Review for technical documentation at our company. I have done a number of test cases successfully with some users. I am using Acrobat 9 Pro Extended to initiate the shared reviews. Users have Reader 8 or

  • Pay and go - reconnecting to data service and MM

    If you have pay and go, you will find your data service may not work. This is how you get it back! http://shop.o2.co.uk/update/settings.html Data Settings for Pay & Go and Pay Monthly (non iPhone tariff) customers If you're a Pay & Go customer and ha