I can get all items tagged with a specific tag from omnifocus through the iOS Shortcuts app quite easily using the Omnifocus actions in the JSON format {“type”:“tag”, “primaryKey”:"add primary key}
Does this also work for perspectives? (and if so: how do I get those primary keys?)