سؤال

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]
هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top