Skip to content

Instantly share code, notes, and snippets.

@jraps20
Created May 31, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jraps20/2f0e26af6a3358e491827bbd0135fa4f to your computer and use it in GitHub Desktop.
Save jraps20/2f0e26af6a3358e491827bbd0135fa4f to your computer and use it in GitHub Desktop.
public class Step1
{
public void Process(PipelineArgs args)
{
var processorItem = args.ProcessorItem;
var customField = processorItem.InnerItem["Custom Referenced Item"];
var referencedItem = processorItem.InnerItem.Database.GetItem(new ID(customField));
var name = referencedItem.Name;
args.CustomData.Add(name, name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment