Query help needed

Can someone help me with an AML query to find...

  • all of our parts in Innovator that have only one item in the EBOM
  • what revision sequence each part is assigned
  • what the single EBOM item part number is

Don

Parents
  • Hi Don,

    Is there a particular reason you're using AML for this task? Personally I'd write a short C# Method to gather this information.

    The flow would look something like:

    1. Get all Parts
    2. For each part, do a get on all Part BOM relationships with the same source ID
    3. Check how many relationships are returned in that get
    4. If count == 1, then we can use the related ID to get the information about the child part.
    5. Store in some list and return

    Let me know if that works!

    AJ

Reply
  • Hi Don,

    Is there a particular reason you're using AML for this task? Personally I'd write a short C# Method to gather this information.

    The flow would look something like:

    1. Get all Parts
    2. For each part, do a get on all Part BOM relationships with the same source ID
    3. Check how many relationships are returned in that get
    4. If count == 1, then we can use the related ID to get the information about the child part.
    5. Store in some list and return

    Let me know if that works!

    AJ

Children