Order Notes issue through API for version 3.3.3.6

Discussions related to custom development with Select.
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Order Notes issue through API for version 3.3.3.6

Post by sanjay.mittal »

While trying to set values for the order notes, API is throwing "can not access member" exception after updating to the version 3.3.3.6. So the Notes properties are changed to Read Only in the new version?
Melissa McBerkowitz
Posts: 91
Joined: Wed Sep 10, 2008 3:33 pm
Location: Raleigh, NC
Contact:

Re: Order Notes issue through API for version 3.3.3.6

Post by Melissa McBerkowitz »

User and date are now read only - they will be stamped for you automatically. The note Text property is not read-only unless you do not have permission to the note.
Melissa McBerkowitz
VP of Product Strategy, SoftPro
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Order Notes issue through API for version 3.3.3.6

Post by sanjay.mittal »

The user has full access to proform module. Do I need to give extra permission for notes?
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Order Notes issue through API for version 3.3.3.6

Post by John Morris »

Please provide your call stack and exception details.

Also, a sample code snippet that reproduces the issue would also be helpful.

Thanks!
John Morris
Sr. Software Architect
SoftPro
Melissa McBerkowitz
Posts: 91
Joined: Wed Sep 10, 2008 3:33 pm
Location: Raleigh, NC
Contact:

Re: Order Notes issue through API for version 3.3.3.6

Post by Melissa McBerkowitz »

The specific permission for notes is found in the SPAdmin Permissions tree under ProForm\Order\General\Note.
Melissa McBerkowitz
VP of Product Strategy, SoftPro
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Order Notes issue through API for version 3.3.3.6

Post by sanjay.mittal »

Here is the code and the error message.

Dim oOrderNote = order.CreateNew("Note")
oOrderNote.SetProperty("IsInternal", "False")

A first chance exception of type 'System.MemberAccessException' occurred in SoftPro.EntityModel.dll
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Order Notes issue through API for version 3.3.3.6

Post by John Morris »

That is not the entire call stack.

Also, that property is a boolean data type, not a string. Try using False, not "False".
John Morris
Sr. Software Architect
SoftPro
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Order Notes issue through API for version 3.3.3.6

Post by sanjay.mittal »

This piece of code was working in the previous version. I didn't get any more information in the call stack. Do you want to share my screen and have a look?
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Order Notes issue through API for version 3.3.3.6

Post by John Morris »

I don't think a screen share is needed here. Did changing your code to a Boolean resolve the issue or not?
John Morris
Sr. Software Architect
SoftPro
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Order Notes issue through API for version 3.3.3.6

Post by sanjay.mittal »

No it didn't. Still getting the same error message.
Post Reply