<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3AImportCustomFieldValues%2F%40comment-Missbook-20121130205417</id>
	<title>Talk:ImportCustomFieldValues/@comment-Missbook-20121130205417 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3AImportCustomFieldValues%2F%40comment-Missbook-20121130205417"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Talk:ImportCustomFieldValues/@comment-Missbook-20121130205417&amp;action=history"/>
	<updated>2026-08-24T10:32:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Talk:ImportCustomFieldValues/@comment-Missbook-20121130205417&amp;diff=4535&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Talk:ImportCustomFieldValues/@comment-Missbook-20121130205417&amp;diff=4535&amp;oldid=prev"/>
		<updated>2016-04-06T20:52:55Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Thank you!  This worked nicely for me!  I changed it for CustomFields with a Category (though I am not the best at perl)&lt;br /&gt;
&lt;br /&gt;
Adding variables at the top:&lt;br /&gt;
&lt;br /&gt;
my @newValue;&amp;lt;br /&amp;gt;my $entry;&amp;lt;br /&amp;gt;my $cat;&lt;br /&gt;
&lt;br /&gt;
And a new foreach loop:&lt;br /&gt;
&lt;br /&gt;
foreach my $line (@lines) {&amp;lt;br /&amp;gt;@newValue = split(/,/, $line);&amp;lt;br /&amp;gt;$entry = $newValue[1];&amp;lt;br /&amp;gt;$cat = $newValue[0];&amp;lt;br /&amp;gt;unless ( grep { $entry eq $_ } @current ) {&amp;lt;br /&amp;gt;print STDERR &amp;quot;Adding &amp;quot; . $entry . &amp;quot; with category &amp;quot; . $cat . &amp;quot;\n&amp;quot; if ($args{&amp;#039;verbose&amp;#039;});&amp;lt;br /&amp;gt;my ( $ret, $val ) = $cf-&amp;gt;AddValue( Name =&amp;gt; $entry, Category =&amp;gt; $cat );&amp;lt;br /&amp;gt;}&amp;lt;br /&amp;gt;}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>