PDS AssignmentsGet Method

G

G u n n a r

<Request>
<AssignmentsGet>
<AllResources>1</AllResources>
<AllAssignments>1</AllAssignments>
</AssignmentsGet>
</Request>

The reply I get is
<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20050812000000</PeriodStartDate><PeriodEndDate>20050823000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Im not getting any Assignment Data such as:
[non-timephased]
<Work></Work>
<RemainingWork></RemainingWork>
<ActualWork></ActualWork>
<PercentWorkComplete></PercentWorkComplete>
<Start></Start>
<Finish></Finish>
<ProjectID></ProjectID>
<ProjectName></ProjectName>
<ProjectType></ProjectType>
<TaskName></TaskName>
<TaskUID></TaskUID>
<ResourceName></ResourceName>
 
E

Ed Morrison

Gunnar,
Add the following lines:
<PeriodDateRange>
<PeriodStartDate>20000101000000</PeriodStartDate>
<PeriodEndDate>20101231000000</PeriodEndDate>
</PeriodDateRange>

This will get the date range from 1/1/2000 to 12/31/2010.
 
G

G u n n a r

<Request><AssignmentsGet>
<AllResources>1</AllResources><AllAssignments>1</AllAssignments
<PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange>
</AssignmentsGet></Request>

This gives me the same message as before:

<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Any ideas?

Thanks a lot,
Gunnar


Ed Morrison said:
Gunnar,
Add the following lines:
<PeriodDateRange>
<PeriodStartDate>20000101000000</PeriodStartDate>
<PeriodEndDate>20101231000000</PeriodEndDate>
</PeriodDateRange>

This will get the date range from 1/1/2000 to 12/31/2010.


--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request>
<AssignmentsGet>
<AllResources>1</AllResources>
<AllAssignments>1</AllAssignments>
</AssignmentsGet>
</Request>

The reply I get is:
<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20050812000000</PeriodStartDate><PeriodEndDate>20050823000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Im not getting any Assignment Data such as:
[non-timephased]
<Work></Work>
<RemainingWork></RemainingWork>
<ActualWork></ActualWork>
<PercentWorkComplete></PercentWorkComplete>
<Start></Start>
<Finish></Finish>
<ProjectID></ProjectID>
<ProjectName></ProjectName>
<ProjectType></ProjectType>
<TaskName></TaskName>
<TaskUID></TaskUID>
<ResourceName></ResourceName>
.
..
...

Thanks a lot!!
Gunnar
 
E

Ed Morrison

Gunnar,
Are you sure you have assignments in the instance of project server that you
are pointing to? Your HRESULT is 0, so you don't have an error. When I run
your call, I get back a bunch of assignments.

Maybe it is how you set up PDS. Try running your method in the PDS Test app
in the SDK.
--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request><AssignmentsGet>
<AllResources>1</AllResources><AllAssignments>1</AllAssignments>
<PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange>
</AssignmentsGet></Request>

This gives me the same message as before:

<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Any ideas?

Thanks a lot,
Gunnar


Ed Morrison said:
Gunnar,
Add the following lines:
<PeriodDateRange>
<PeriodStartDate>20000101000000</PeriodStartDate>
<PeriodEndDate>20101231000000</PeriodEndDate>
</PeriodDateRange>

This will get the date range from 1/1/2000 to 12/31/2010.


--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request>
<AssignmentsGet>
<AllResources>1</AllResources>
<AllAssignments>1</AllAssignments>
</AssignmentsGet>
</Request>

The reply I get is:
<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20050812000000</PeriodStartDate><PeriodEndDate>20050823000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Im not getting any Assignment Data such as:
[non-timephased]
<Work></Work>
<RemainingWork></RemainingWork>
<ActualWork></ActualWork>
<PercentWorkComplete></PercentWorkComplete>
<Start></Start>
<Finish></Finish>
<ProjectID></ProjectID>
<ProjectName></ProjectName>
<ProjectType></ProjectType>
<TaskName></TaskName>
<TaskUID></TaskUID>
<ResourceName></ResourceName>
.
..
...

Thanks a lot!!
Gunnar
 
G

G u n n a r

Maby Im not understanding this method correctly. I thought I could use it to
optain some of the info when I run Project Client and do:
Report->See how Resource´s time is allocated

Perhaps you´re right that PDS doesn´t cover this and I need to make a SQL
query for that.

