Skip to main content
Jun 13, 2017 11:40 AM UTC
Solved

Can I change the sequence of related items using the SOAP API?

Hi,

I'm trying to use SOAP to change the order of the items within a relationship field, can anybody help me with the syntax?

Regards,

Thierry Van Acker

tomtom

    Jun 17, 2017 9:59 PM UTC

    Hi Thierry,

    well, not tried but perhaps this works:

    1.) Read the value of the relationship field with SOAP

    2.) Change the order of the returned values as needed

    3.) Update the field again with the new re-ordered list

    But, Integrity might have recognized that the items in the relatoinship are the same, therefore the SOAP API might not do anything.

    To force an update you may have to remove and re-apply the entries.

    Not sure if this is an option for you.

    What is your business case to use SOAP for sorting of relationship field entries?

    Volker

    2 replies

    Jun 17, 2017 9:59 PM UTC

    Hi Thierry,

    well, not tried but perhaps this works:

    1.) Read the value of the relationship field with SOAP

    2.) Change the order of the returned values as needed

    3.) Update the field again with the new re-ordered list

    But, Integrity might have recognized that the items in the relatoinship are the same, therefore the SOAP API might not do anything.

    To force an update you may have to remove and re-apply the entries.

    Not sure if this is an option for you.

    What is your business case to use SOAP for sorting of relationship field entries?

    Volker

    tvanackerAuthor
    Jun 21, 2017 8:18 AM UTC

    Volker,

    Thanks , Integrity does recognise the change in sequence of IDs so it does the update

    The BC is that we've developed a KANBAN board (web based - outside PTC GUI) where users can change priority by moving up/down the items

    Regards,

    Thierry