Created
May 31, 2018 18:51
-
-
Save jraps20/2f0e26af6a3358e491827bbd0135fa4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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