Thanks mr.Morrison,
Gunnar


Ed Morrison said:
Gunnar,
Are you sure you have assignments in the instance of project server that you
are pointing to? Your HRESULT is 0, so you don't have an error. When I run
your call, I get back a bunch of assignments.

Maybe it is how you set up PDS. Try running your method in the PDS Test app
in the SDK.
--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request><AssignmentsGet>
<AllResources>1</AllResources><AllAssignments>1</AllAssignments>
<PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange>
</AssignmentsGet></Request>

This gives me the same message as before:

<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Any ideas?

Thanks a lot,
Gunnar


Ed Morrison said:
Gunnar,
Add the following lines:
<PeriodDateRange>
<PeriodStartDate>20000101000000</PeriodStartDate>
<PeriodEndDate>20101231000000</PeriodEndDate>
</PeriodDateRange>

This will get the date range from 1/1/2000 to 12/31/2010.


--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request>
<AssignmentsGet>
<AllResources>1</AllResources>
<AllAssignments>1</AllAssignments>
</AssignmentsGet>
</Request>

The reply I get is:
<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20050812000000</PeriodStartDate><PeriodEndDate>20050823000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Im not getting any Assignment Data such as:
[non-timephased]
<Work></Work>
<RemainingWork></RemainingWork>
<ActualWork></ActualWork>
<PercentWorkComplete></PercentWorkComplete>
<Start></Start>
<Finish></Finish>
<ProjectID></ProjectID>
<ProjectName></ProjectName>
<ProjectType></ProjectType>
<TaskName></TaskName>
<TaskUID></TaskUID>
<ResourceName></ResourceName>
.
..
...

Thanks a lot!!
Gunnar
 
E

Ed Morrison

You could, but it only retrieves published information. And to get current
published information, the PM must publish the plan and close the plan.
Besides, that view already exist in PWA under the Resource tab.

--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



Maby Im not understanding this method correctly. I thought I could use it
to
optain some of the info when I run Project Client and do:
Report->See how Resource´s time is allocated

Perhaps you´re right that PDS doesn´t cover this and I need to make a SQL
query for that.

Thanks mr.Morrison,
Gunnar


Ed Morrison said:
Gunnar,
Are you sure you have assignments in the instance of project server that
you
are pointing to? Your HRESULT is 0, so you don't have an error. When I
run
your call, I get back a bunch of assignments.

Maybe it is how you set up PDS. Try running your method in the PDS Test
app
in the SDK.
--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request><AssignmentsGet>
<AllResources>1</AllResources><AllAssignments>1</AllAssignments>
<PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange>
</AssignmentsGet></Request>

This gives me the same message as before:

<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20000101000000</PeriodStartDate><PeriodEndDate>20101231000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Any ideas?

Thanks a lot,
Gunnar


:

Gunnar,
Add the following lines:
<PeriodDateRange>
<PeriodStartDate>20000101000000</PeriodStartDate>
<PeriodEndDate>20101231000000</PeriodEndDate>
</PeriodDateRange>

This will get the date range from 1/1/2000 to 12/31/2010.


--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



<Request>
<AssignmentsGet>
<AllResources>1</AllResources>
<AllAssignments>1</AllAssignments>
</AssignmentsGet>
</Request>

The reply I get is:
<Reply><HRESULT>0</HRESULT><STATUS>0</STATUS><UserName>APEX\\gs</UserName><AssignmentsGet><PeriodDateRange><PeriodStartDate>20050812000000</PeriodStartDate><PeriodEndDate>20050823000000</PeriodEndDate></PeriodDateRange></AssignmentsGet></Reply>

Im not getting any Assignment Data such as:
[non-timephased]
<Work></Work>
<RemainingWork></RemainingWork>
<ActualWork></ActualWork>
<PercentWorkComplete></PercentWorkComplete>
<Start></Start>
<Finish></Finish>
<ProjectID></ProjectID>
<ProjectName></ProjectName>
<ProjectType></ProjectType>
<TaskName></TaskName>
<TaskUID></TaskUID>
<ResourceName></ResourceName>
.
..
...

Thanks a lot!!
Gunnar
 
U

user_two

I have the same problem
I create assignment with ProjectAssignmentsCreate then I try to get al
the assignments but the AssignmentsGet method returns the Admin projec
Assignments (AdminProject=1) only.
I think that it was probably a bug in the PD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top