Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Modifying the Answer->Links sub-object via Connect (1 Comment)

$
0
0

Topic by JHutch2000

Content

I've got answers with learned links that are

1) Completely and utterly WRONG

2) Ridiculously high in number.

For instance, I've got one answer that 3189 learned answer links (most of which really have nothing to do with the answer).  So, of course, I want to clean them out.

Problem is, you can't do batches in the workspace. You can batch "Promote" them to Manually Linked answers and the remove them ONE AT A TIME, but that literally takes hours for a big answer (I tried one just to see).

So, I thought, why not use Connect for PHP.  

I pulled the answer object in, then the answer->Links sub-object.  I can read all the sub-object values, but I can only seem to change the Links->LearnedLinkStrength value.

I want to DELETE the whole array, but assigning it a new blank AnswerLink doesn't seem to do anything.  The save shows up in the audit log, but nothing is actually changed.

So, anyone know how to clean up the Links array sub-object?

Version

August 2014

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles