Harvest

 View Only
  • 1.  System variable "itemobjid" resolves to empty string in UDP.

    Posted Jul 18, 2022 01:54 PM
    Good day all,

    I have a requirement to use the itemobjid in a UDP, but the "itemobjid" System Variable is only available in the "Delete Version" Pre- and Post-linked processes. (This is according to the Bookshelf, but I also tested and confirmed this by displaying the System Variables with a simple script).

    In specific instances I can understand why variables such as "nextproject" and "nextstate" will only be available, but I would like to know why "itemobjid" is only available for "Delete Version". I need it for server-side processing in other UDPs.

    My requirement is also for the System variables "package" to be available.

    Kind regards,
    Jarus

    ------------------------------
    Jarus Bosman
    Senior Software Developer
    State Information Technology Agency
    South Africa
    ------------------------------


  • 2.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Broadcom Employee
    Posted Jul 20, 2022 01:42 AM
    Hi Jarus,

    Thanks for raising this with us.
    We are reviewing this and will provide an update on this discussion.

    Regards,
    Balakrishna


  • 3.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Broadcom Employee
    Posted Jul 22, 2022 05:00 AM
    Hello Jarus,

    Can you explain the use case with more details?

    You want itemobjid system variable to be resolved on which processes.

    Thanks,
    Sridhar


  • 4.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Posted Jul 25, 2022 09:19 AM
    Hi Sridhar,

    Just a normal UDP (right click on Item, select UDP from context menu).

    Kind regards,
    Jarus

    ------------------------------
    Jarus Bosman
    Senior Software Developer
    State Information Technology Agency
    South Africa
    ------------------------------



  • 5.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Posted Aug 01, 2022 08:14 AM
    Another use case: I want to check if an item is anywhere else except in the Production state in the lifecycle when a user wants to check-out for update, and prevent them from doing so unless the last changes were made by them. I can create the check on the database easily, but I need the itemobjid as starting point.

    ------------------------------
    Jarus Bosman
    Senior Software Developer
    State Information Technology Agency
    South Africa
    ------------------------------



  • 6.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Broadcom Employee
    Posted Aug 02, 2022 07:48 AM
    Hi Jarus,

    Thanks for the details.
    1.(a)Find Version across all views would be helpful for this requirement.
    Please review the Section- Find Version from the below tech doc ops pages
    https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/harvest-scm/14-0/using/find-objects-files-versions-and-forms.html#concept.dita_2976ece697506c0efd9fcfecf693257d72161733_FindVersions

    (b) hsv - command line is equivalent to Find version. You can get help on this from command line 
    https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/harvest-scm/14-0/command-reference/get-started-with-ca-harvest-scm-commands/hsv-command-select-version.html

    2.Version History can also be helpful here for tracking the history of the version.

    We also understand the result of the above (hsv can be helpful) would need to be INPUT to possibly a script you are already using..

    Kindly review them and let us know if they are helpful.

    We can still discuss your requirements.

    Regards,
    Balakrishna


  • 7.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Posted Aug 04, 2022 08:57 AM
    Hi Balakrishna,

    Thank you, hsv looks like it could be a useful command line tool. However, it seems you can only pass a filename to filter (aprt from the modification status, view, creator etc. There could be more than one item matching the same filename. However, I'll run some tests and see what results I get.

    Kind regards,
    Jarus

    ------------------------------
    Jarus Bosman
    Senior Software Developer
    State Information Technology Agency
    South Africa
    ------------------------------



  • 8.  RE: System variable "itemobjid" resolves to empty string in UDP.

    Posted Jan 03, 2023 06:42 AM
    Hi everyone,

    The hsv command will not help me, as I'm looking for a SPECIFIC item, not any versions that match a filename pattern.

    Please explain how to send the itemobjid to my script.

    Kind regards,
    Jarus

    ------------------------------
    Jarus Bosman
    Senior Software Developer
    State Information Technology Agency
    South Africa
    ------------------------------