آئٹم کو اپ ڈیٹ یا اپ ڈیٹ واقعہ دستاویز کی لائبریری میں دو بار اس وقت ہوتی ہے

آئٹم کو اپ ڈیٹ یا شے شیئرپوائنٹ میں ایونٹ کو اپ ڈیٹ 2007 دو مرتبہ اس وقت ہوتی ہے, چیکآاٹ ضرورت ہوتی ہے تو آپشن دستاویز لائبریری کے لئے چالو حالت میں ہے.

میں اس مسئلے کے لیے مائیکروسافٹ کی معاونت سے مندرجہ ذیل workaround ہے پایا.

Check the value of vti_sourcecontrolcheckedoutby
میں BeforeProperties اور AfterProperties, if the both values are null then the event is triggered by check in else the event is triggered by other actions.

اگر (properties.AfterProperties[“vti_sourcecontrolcheckedoutby”] == null && properties.BeforeProperties[“vti_sourcecontrolcheckedoutby”] != null)

{

//This is when the update event is triggered by check-in.

}

ورنہ

{

//This is triggered by events other than check-in action.

}

تبصرے بند ہیں.