TM1ProcessChoresUsing
Posted: Tue May 10, 2011 3:46 pm
This is probably a long shot since not a lot of people use the API, but I figured I'd ask in case someone actually knows the answer to this.
I'm trying to see what Chores a given Process is a step in and I came across the TM1ProcessChoresUsing() property function in the API. It looked to me as if it could be used to get a list of Chore handles that use a particular process, but if I try using that property with ObjectPropertyGet for any Process it just returns an error, ObjectPropertyNotFound if I remember correctly. I've tried using it with a Chore handle instead of a Process handle and I get the same results. As a work around I just loop over every Chore on a server and look at the array that stores the Process names for each of its steps, but I was hoping for something a little more... elegant. Has anyone ever used TM1ProcessChoresUsing() with success?
Thanks.
I'm trying to see what Chores a given Process is a step in and I came across the TM1ProcessChoresUsing() property function in the API. It looked to me as if it could be used to get a list of Chore handles that use a particular process, but if I try using that property with ObjectPropertyGet for any Process it just returns an error, ObjectPropertyNotFound if I remember correctly. I've tried using it with a Chore handle instead of a Process handle and I get the same results. As a work around I just loop over every Chore on a server and look at the array that stores the Process names for each of its steps, but I was hoping for something a little more... elegant. Has anyone ever used TM1ProcessChoresUsing() with success?
Thanks.