Skip to main content
7-Bedrock
September 10, 2025
Solved

Info-Engine Query-Tree webject

  • September 10, 2025
  • 2 replies
  • 422 views
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.15

unable to fetch usagelink attribute using element.getValue("quantity.unit") in info-engine task. Using Query-Tree webject.

Here are the errors that I faced
unable to fetch usagelink attribute using element.getValue("quantity.unit") in info-engine task. Using Query-Tree webject.
It's simply returning null value while in info-engine output value is shown.
    Best answer by DhanshriTelang

    Hi @HelesicPetr,

     

    below line of code worked to fetch usage link quantity-

    element.getValue("wt.part.WTPartUsageLink.quantity.amount")

    2 replies

    Catalina
    Community Moderator
    September 10, 2025

    Hi @DhanshriTelang 

     

    Thank you for your question! 

     

    I’d like to recommend to bring more details and context to your initial inquiry. For example:

    • Have you confirmed that the attribute is exposed and accessible in the Info-Engine mapping configuration?
    • Are you using the correct element reference and path in the script (e.g., nested elements)?
    • Have you tried accessing the attribute using an alternative key or checking case sensitivity?

    Please add screenshot(s) to better understand what you are trying to do in your process. 

     

    Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

    This will increase your chances to receive meaningful help from other Community members. 

     

    Here's what a good question for Windchill looks like. 

     

    Thank you for your participation and please let me know if you need further assistance! 

     

    Best regards,

    Catalina | PTC Community Moderator
    7-Bedrock
    September 10, 2025

    Resolved.. thank you

    HelesicPetr
    22-Sapphire II
    22-Sapphire II
    September 10, 2025

    Hi @DhanshriTelang 

    Could you describe your solution? 

    PetrH

    PetrH
    DhanshriTelang7-BedrockAuthorAnswer
    7-Bedrock
    September 11, 2025

    Hi @HelesicPetr,

     

    below line of code worked to fetch usage link quantity-

    element.getValue("wt.part.WTPartUsageLink.quantity.amount")