Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
unique identification of activity
posted

Hi,

how can we get the Activity Id after addinbg an activity to the database .any helps please urgent

thanks in advance

Parents
No Data
Reply
  • 4960
    Suggested Answer
    posted

    First, if you are using stored procedures then have you checked the DataKey property on the Activity after it has been added?  WebScheduleSqlClientProvider will put the ID there if the add transaction commits successfully.

    If you are using embedded SQL, then when the WebScheduleInfo data binds (which happens just after the client sends a request that adds or updates an Activity), its Activities should be re-loaded with their IDs. If your code remembers the date/time of the newly added Activity, you can go in and retrieve it with a call to GetAppointmentsForDate.

Children