cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

tvanacker
1-Newbie

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

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

Top Tags