Order Creation via API (2)

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Order Creation via API (2)

Post by roteague »

I'm trying to create a new order via the API. So far, everyting is working fine, but I need to be able to set certain values, all of which are all ITrustee types. Since, the constructor is private, and the Trustee table doesn't look like a valid lookup table, how can I get a reference to ITrustee, which I can assign to my order.

Thanks,
Robert
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: Order Creation via API (2)

Post by roteague »

Hmmm .... no answer, I guess everyone is at PDC.
Robert
Hadi Chemaly

Re: Order Creation via API (2)

Post by Hadi Chemaly »

Your instance of the IOrder interface contains a property called AllUsers. This returns an IList<ITrustee> of all the available users within the system. You can use this to find the ITrustee that you need.
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: Order Creation via API (2)

Post by roteague »

Hadi Chemaly wrote:Your instance of the IOrder interface contains a property called AllUsers. This returns an IList<ITrustee> of all the available users within the system. You can use this to find the ITrustee that you need.
Thanks Hadi, that's the key. Have a great weekend!!
Robert
Post Reply