Deleting a custom relationship with the API
Does anyone have a tip how I would go about deleting a custom relationship using the API. I have a script that blanks out a number of values, but I need to remove a custom relationship to a user as well. I know the relationship in question, which is stored under pageForm.viewModel.NameRelationship.
Best Answer
-
Geoff_Ross Cireson Consultant O.G.
Hi Fredrik,
I might need a bit more information but assuming the relationship is in the Type Projection you are using, it will be in the viewModel object. If you then set that to null and call the page.Save() function, it should remove the relationship.
Let me know if you need more detail on this.
Geoff
5
Answers
Hi Fredrik,
I might need a bit more information but assuming the relationship is in the Type Projection you are using, it will be in the viewModel object. If you then set that to null and call the page.Save() function, it should remove the relationship.
Let me know if you need more detail on this.
Geoff