Wednesday, January 31, 2007

DEC 2007 - Best MMSUG In Ages!

If you're on the fence trying to decide whether or not to trek to DEC in Vegas this year then I'd suggest going. While last year's MIIS track dealt with, well, MIIS, consider what's going on this year:
Join MIIS MVP's James Booth and Craig Martin from Oxford at the MIIS pre-con and take away new MIIS techniques and tricks -- plus bleeding-edge details on what the future holds for Gemini.

New stuff, cool! If I survive the moutain biking I'm planning on doing before the conference then I'll see you at DEC!

Sunday, January 28, 2007

I've Been MVP'd Again!

I'm honoured to be an MVP for another year. Over the past year I've been lucky to do some really cool stuff with MIIS. This year promises to be the most exciting since 2003. There are a lot of cool things coming from Redmond regarding MIIS soon. MIIS is going to need MVPs this year more than ever and I'm happy to be nominated to help!

Letting the CD Generate the Anchor with an XMA

The MIIS developer reference includes a provisioning sample for systems that generate the anchor attribute. Pretty simple idea, at provision time you set the anchor to some random value that will get thrown away. After export the target system will generate the anchor for you, then on import you have a shiny new object with a new anchor.

In an XMA you can do this too, but it takes just a little more work. It wasn't intuitive to me until I saw it work, then it was pretty cool.

In your XMA code's ExportEntry routine you export the addition using whatever call you need to. If that call returns the ID of the thing you just created, then it has just created the anchor for you. You can then take that anchor and put it on the csEntry.

The pseudo code looks like this:
ExportEntry()
{
if modificationType == Add
{
export the addition
get the anchor of the exported addition
put the anchor on the csentry using csentry["yourAnchorAttribute"].value = NewAnchor
}
}

Cool!