how to get card ids for a contact (group)

Sachi Takalkar
Sachi Takalkar Altair Community Member
edited June 2023 in Community Q&A

as it is required in [hm_getvalue cards id=? dataname=...]

Tagged:

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2023

    I am not sure I understand your question completely but if you use the following:

    hm_getvalue groups name="GroupName" dataname=id

    that will give you the id of the group with name GroupName.

    If you want the user to select groups you could use:

    *createmarkpanel groups 1

    set grpList [hm_getmark groups 1]

    Which would give you a list of ids selected by the user.

    If you are looking for the the contact surfaces of a contact group then use something like this:

    set mainSurfList [hm_getvalue groups id=1 dataname=maincontactsurflist]

    set secondarySurfList [hm_getvalue groups id=1 dataname=secondarycontactsurflist]

  • Sachi Takalkar
    Sachi Takalkar Altair Community Member
    edited June 2023

    I am not sure I understand your question completely but if you use the following:

    hm_getvalue groups name="GroupName" dataname=id

    that will give you the id of the group with name GroupName.

    If you want the user to select groups you could use:

    *createmarkpanel groups 1

    set grpList [hm_getmark groups 1]

    Which would give you a list of ids selected by the user.

    If you are looking for the the contact surfaces of a contact group then use something like this:

    set mainSurfList [hm_getvalue groups id=1 dataname=maincontactsurflist]

    set secondarySurfList [hm_getvalue groups id=1 dataname=secondarycontactsurflist]

    Refer the attached image

    I am trying to read the card.. so i need a command to read the card .. 

    and also to know the card id

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2023

    Refer the attached image

    I am trying to read the card.. so i need a command to read the card .. 

    and also to know the card id

    You want a tcl command to open the card image?

    Do you want the ids of all the contact groups or just for a specific one? If just for a specific one how are you selecting that one?

  • Sachi Takalkar
    Sachi Takalkar Altair Community Member
    edited June 2023

    You want a tcl command to open the card image?

    Do you want the ids of all the contact groups or just for a specific one? If just for a specific one how are you selecting that one?

    ik the group id but from there i want to read the card ... for all groups 

    In TCL for the command [hm_getvalue cards id=? dataname=...]  I dont know what to put for card id ... it does not accept group id ...

    also i want a specific command to read the card