Addin method to convert an object to dictionnary
converting date and datetime to sting + using engagementID in the dictionnary
Part 1: API implementation : get