I'm trying to segregate incoming links based on a link Property: 'Date' provided by the plugin, so that links before a given date are directed to a different package than those on or after the date, which continue to the default package for the job.
Code:
callAPI("linkgrabberv2", "addLinks"
doesn't work for me unless its destination package exists; it doesn't error, just ignores. I can create a new package with
Code:
callAPI("linkgrabberv2", "movetoNewPackage"
for the initial link.
Question is, how to efficiently check whether package:<packageName> exists within the link grabber table, so that I call the "movetoNewPackage" version only once? Or is it possible to write a flag to an environment variable perhaps? I can see a getEnv(myString), but no equivalent setEnv().