Skip to main content
1-Visitor
June 13, 2017
Solved

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

  • June 13, 2017
  • 1 reply
  • 2174 views

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

    Best answer by VolkerEckardt

    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

    1 reply

    17-Peridot
    June 17, 2017

    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

    tvanacker1-VisitorAuthor
    1-Visitor
    June 21, 2017

    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