Skip to Content
avatar image
Former Member

How may I run an assignment on all MDM main rows?

Using Java MDM API, how do I run an assignment on all MDM main rows? There are approx. 20,000 rows on the main table. I am using the ExecuteAssignmentsCommand and the setRecordsIds() is required. The assignment executes fine when I supply one or more recordIds. Is there a way to run it against all records without building an array of all the recordIds? Because I would have to retrieve all the rows to get their Ids, build the array and then pass it to the command. It seems overkill to do that.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 28, 2012 at 08:24 AM


    For this large number of records, you should execute the assignment from MDM system itself as one time activity. Open Data Manager, select all records, right click and select the assignment you want to execute and execute it. All value assignments will be done.

    After this initial run you can execute the assignment on newly created records as and when those are created. Hope this helps you.

    Thank you.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Manolis,

      For Import action, you can go ahead with Workflow+Assignment.

      For other updates, you can go ahead with Java API commands.

      But you will have to perform set RecordID and get RecordID method calls for this.

      You can reduce the load on Java API a bit by adopting separate workflow for Imported records.

      Thank you.

  • May 31, 2012 at 10:36 AM

    HI Manolis,

    Please try :

    public class RetrieveRecordsByValueCommand
    extends AbstractUserSessionCommand

    Retrieves records by field values.This can be the flag value such asTRUE/FALSE.

    It works best on a field that has unique field values. If there are multiple matches, the record selected is indeterministic. If there is no match for a given field value, the returned record will have a record Id of RecordId#INVALID_RECORD_ID.

    The supported fields to match on are:     

    Fixed Width Text

    Normalized Text

    Auto ID




    Add comment
    10|10000 characters needed characters exceeded