Marc,
It's taken me a few days to get back onto this so firstly, thanks for your reply.
Thinking about things and looking at the source code and documentation again, I'm not sure SPUpdateMultipleListItems will do what I'm looking for, at least in its own right (but I'm happy to be told otherwise!).
What I have is a list of Competencies with common field of "Skill" (i.e. one 'Skill' can have many 'Competencies').
In a separate Training Register (list) the user selects a 'Skill' and when that training event is set to "Started" (using a Choice column), I am wanting the code to take the selected "Skill" value in the Training Register item and select the related competencies from the Competencies List and then create task items in an Employee Competencies List to allow training on individual competencies to be tracked. From what I see, I don't think SPUpdateMultipleListItems offers that degree of flexibility (i.e. take a value from list A, read associated list items in list B and create new items in list C), but I'd be happy if it does.
So, what I am thinking I will need to do is use the GetListItems function (to read from list B) and then use the UpdateListItems function (with batchCmd: "New") within the GetListItems' 'completefunc' option to create each task in List C.
Knowing the functions far better than I, can you point me in the better direction?
Thanks
Simon
It's taken me a few days to get back onto this so firstly, thanks for your reply.
Thinking about things and looking at the source code and documentation again, I'm not sure SPUpdateMultipleListItems will do what I'm looking for, at least in its own right (but I'm happy to be told otherwise!).
What I have is a list of Competencies with common field of "Skill" (i.e. one 'Skill' can have many 'Competencies').
In a separate Training Register (list) the user selects a 'Skill' and when that training event is set to "Started" (using a Choice column), I am wanting the code to take the selected "Skill" value in the Training Register item and select the related competencies from the Competencies List and then create task items in an Employee Competencies List to allow training on individual competencies to be tracked. From what I see, I don't think SPUpdateMultipleListItems offers that degree of flexibility (i.e. take a value from list A, read associated list items in list B and create new items in list C), but I'd be happy if it does.
So, what I am thinking I will need to do is use the GetListItems function (to read from list B) and then use the UpdateListItems function (with batchCmd: "New") within the GetListItems' 'completefunc' option to create each task in List C.
Knowing the functions far better than I, can you point me in the better direction?
Thanks
Simon