Gravatar for

Question by Jim Lynch, Nov 2, 2015 4:26 PM

Setting value of multiple custom fields

I have a custom script that attempts to write to two custom fields by calling DocumentInfo.SetFieldValue for each field. Initially, the script wrote to just one field and that worked fine. I then added a second field and wrote a fixed string to it. After rebuilding the index, only the second field was present when I looked at the results.

Should I be able to write to multiple custom fields from one script ?

Thanks Jim

1 Reply
Gravatar for

Answer by Simon, Nov 3, 2015 6:39 PM

You should be able to add multiple values to multiple fields, see this sample here:

You could also edit your description to paste a copy of your code.

Ask a question