Domanda

I made Event receiver ItemAdded. on this event i ll try to get Related field its always null. But in the display form is not null. please help -need this field, and then parent item.

    {
        base.ItemAdded(properties);
        if (properties.ListTitle == "Task")
        {

            try
            {
                SPListItem taskItem = properties.ListItem;
                object relitem = null;
                relitem ==taskItem[SPBuiltInFieldId.RelatedItems]
È stato utile?

Soluzione

Just to be sure, try to get the values from ItemUpdated event. Maybe the reason why that the values are not available is because they aren't exist yet.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top